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     显示出现外来配置(磁盘插入的顺序)的过程

  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 0 0 953344 MB

    结合硬盘信息(仅显示需要部分):

    Enclosure Device ID: 32
    Slot Number: 0
    Device Id: 0
    Firmware state: Unconfigured(good), Spun Up

  3. 替换

    /opt/MegaRAID/MegaCli/MegaCli64 -PdReplaceMissing -PhysDrv[32:0] -array0,row0 -a0

  4. 强制重建

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

5.检查状态是否为Rebuild

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

本文参考:https://www.cnblogs.com/taymyway/p/7273152.html

标签: none

添加新评论