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 “”

Unpack the downloaded file:

# unzip

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

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

# unzip

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