1. 查看本机scsi 接口
[root@data04 ~]# smartctl --scan /dev/sda -d scsi # /dev/sda, SCSI device /dev/sdb -d scsi # /dev/sdb, SCSI device /dev/bus/0 -d megaraid,9 # /dev/bus/0 [megaraid_disk_09], SCSI device /dev/bus/0 -d megaraid,10 # /dev/bus/0 [megaraid_disk_10], SCSI device /dev/bus/0 -d megaraid,11 # /dev/bus/0 [megaraid_disk_11], SCSI device /dev/bus/0 -d megaraid,12 # /dev/bus/0 [megaraid_disk_12], SCSI device /dev/bus/0 -d megaraid,13 # /dev/bus/0 [megaraid_disk_13], SCSI device /dev/bus/0 -d megaraid,14 # /dev/bus/0 [megaraid_disk_14], SCSI device /dev/bus/0 -d megaraid,15 # /dev/bus/0 [megaraid_disk_15], SCSI device /dev/bus/0 -d megaraid,16 # /dev/bus/0 [megaraid_disk_16], SCSI device /dev/bus/0 -d megaraid,17 # /dev/bus/0 [megaraid_disk_17], SCSI device /dev/bus/0 -d megaraid,18 # /dev/bus/0 [megaraid_disk_18], SCSI device /dev/bus/0 -d megaraid,19 # /dev/bus/0 [megaraid_disk_19], SCSI device /dev/bus/0 -d megaraid,20 # /dev/bus/0 [megaraid_disk_20], SCSI device
第一列是设备标识
第二列是 设备raid 型号
[第三列] 是具体号码
2. 使用命令获取 硬盘指标
smartctl -a -d megaraid,16 /dev/bus/0
3. 核心指标解读
232 Available_Reservd_Space 0x0033 099 099 010 Pre-fail Always - 0 SSD 磁盘剩余擦写寿命