MegaCLI 更换预测故障(PFA)硬盘

1. Before physical replacement, perform the following steps

/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL          # for check the PFA drive status and drive ID [Enclosure ID:Slot Number].

/opt/MegaRAID/MegaCli/MegaCli64 -PDOffline -PhysDrv [*:*] -a* # for offline the PFA drive, [*:*] is drive ID, a0 is raid adapter ID.

/opt/MegaRAID/MegaCli/MegaCli64 -PDMarkMissing -PhysDrv [*:*] -a* # for set the drive the missing.

/opt/MegaRAID/MegaCli/MegaCli64 -PDPrpRmv -PhysDrv [*:*] -a* # for Prepare remove the drive.

2. Onsite engineer to replace the PFA drive.

3. After physical replacement, perform the following steps

/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL     # for check new drive status.
/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -aALL    # for check the raid info.

/opt/MegaRAID/MegaCli/MegaCli64 -PdReplaceMissing -PhysDrv [*:*] -Array* -row* -a* # for add new drive to raid group.

/opt/MegaRAID/MegaCli/MegaCli64 -PDRbld -Start -PhysDrv [*:*] -a* # for rebuilding the raid group.

/opt/MegaRAID/MegaCli/MegaCli64 -PDRbld -ShowProg -PhysDrv [*:*] -a* # for monitor the rebuild progress.

If a hot spare has been used, then use the following 2 cmds to replace the above 3 lines (PdReplaceMissing & PDRbld -Start & PDRbld -ShowProg).

/opt/MegaRAID/MegaCli/MegaCli64 -PDHSP -Set -PhysDrv[*:*] -a0 #set the new drive to hot spare , then it will automatically to rebuild.

/opt/MegaRAID/MegaCli/MegaCli64 -PDRbld -ShowProg –PhysDrv [*:*] -a0          # for check the rebuild progress.

A related case

参考链接(ibm.com)

1 次浏览 更新于 2026-11-04

同组文章阵列卡命令行工具

查看本组全部 11 篇

没有找到想要的答案?

上传日志让 AI 帮你诊断,或者在控制台里直接向 AI 提问。