Contact
Site: US UK AU |
Nexcess Blog

Managing hardware RAID with MegaCLI

December 28, 2010 0 Comments RSS Feed

Dell PERC
We use Dell PERC 5 and PERC 6 hardware RAID controller cards in quite a few of our servers, and the Linux configuration / management is a bit less than user friendly. The Dell PERC 5/i card is actually a re-branded LSI MegaRAID SAS 8408E and can actually be flashed with the LSI firmware, which has led to mixed success for some.

There is a large and very informative forum thread on overclock.net that is the largest single source of PERC 5/i information on the internet. However, the documentation for the MegaCLI client isn’t very helpful when it comes to actually extracting useful information out of it. This blog post helps to explain things a bit. There is also a cheat sheet available in a few different formats.

Here are the commands that we use most often:

# Show status
MegaCli -AdpAllInfo -aAll
# Get physical drive info
MegaCli -PDList -aAll
# Get virtual disk info
MegaCli -LDInfo -Lall -aAll
# Display configuration
MegaCli -CfgDsply -aAll
# Dump eventlog events to file 'events' and open it
MegaCli -AdpEventLog -GetEvents -f events -aAll && less events

Hopefully this will help you out if you ever have to use the MegaCLI RAID utility.

Posted in: General