DELL PERC5/i Integrated (LSI Logic MegaRAID)
– Emergency Cheat Sheet –

Moritz Mertinkat
moritz AT mertinkat DOT net

Version 1.3, 2008-05-20
http://tools.rapidsoft.de/perc

1 Requirements and general information

DELL’s PowerEdge RAID Controller (PERC) is a special LSI Logic SAS/SATA RAID Controller and thus the LSI management utility called MegaCli also works for this controller. For older controllers like PERC4 and PERC3 please refer to http://linux.dell.com/storage.shtml (keyword DellMgr).

MegaCli is available for Linux, DOS, Windows, Netware and Solaris.
You can get it from LSI’s website (search for MegaRAID SAS) or download it here: http://www.lsi.com/support/downloads/megaraid/miscellaneous/linux/1.01.40_Linux_Cli.zip.

Inside the ZIP file you’ll find an RPM archive which contains the MegaCli and MegaCli64 binaries (will be installed to /opt/MegaRAID/MegaCli).

Please note:
This emergency cheat sheet is not exhaustive, but it should be sufficient in most cases. For a complete reference either call MegaCli -h or refer to the manual at: http://www.lsi.com/files/docs/techdocs/storage_stand_prod/sas/mr_sas_sw_ug.pdf (Chapter 3 – MegaRAID Command Tool).

2 MegaCli conventions

While there are a lot of different parameters for MegaCli, some of them are always identical. These are described here in short.

3 Gather information

4 Controller management

5 Virtual drive management

6 Physical drive management

7 Hot spare management

8 Walkthrough: Change/replace a drive

  1. Set the drive offline, if it is not already offline due to an error

    MegaCli -PDOffline -PhysDrv [E:S] -aN

  2. Mark the drive as missing

    MegaCli -PDMarkMissing -PhysDrv [E:S] -aN

  3. Prepare drive for removal

    MegaCli -PDPrpRmv -PhysDrv [E:S] -aN

  4. Change/replace the drive
  5. If you’re using hot spares then the replaced drive should become your new hot spare drive

    MegaCli -PDHSP -Set -PhysDrv [E:S] -aN

  6. In case you’re not working with hot spares, you must re-add the new drive to your RAID virtual drive and start the rebuilding

    MegaCli -PdReplaceMissing -PhysDrv [E:S] -ArrayN -rowN -aN
    MegaCli -PDRbld -Start -PhysDrv [E:S] -aN