[ZBX-25554] tons of failures about virtual disks on Kubernetes nodes Created: 2024 Nov 17 Updated: 2024 Nov 20 Resolved: 2024 Nov 18 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Templates (T) |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Problem report | Priority: | Trivial |
Reporter: | Harald Dunkel | Assignee: | Zabbix Support Team |
Resolution: | Commercial support required | Votes: | 0 |
Labels: | SMART, Template | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: |
![]() |
Description |
smart by zabbix agent2 active reports tons of "some commands to the disk failed" about virtual disks on my Kubernetes nodes. Do you think it would be possible for Zabbix agent2 to ignore virtual disks that cannot be monitored? root@dpcl090:/etc/sudoers.d# lsscsi [0:0:0:0] disk ATA Samsung SSD 860 4B6Q /dev/sda [1:0:0:0] disk ATA Samsung SSD 860 4B6Q /dev/sdc [3:0:0:0] disk ATA Samsung SSD 860 2B6Q /dev/sdb [6:0:0:0] disk Generic MassStorageClass 0904 /dev/sdd [7:0:0:0] storage IET Controller 0001 - [7:0:0:1] disk IET VIRTUAL-DISK 0001 /dev/sde [8:0:0:0] storage IET Controller 0001 - [8:0:0:1] disk IET VIRTUAL-DISK 0001 /dev/sdf [11:0:0:0] storage IET Controller 0001 - : : [26:0:0:0] storage IET Controller 0001 - [26:0:0:1] disk IET VIRTUAL-DISK 0001 /dev/sdx [27:0:0:0] storage IET Controller 0001 - [27:0:0:1] disk IET VIRTUAL-DISK 0001 /dev/sdy root@dpcl090:/etc/sudoers.d# smartctl -a /dev/sde -j { "json_format_version": [ 1, 0 ], "smartctl": { "version": [ 7, 4 ], "pre_release": false, "svn_revision": "5530", "platform_info": "x86_64-linux-6.1.0-26-amd64", "build_info": "(local build)", "argv": [ "smartctl", "-a", "/dev/sde", "-j" ], "exit_status": 4 }, "local_time": { "time_t": 1731818979, "asctime": "Sun Nov 17 05:49:39 2024 CET" }, "device": { "name": "/dev/sde", "info_name": "/dev/sde", "type": "scsi", "protocol": "SCSI" }, "scsi_vendor": "IET", "scsi_product": "VIRTUAL-DISK", "scsi_model_name": "IET VIRTUAL-DISK", "scsi_revision": "0001", "scsi_version": "SPC-3", "user_capacity": { "blocks": 10485760, "bytes": 5368709120 }, "logical_block_size": 512, "scsi_lb_provisioning": { "name": "thin provisioned", "value": 2, "management_enabled": { "name": "LBPME", "value": -1 }, "read_zeros": { "name": "LBPRZ", "value": 1 } }, "rotation_rate": 0, "logical_unit_id": "0x30000001000000010x60000000000000000e00000000010001", "serial_number": "beaf11", "device_type": { "scsi_terminology": "Peripheral Device Type [PDT]", "scsi_value": 0, "name": "disk" }, "smart_support": { "available": true, "enabled": false }, "temperature_warning": { "enabled": false }, "smart_status": { "passed": true }, "temperature": { "current": 0, "drive_trip": 0 }, "seagate_farm_log": { "supported": false } } Please note that all the "usual stuff" like error counts, log entries, self test results etc of real disks is missing for virtual disks. Platform is Debian 12. Zabbix agent is version 6.4, installed from Zabbix' repository. The most recent templates about smart have been imported. |
Comments |
Comment by Edgar Akhmetshin [ 2024 Nov 18 ] |
Hello Harald, Official template has filters to be fine tuned according to the needs: Not a bug, closing as a 'Commercial support required', if you need further help on adjusting this filters, please contact [email protected]. Regards, |
Comment by Harald Dunkel [ 2024 Nov 20 ] |
edgar.akhmetshin, what exactly is the name of the virtual disk in this context? Obviously the "sdy" is not sufficient to detect a virtual disk in a template. They are all called sd?, no matter if they are virtual or real. smartctl -a /dev/sdy gives me root@dpcl091:~# smartctl -a /dev/sdy smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.1.0-26-amd64] (local build) Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Vendor: IET Product: VIRTUAL-DISK Revision: 0001 Compliance: SPC-3 User Capacity: 5,368,709,120 bytes [5.36 GB] Logical block size: 512 bytes LU is thin provisioned, LBPRZ=1 Logical Unit id: 0x30000015000000010x60000000000000000e00000000150001 Serial number: beaf211 Device type: disk Local Time is: Wed Nov 20 12:07:06 2024 CET SMART support is: Available - device has SMART capability. SMART support is: Disabled Temperature Warning: Disabled or Not Supported === START OF READ SMART DATA SECTION === SMART Health Status: OK Current Drive Temperature: 0 C Drive Trip Temperature: 0 C Error Counter logging not supported [GLTSD (Global Logging Target Save Disable) set. Enable Save with '-S on'] Device does not support Self Test logging Thats all. Please note the "SMART support is: Disabled". This seems to be ignored by the smartctl support in Zabbix. Is there some way to catch the "Product: VIRTUAL-DISK" in auto-discovery? This is something the real disks don't have. |
Comment by Harald Dunkel [ 2024 Nov 20 ] |
PS: Ignoring "SMART: disabled" is clearly a bug, so I created ZBX-25565. |