This is an old revision of the document!
http://www.unixpearls.com/lsi-megaraid-megacli-linux-commands/
http://thatlinuxbox.com/blog/article.php/lsi-megaraid-megacli
Install MegaCLI:
wget ftp://tsupport:tsupport@ftp0.lsil.com/private/MegaRAID/downloads/8.00.23_Linux_MegaCLI.zip unzip 8.00.23_Linux_MegaCLI.zip rpm -Uvh Lib_Utils-1.00-08.noarch.rpm MegaCli-8.00.23-1.i386.rpm
The path to MegaCLI may not be added during installation, so you might just change into the directory containing the binaries and preface commands with “./”:
cd /opt/MegaRAID/MegaCli/
Silence an alarm:
./MegaCli -AdpSetProp -AlarmSilence -aALL
You have to escape the brackets and braces needed by some commands.
To manipulate a particular physical device, address it by enclosure and slot:
E | Enclosure Device ID |
S | Slot Number |
Disk info for drive on port 6:
./MegaCli -pdInfo -PhysDrv \[252:6\] -aALL
Display all information about all RAID adapter / settings:
./MegaCli -AdpAllinfo -aALL
Display information about all physical drives:
./MegaCli -PDList -aALL
Display information about all logical / virtual drives:
./MegaCli -LDGetProp -LALL -aALL