MegaCli - replace failed drive

Disk drive is in "Unconfigured (good)" state after replacement and is not being rebuilt automatically

How to Rebuild a Drive

  1. You need to get the correct enclosure position and slot of the drive by using the following command:

    opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL

    Output will be similar to:

    Adapter #0
    [...]
    Enclosure Device ID: 8
    Slot Number: 2
    [...]
    Firmware state: Unconfigured(good), Spun Up
     

  2. To get the right Array and Row position of the drive in the RAID array, execute:

    /opt/MegaRAID/MegaCli/MegaCli64 -pdgetmissing -aALL

    The output will be similar to:

    Adapter 0 - Missing Physical drives
    No. Array Row Size Expected
    0 0 3 3814697 MB
     

  3. Place the missing drive into the RAID array and run this command:

    /opt/MegaRAID/MegaCli/MegaCli64 -PdReplaceMissing -PhysDrv [8:2] -Array0 -row3 -a0

    Where 8 and 2 in [8:2] are the Enclosure Device ID and slot number respectively, 0 in Array0 is the array number, 3 in row3 is the number of the drive in the RAID array, and 0 in a0 represents the adapter.

    Output should be similar to:

    Adapter: 0: Missing PD at Array 0, Row 3 is replaced.

     Note:  Should you see a message similar to this while running step #4

      Adapter: 0: Failed to replace Missing PD at Array 0, Row 3.

     FW error description:
     PDs in LD have incompatible EEDP types
     Exit Code: 0x63
    Do the steps in the section for PI Support

  4. To start rebuilding the drive run this command:

    /opt/MegaRAID/MegaCli/MegaCli64 -PDRbld -Start -PhysDrv [8:2] -a0

    Output should be similar to this:

    started rebuild progress on device encl 8 slot 2
     

  5. To check status on the rebuilding status, run this command:

    /opt/MegaRAID/MegaCli/MegaCli64 -PDRbld -ShowProg -PhysDrv [8:2] -a0

    Note: You might have to escape the brackets "[" and "]" as "\[" and "\]".

  6. To check the drive, run this command:

    /opt/MegaRAID/MegaCli/MegaCli64 -PdInfo -PhysDrv [8:2] -a0

    Note: You might have to escape the brackets "[" and "]" as "\[" and "\]".

  1. Megacli Cheat Sheet

chubbard_megacli.pdf

Have more questions? Submit a request

2 Comments

  • 0
    Avatar
    Nate Huffnagle

    Silence Alarm:

    /opt/MegaRAID/MegaCli/MegaCli64 -AdpSetProp AlarmSilence -aALL

    Locate Drive:

    /opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL | grep -B19 Unconfigured | awk '(/Enclosure Device ID/ || /Slot Number/ || /Unconfigured/)'

    ie:

    Enclosure Device ID: 16

    Slot Number: 5

    Firmware state: Unconfigured(bad)

     

    Blink Drive:

    /opt/MegaRAID/MegaCli/MegaCli64 -PdLocate -start -physdrv[16:5] -a0

     

  • 0
    Avatar
    Nate Huffnagle

    /opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL | grep -B19 -A29 Unconfigured 

     

Please sign in to leave a comment.
Powered by Zendesk