http://blog.yufeng.info/archives/1096
http://blog.csdn.net/gold2008/article/details/18500699
/opt/MegaRAID/MegaCli/MegaCli64 -LdPdInfo -aALL | grep "Device Id:"
得到 4个 物理磁盘的 Device Id
Device Id: 28
Device Id: 29
Device Id: 30
Device Id: 31
smartctl -a -d megaraid,28 /dev/sda
提示:
/dev/sda [megaraid_disk_28] [SAT]: Device open changed type from 'megaraid' to 'sat'
Smartctl open device: /dev/sda [megaraid_disk_28] [SAT] failed: SATA device detected,
MegaRAID SAT layer is reportedly buggy, use '-d sat+megaraid,N' to try anyhow
smartctl -a -d sat+megaraid,28 /dev/sda 显示成功
Device Model: INTEL SSDSC2BB120G4
Serial Number: BTWL337309L0120LGN
LU WWN Device Id: 5 5cd2e4 04b4a3c50
Firmware Version: D2010355
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
5 Reallocated_Sector_Ct 0x0032 097 097 000 Old_age Always - 0
9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 2687
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 15
170 Unknown_Attribute 0x0033 100 100 010 Pre-fail Always - 0
171 Unknown_Attribute 0x0032 100 100 000 Old_age Always - 0
172 Unknown_Attribute 0x0032 100 100 000 Old_age Always - 0
174 Unknown_Attribute 0x0032 100 100 000 Old_age Always - 13
175 Program_Fail_Count_Chip 0x0033 100 100 010 Pre-fail Always - 69371167380
183 Runtime_Bad_Block 0x0032 100 100 000 Old_age Always - 0
184 End-to-End_Error 0x0033 100 100 090 Pre-fail Always - 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
190 Airflow_Temperature_Cel 0x0022 063 059 000 Old_age Always - 37 (Min/Max 21/41)
192 Power-Off_Retract_Count 0x0032 100