MegaCli

From Wikitech
Jump to: navigation, search

MegaCli is LSI's command line interface to their MegaRAID controller family. Dell uses them in their servers as e.g. "PERC5/i" or similar. Our dataset1 server uses this RAID controller.

The tool can be downloaded from the LSI website, e.g. here Version 8.0. The ZIP file contains a ZIP file which contains two RPM files.

Contents

Installation from the ZIP file

apt-get install unzip
wget http://www.lsi.com/DistributionSystem/AssetDocument/8.00.11_Linux_MegaCLI.zip 
unzip  8.00.11_Linux_MegaCLI.zip  MegaCliLin.zip
unzip  MegaCliLin.zip MegaCli-8.00.11-1.i386.rpm

apt-get install rpm
cd /
rpm2cpio ~-/MegaCli-8.00.11-1.i386.rpm | cpio -div
apt-get install libsysfs2
ln -s /opt/MegaRAID/MegaCli/MegaCli64 /usr/sbin/MegaCli

Common Parameters

Many of the commands of MegaCli make use of the following parameters:

-aN
Specifies the adapter. Use -a0 for the first adapter, -a1 for the second, or -aALL for all adapters.
-PhysDrv [E:S]
Specifies a physical drive. E is the enclosure ID, as returned by MegaCli -EncInfo -aALL. For dataset1, the possible enclosure IDs are 16 and 41. If more than one drive has to be specified, the drives are written in the form [E:S, E:S, ...].
-Lx
Specifies a virtual drive (aka RAID array) (where x is a number starting with zero or the string all).

Monitoring

The following commands can be used to check the status of the arrays.

Battery status

TODO

Array status

TODO

Disk status

TODO

Replacing Disks

TODO

External links

Personal tools
Namespaces

Variants
Actions
Navigation
Ops documentation
Wiki
Toolbox