MegaCli for Debian / Ubuntu



Unfortunately LSI and Dell doesn’t provide the MegaCli tool as source or .deb package, therefor it is not possible (by default) to install MegaCli on Debian servers.

I managed to get MegaCli working on a Debian server.

Download MegaCli from LSI:

# cd ~
# wget “http://www.lsi.com/downloads/Public/MegaRAID%20Common%20Files/8.00.46_Linux_MegaCLI.zip”

Unpack the downloaded file:

# unzip 8.00.46_Linux_MegaCLI.zip

if unzip is not installed, please install:
# apt-get install unzip

There is a .zip file in this .zip file (logical?), unzip again:

# unzip MegaCliLin.zip

This will extract a .rpm package, on Debian servers it is not possible to install this package, but using rpm2cpio it is possible to extract it:

# rpm2cpio MegaCli-8.00.46-1.i386.rpm | cpio -idmv

if rpm2cpio is not found, please install:
# apt-get install rpm2cpio

Now MegaCli and MegaCli64 are extracted, run:

# ./opt/MegaRAID/MegaCli/MegaCli -AdpAllInfo -aALL
# ./opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aALL