Hi,
MegaCli is a command line configuration utility for LSI-based RAID controllers. We can build, repair and remove raid devices with this tool. I am here lists some of the commands that will be useful for everyone to check the status/gather information of the current status of the MegaRAID server.
First of all
Installing MegaCli1, Downloading package to the server.
http://www.lsi.com/downloads/Public/MegaRAID%20Common%20Files/8.04.07_MegaCLI.zip2, Unzip the contents of the folder using the 'unzip' command and then untar it using the tar command.
3, You will have two .rpm files. Install it using rpm.
rpm -ivh *.rpm
4. The default directory for the installed utility will be in the /opt/MegaRAID/MegaCli folder. It will either be called MegaCli or MegaCli64.
5. To make running the command by just typing 'MegaCli' we will setup an alias like so:
alias MegaCli="/opt/MegaRAID/MegaCli/MegaCli64"
6,
Don't forget to add the same line to /root/.bashrc so it stays there after boot.You are now ready to use the MegaCli utility. Now I am listing some of the useful commands that can be used to gather information.
To get Control informationMegaCli -AdpAllInfo -aALL
Enclosure information MegaCli -EncInfo -aALL
Virtual/Logical drive informationMegaCli -LDInfo -Lall -aALL
Physical drive information MegaCli -PDList -aALL
MegaCli -PDInfo -PhysDrv [E:S] -aALL
Battery backup information MegaCli -AdpBbuCmd -aALL
There are plenty of commands and scope for this MegaCli tool which is out of bound of this article. Hence I am stopping this here. I hopes you are having a basic idea to use MegaCli within a MegaRAID environment.
Thanks, Leo Prince.