如何查看挂载阵列卡下的磁盘SMART

0
阵列卡 SMART 19392 次浏览
LSI的阵列卡,做了RAID6,挂了24块盘,现在想知道磁盘的SMART信息,比如通电时间、坏道啥的
请尽量让自己的答案能够对别人有帮助

1个答案

默认排序 按投票排序
0
Windows下面装个客户端直接就可以看吧

Linux下面的方法
1、查看阵列卡下挂载的设备序号
./storcli64 -pdlist -a0 |grep Id |awk '{print $3}'

storcli64 是从LSI官方下载的cli软件

Device Id: 17
Device Id: 18
......

2、查看磁盘SMART
smartctl -s on -a -d megaraid,17 /dev/sda
smartctl -s on -a -d megaraid,18 /dev/sda

3、查看磁盘通电时间
smartctl -s on -a -d megaraid,17 /dev/sda | grep power
smartctl -s on -a -d megaraid,18 /dev/sda | grep power

4、其它常用命令
显示适配器个数: ./storcli64 -adpCount
显示适配器时间: ./storcli64 -AdpGetTime –aALL
显示所有适配器信息: ./storcli64 -AdpAllInfo -aAll
显示所有逻辑磁盘组信息: ./storcli64 -LDInfo -LALL -aAll
显示所有的物理信息: ./storcli64 -PDList -aAll
查看充电状态: ./storcli64 -AdpBbuCmd -GetBbuStatus -aALL |grep ‘Charger Status’
显示BBU(后备电池)状态信息: ./storcli64 -AdpBbuCmd -GetBbuStatus -aALL
显示BBU容量信息: ./storcli64 -AdpBbuCmd -GetBbuCapacityInfo -aALL
显示BBU设计参数: ./storcli64 -AdpBbuCmd -GetBbuDesignInfo -aALL
显示当前BBU属性: ./storcli64 -AdpBbuCmd -GetBbuProperties -aALL
显示Raid卡型号,Raid设置,Disk相关信息: ./storcli64 -cfgdsply -aALL
查看Cache 策略设置: ./storcli64 -cfgdsply -aALL |grep Policy
查看充电进度百分比: ./storcli64 -AdpBbuCmd -GetBbuStatus -aALL |grep ‘Relative State of Charge’

5、各种设备和磁盘的不同状态
Device         |Normal|Damage|Rebuild
Virtual Drive     |Optimal|Degraded|Degraded
Physical Drive     |Online|Failed –> Unconfigured|Rebuild|Online