MegaCli 磁盘Rebuild,Firmware state: Unconfigured(good), Spun Up

开始是这样的: 机房发邮件说硬盘橙色灯了, 然后我就找公司小朋友去看了,然后其实没有警告灯,但小朋友不太懂,还是把好的硬盘给拔出来了.
悲剧发生了,硬盘橙色警告, 系统橙色叹号也亮了.
查硬盘状态
Firmware state: Unconfigured(good), Spun Up
重建警告状态不对. 其实是流程没整对

网上搜了下处理方式主要如下:
https://community.mcafee.com/thread/60189?tstart=0

setp1:查状态:
# check out the slot ena enclosureDevice

/opt/MegaRAID/CmdTool2/CmdTool2 -pdlist -a0 | egrep “(Slot|Firmware state|Encl)”

EnclosureDevice ID: 0
SlotNumber: 0
Firmwarestate: Online, Spun Up
EnclosureDevice ID: 0
SlotNumber: 1
Firmwarestate: Online, Spun Up
EnclosureDevice ID: 0
SlotNumber: 2
Firmwarestate: Online, Spun Up
EnclosureDevice ID: 0
SlotNumber: 3
Firmwarestate: Online, Spun Up
EnclosureDevice ID: 0
SlotNumber: 4
Firmwarestate: Online, Spun Up
Enclosure Device ID: 0
Slot Number: 5
Firmware state: Unconfigured(good), Spun Up

发现目标了

setp2:
查这个丢失磁盘的信息
/opt/MegaRAID/CmdTool2/CmdTool2 -PDGetMissing -a0
Adapter 0 – Missing Physical drives
No. Array Row Size Expected
0 0 1 285148 MB

这里No=0, array=0 row=1

setp3:
重建
# Bring device back in array

#/opt/MegaRAID/CmdTool2/CmdTool2-PdReplaceMissing -PhysDrv[ –row -a
/opt/MegaRAID/CmdTool2/CmdTool2 -PdReplaceMissing -PhysDrv[0:5] –array0 -row1 -a0
Adapter: 0:Missing PD at Array 0, Row 1 is replaced.

这里用到了setp2的信息

# now rebuild the array

/opt/MegaRAID/CmdTool2/CmdTool2 -PDRbld -Start -PhysDrv[0:5] -a0
Started rebuild progress on device(Encl-0 Slot-5)

然后再查下状态,开始重建了!!泪奔