Centos服务器检查硬盘的指令
检查服务器硬盘的状态,需要先进入raid软件:
cd /opt/MegaRAID/MegaCli/
查看硬盘的状态信息:
./MegaCli64 -PDList -aALL |grep "Firmware state"
查看所有的硬盘信息:
/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL
执行外来盘导入的命令:
/opt/MegaRAID/MegaCli/MegaCli64 -CfgForeign -Import -aall