So you’ve got a new Dell C2100 running a LSI 9260-8i and a drive craps out on you that was in a RAID5. Thus fa in order to replace it I’ve had to:
Figure out which virtual disk is having problems
>MegaCli64 -LDInfo -Lall -aALL
Adapter 0 -- Virtual Drive Information: Virtual Drive: 0 (Target Id: 0) Name : RAID Level : Primary-5, Secondary-0, RAID Level Qualifier-3 Size : 2.726 TB State : Degraded ...
Figure out which drive is having the issue
>MegaCli64 -pdlist -aall Adapter #0 Enclosure Device ID: N/A Slot Number: 0 Device Id: 0 Sequence Number: 6 ... Firmware state: Unconfigured(bad)
Looking for what ever is showing a firmware state not equal to “Online, Spun Up”. Thus far every time I’ve done this it’s been in a Unconfigured(Bad).
Figure out the Array and Row numbers that will be needed later for adding the new drive back in.
>MegaCli64 -pdgetmissing -a0
Adapter 0 - Missing Physical drives No. Array Row Size Expected 0 0 0 571808 MB All my failures have taken the drive out and I can find it this way rather than having to force it out.
Docs say the procedure to get ready replace is:
>MegaCli64 -PDList -aALL
>MegaCli64 -pdreplacemissing -physdrv [:13] -Array0 -row0 -a0
Adapter: 0: Missing PD at Array 0, Row 0 is replaced.
>MegaCli64 -pdrbld -start -physdrv [:13] -a0
Started rebuild progress on device(Encl-N/A Slot-0)
>MegaCli64 -pdrbld -showprog -physdrv [:0] -a0
Rebuild Progress on Device at Enclosure N/A, Slot 0 Completed 0% in 15 Minutes.