Dell R730 raid1换盘后不自动Rebuild

一台R730 raid1坏了一块盘,更换后发现没有rebuild。
在linux系统下查看如下:
/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL|grep state

查看有问题硬盘是0号槽位,如下:
/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL

Adapter #0

Enclosure Device ID: 32
Slot Number: 0
Drive's postion: DiskGroup: 0, Span: 0, Arm: 0
Enclosure position: 0
Device Id: 0
WWN: 5000C50076EAF9F0
Sequence Number: 1
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SAS
Raw Size: 279.396 GB [0x22ecb25c Sectors]
Non Coerced Size: 278.896 GB [0x22dcb25c Sectors]
Coerced Size: 278.875 GB [0x22dc0000 Sectors]
Firmware state: Unconfigured(good), Spun Up

 查看丢失的raid信息:
/opt/MegaRAID/MegaCli/MegaCli64 -PdGetMissing -a0



查看RAID卡是否有外来配置:
/opt/MegaRAID/MegaCli/MegaCli64 -CfgForeign -Scan a0

清理外部配置(新换的盘不纯净,里边有以前的raid信息):
/opt/MegaRAID/MegaCli/MegaCli64 -CfgForeign -clear -a0

 替换:
/opt/MegaRAID/MegaCli/MegaCli64 -PdReplaceMissing -PhysDrv[32:0] -array0,row0 -a0
注:32是raid卡设备id号,0是硬盘槽位id号。

重新rebuild
/opt/MegaRAID/MegaCli/MegaCli64 -PDRbld -Start -PhysDrv [32:0] -a0
执行后发现换的盘开始 Rebuild 了

查看raid重建的进度:
/opt/MegaRAID/MegaCli/MegaCli64 -PDRbld -ShowProg -PhysDrv [32:0] -a0
或:
/opt/MegaRAID/MegaCli/MegaCli64 -pdrbld -ProgDsply  -physdrv[32:0] -a0

参考:
http://www.cnweed.com/archives/4303/
https://blog.51cto.com/tenderrain/1875930

posted @ 2023-04-20 16:24  莫让年华付水流  阅读(625)  评论(0编辑  收藏  举报