ExportXMLWordPrintable

    • Type: Incident report
    • Resolution: Unresolved
    • Priority: Trivial
    • None
    • Affects Version/s: 7.4.16
    • Component/s: None
    • None
    • Environment:
      Debian 13

      Steps to reproduce:

      1. Plug in USB HDD or SSD
      2. Let "Disk discovery" from "SMART by Zabbix agent 2" run
      3. Get the same disk as SATA and SCSI discovered

      root@Test ~ # zabbix_agent2 -t smart.disk.discovery | cut -d "|" -f 2 | jq .
      [
       

      {     "\{#NAME}": "sda sat",
          "{#DISKTYPE}": "ssd",
          "{#MODEL}": "WDC WDS120G2G0A-00JH30",
          "{#SN}": "205068459306",
          "{#PATH}": "/dev/sda",
          "{#RAIDTYPE}": "sat",
          "{#ATTRIBUTES}": "Reallocated_Sector_Ct Power_On_Hours Power_Cycle_Count Block_Erase_Count Minimum_PE_Cycles_TLC Max_Bad_Blocks_per_Die Maximum_PE_Cycles_TLC Total_Bad_Blocks Grown_Bad_Blocks Program_Fail_Count Erase_Fail_Count Average_PE_Cycles_TLC Unexpected_Power_Loss End-to-End_Error Reported_Uncorrect Command_Timeout Temperature_Celsius UDMA_CRC_Error_Count Media_Wearout_Indicator Available_Reservd_Space NAND_GB_Written_TLC NAND_GB_Written_SLC Host_Writes_GiB Host_Reads_GiB Temp_Throttle_Status"  },
        {     "{#NAME}

      ": "sda scsi",
          "{#DISKTYPE}": "ssd",
          "{#MODEL}": "",
          "{#SN}": "00000000000000000000",
          "{#PATH}": "/dev/sda",
          "{#RAIDTYPE}": "scsi",
          "{#ATTRIBUTES}": ""
        },
       

      {     "\{#NAME}

      ": "sdb sat",
          "{#DISKTYPE}": "ssd",
          "{#MODEL}": "WDC WDS120G2G0A-00JH30",
          "{#SN}": "205062481704",
          "{#PATH}": "/dev/sdb",
          "{#RAIDTYPE}": "sat",
          "{#ATTRIBUTES}": "Reallocated_Sector_Ct Power_On_Hours Power_Cycle_Count Block_Erase_Count Minimum_PE_Cycles_TLC Max_Bad_Blocks_per_Die Maximum_PE_Cycles_TLC Total_Bad_Blocks Grown_Bad_Blocks Program_Fail_Count Erase_Fail_Count Average_PE_Cycles_TLC Unexpected_Power_Loss End-to-End_Error Reported_Uncorrect Command_Timeout Temperature_Celsius UDMA_CRC_Error_Count Media_Wearout_Indicator Available_Reservd_Space NAND_GB_Written_TLC NAND_GB_Written_SLC Host_Writes_GiB Host_Reads_GiB Temp_Throttle_Status"  }
      ]
       

      The WD SSDs are connected to a Raspberry Pi 4 (4GB) USB3 port and enclosed in a Fantec 2123 mobi X2U3-6G enclosure:

      lsusb -t
      /:  Bus 001.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/1p, 480M
          |__ Port 001: Dev 002, If 0, Class=Hub, Driver=hub/4p, 480M
      /:  Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/4p, 5000M
          |__ Port 001: Dev 002, If 0, Class=Mass Storage, Driver=uas, 5000M
      lsusb
      Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
      Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
      Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
      Bus 002 Device 002: ID 174c:55aa ASMedia Technology Inc. ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge, ASM1153E SATA 6Gb/s bridge

       

      The Toshiba HDD is connected to another Raspberry Pi 4 (8GB) USB3 Port with a powered USB Hub in between the Pi and the HDD. The UAS driver has been disabled on this one (usb-storage.quirks=0bc2:331a:u in the cmdline.txt for boot parameters) because otherwise the Seagate disk would not report any smart values:

      lsusb -t
      /:  Bus 001.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/1p, 480M
          |__ Port 001: Dev 002, If 0, Class=Hub, Driver=hub/4p, 480M
              |__ Port 001: Dev 003, If 0, Class=Hub, Driver=hub/4p, 480M
      /:  Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/4p, 5000M
          |__ Port 001: Dev 002, If 0, Class=Hub, Driver=hub/4p, 5000M
              |__ Port 001: Dev 003, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
              |__ Port 003: Dev 004, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
      lsusb
      Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
      Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
      Bus 001 Device 003: ID 05e3:0610 Genesys Logic, Inc. Hub
      Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
      Bus 002 Device 002: ID 05e3:0626 Genesys Logic, Inc. Hub
      Bus 002 Device 003: ID 0bc2:331a Seagate RSS LLC Desktop HDD 5TB (ST5000DM000)
      Bus 002 Device 004: ID 0480:b301 Toshiba America Inc EXTERNAL_USB

      Result:
      See attached Log Files

      Expected:
      Disk is only discovered once with the correct interface

       

      See also: ZBX-28149

            Assignee:
            Tymon Nowak
            Reporter:
            Gubbl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: