MegaCLI对Unconfigured(good), Spun Up硬盘强制Rebuild
DELL R720 机器组RAID10,其中一个盘故障,换了个不同品牌同容量的新硬盘后状态为 Unconfigured(good), Spun Up。
/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL -NoLog|grep "Firmware state"
Firmware state: Unconfigured(good), Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
如果旧盘状态就是Unconfigured(good), Spun Up,那在开始之前可以尝试导入外来配置信息,如果不行再更换盘。相关命令:
/opt/MegaRAID/MegaCli/MegaCli64 -CfgForeign -scan -a0 扫描外来配置的个数
/opt/MegaRAID/MegaCli/MegaCli64 -CfgForeign -preview -a0 查看当前的磁盘在normal时的位置
/opt/MegaRAID/MegaCli/MegaCli64 -CfgForeign -import -a0 来导入配置,恢复虚拟磁盘组
/opt/MegaRAID/MegaCli/MegaCli64 -CfgForeign -clear -a0 清除外来配置
/opt/MegaRAID/MegaCli/MegaCli64 -CfgForeign -dsply -a0 显示出现外来配置(磁盘插入的顺序)的过程
清理外来配置
/opt/MegaRAID/MegaCli/MegaCli64 -CfgForeign -clear -a0
查看丢失的RAID信息
/opt/MegaRAID/MegaCli/MegaCli64 -PdGetMissing -a0
Adapter 0 - Missing Physical drives
No. Array Row Size Expected
0 0 0 953344 MB结合硬盘信息(仅显示需要部分):
Enclosure Device ID: 32
Slot Number: 0
Device Id: 0
Firmware state: Unconfigured(good), Spun Up替换
/opt/MegaRAID/MegaCli/MegaCli64 -PdReplaceMissing -PhysDrv[32:0] -array0,row0 -a0
强制重建
/opt/MegaRAID/MegaCli/MegaCli64 -PDRbld -Start -PhysDrv [32:0] -a0
5.检查状态是否为Rebuild
/opt/MegaRAID/MegaCli/MegaCli64 -PDRbld -ShowProg -PhysDrv [32:0] -a0