1. 程式人生 > >megacli 處理不能自動rebuild 的硬盤

megacli 處理不能自動rebuild 的硬盤

missing lin 檢查 查看 start clas 配置 替換 是否

最近遇到dell 的主機 raid1,壞盤更換後,rebulid 一會,就是白了。重啟機器,對應硬盤 狀態變成 Unconfigured(good), Spun Up

按照常規首先清理 外來配置

1
/opt/MegaRAID/MegaCli/MegaCli64 -CfgForeign -clear -a0

2 接著查看丟失的raid 信息

/opt/MegaRAID/MegaCli/MegaCli64 -PdGetMissing -a0

Adapter 0 - Missing Physical drives
No.   Array   Row   Size Expected
0     2       0     476416 MB
Exit Code: 0x00


這裏指 raid id3 的 row 0 盤沒有raid 信息了

3

替換
/opt/MegaRAID/MegaCli/MegaCli64 -PdReplaceMissing -PhysDrv[32:4] -array2,row0 -a0 (註意 E:S)

4 這時候。盤變成offline 了
設置強制rb

/opt/MegaRAID/MegaCli/MegaCli64 -PDRbld -Start -PhysDrv [32:4] -a0

5 檢查是否在rb

/opt/MegaRAID/MegaCli/MegaCli64 -PDRbld -ShowProg -PhysDrv [32:4] -a0



完成!

megacli 處理不能自動rebuild 的硬盤