lisaac / luci-app-diskman

Disk Manager for LuCI
GNU Affero General Public License v3.0
400 stars 112 forks source link

UASP硬盘柜无法识别smart信息 #70

Closed Qs315490 closed 2 months ago

Qs315490 commented 1 year ago

貌似我这个 铁威马D4 300 需要加额外的参数才能识别 这是openwrt里的截图 image 这是终端返回

root@OpenWrt_PVE:~# smartctl -H -d sat /dev/sdb
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.10.146] (localbuild)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

root@OpenWrt_PVE:~# smartctl -d sat -H -A -i -n standby -f brief /dev/sdb
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.10.146] (localbuild)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     WDC WD5000AAKX-08U6AA0
Serial Number:    WD-WCC2EUR84585
LU WWN Device Id: 5 0014ee 25ee0fc56
Firmware Version: 19.01H19
User Capacity:    500,107,862,016 bytes [500 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    7200 rpm
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ATA8-ACS (minor revision not indicated)
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Mon Apr 24 15:39:49 2023 CST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
Power mode is:    ACTIVE or IDLE

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  1 Raw_Read_Error_Rate     POSR-K   200   200   051    -    0
  3 Spin_Up_Time            POS--K   142   138   021    -    3900
  4 Start_Stop_Count        -O--CK   097   097   000    -    3300
  5 Reallocated_Sector_Ct   PO--CK   200   200   140    -    0
  7 Seek_Error_Rate         -OSR-K   200   200   000    -    0
  9 Power_On_Hours          -O--CK   078   078   000    -    16552
 10 Spin_Retry_Count        -O--CK   100   100   000    -    0
 11 Calibration_Retry_Count -O--CK   100   100   000    -    0
 12 Power_Cycle_Count       -O--CK   097   097   000    -    3142
192 Power-Off_Retract_Count -O--CK   200   200   000    -    465
193 Load_Cycle_Count        -O--CK   200   200   000    -    2834
194 Temperature_Celsius     -O---K   106   080   000    -    37
196 Reallocated_Event_Count -O--CK   200   200   000    -    0
197 Current_Pending_Sector  -O--CK   200   200   000    -    0
198 Offline_Uncorrectable   ----CK   200   200   000    -    0
199 UDMA_CRC_Error_Count    -O--CK   200   200   000    -    3
200 Multi_Zone_Error_Rate   ---R--   200   200   000    -    0
                            ||||||_ K auto-keep
                            |||||__ C event count
                            ||||___ R error rate
                            |||____ S speed/performance
                            ||_____ O updated online
                            |______ P prefailure warning
Qs315490 commented 1 year ago

修改了项目中的代码,貌似没有效果

command.smartctl .. "-d sat -H -A -i -n standby -f brief /dev/"
Qs315490 commented 1 year ago

终端直接输入的返回

root@OpenWrt_PVE:~> smartctl -H /dev/sda # 原生sata
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.10.146] (localbuild)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

root@OpenWrt_PVE:~> smartctl -H /dev/sdb # 硬盘柜
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.10.146] (localbuild)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

/dev/sdb: Unknown USB bridge [0x0480:0xa006 (0x100)]
Please specify device type with the -d option.

Use smartctl -h to get a usage summary