Using storcli64 and smartctl check a HDD health
Dec 28, 2020 | 868 views
990 mkdir disk-checklog-20201216
991 cd disk-checklog-20201216
# get smart info for DID 30 of /dev/sdb
992 smartctl -s on -a -d megaraid,30 /dev/sdb > sdb_DID30.smartctl.txt
993 smartctl -s on -a -d megaraid,31 /dev/sdb > sdb_DID30.smartctl.txt
994 smartctl -s on -a -d megaraid,30 /dev/sdb > sdb_DID30.smartctl.txt
995 smartctl -s on -a -d megaraid,31 /dev/sdb > sdb_DID31.smartctl.txt
996 smartctl -s on -a -d megaraid,32 /dev/sdb > sdb_DID32.smartctl.txt
997 ls
998 diff sdb_DID3{0,1}*
999 ls
1000 diff sdb_DID30.smartctl.txt ../disk-checklog/sdb_DID30.smartctl
1001 ls
1002 cd ginpie/
1003 ls
1004 cd disk-checklog-20201216/
1005 diff sdb_DID30.smartctl.txt ../disk-checklog/sdb_DID30.smartctl
1006 grep -i error sdb_DID3*
1007 grep 'No Errors' sdb_DID3*
1008 less sdb_DID32.smartctl.txt
1009 less sdb_DID31.smartctl.txt
1010 less sdb_DID30.smartctl.txt
1011 less sdb_DID31.smartctl.txt
1012 less sdb_DID30.smartctl.txt
1013 ls
# show all hard drives info
1014 /opt/MegaRAID/storcli/storcli64 /c0 show > c0_show.txt
1015 less sdb_DID30.smartctl.txt
1016 ls
1017 ls ../disk-checklog
# LED Mark up a HDD example:
# c0 i.e. control 0 , eid=27, slot=0
/opt/MegaRAID/storcli/storcli64 /c0/e27/s0 start locate