- megacli64 -pdlist -aall
- megacli64 -pdlist -aall | grep -e 'Enclosure Device ID' -e 'Slot Number' -e 'Device Id' -e 'Inquiry Data'
- megacli64 -pdlist -aall | grep 'Device Id'
假定這張磁碟陣列卡的設備掛在/dev/sda下面:
- smartctl -d sat+megaraid,0 -a /dev/sda
- smartctl -d sat+megaraid,0 -a /dev/sda | grep -e 'ID#' -e '^ 1' -e '^ 3' -e '^ 4' -e '^ 7' -e '^ 9' -e '^194'
- for i in {0..4}; do echo "Device Id ${i}"; smartctl -d sat+megaraid,${i} -a /dev/sda | grep -e 'ID#' -e '^ 1' -e '^ 3' -e '^ 4' -e '^ 7' -e '^ 9' -e '^194'; echo ''; done
使用上就是先用藍色指令找Device Id,之後再用綠色指令看硬碟SMART狀態
沒有留言:
張貼留言