MegaCli
From Wikitech
(Difference between revisions)
(Created page with ''''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 <tt>dataset1</tt> server uses...') |
(→Installation from the ZIP file) |
||
| Line 5: | Line 5: | ||
==Installation from the ZIP file== | ==Installation from the ZIP file== | ||
| + | apt-get install unzip | ||
wget http://www.lsi.com/DistributionSystem/AssetDocument/8.00.11_Linux_MegaCLI.zip | wget http://www.lsi.com/DistributionSystem/AssetDocument/8.00.11_Linux_MegaCLI.zip | ||
unzip 8.00.11_Linux_MegaCLI.zip MegaCliLin.zip | unzip 8.00.11_Linux_MegaCLI.zip MegaCliLin.zip | ||
| Line 11: | Line 12: | ||
apt-get install rpm | apt-get install rpm | ||
cd / | cd / | ||
| − | rpm2cpio ~-/MegaCli-8.00.11-1.i386.rpm | cpio - | + | rpm2cpio ~-/MegaCli-8.00.11-1.i386.rpm | cpio -div |
apt-get install libsysfs2 | apt-get install libsysfs2 | ||
| + | ln -s /opt/MegaRAID/MegaCli/MegaCli64 /usr/sbin/MegaCli | ||
==Common Parameters== | ==Common Parameters== | ||
Latest revision as of 18:47, 18 March 2010
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 |
[edit] 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
[edit] 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).
[edit] Monitoring
The following commands can be used to check the status of the arrays.
[edit] Battery status
TODO
[edit] Array status
TODO
[edit] Disk status
TODO
[edit] Replacing Disks
TODO