Linux - RAID Monitor - LSI MegaRAID SAS

This page documents monitoring of RAID controllers base on the "LSI Logic / Symbios Logic MegaRAID SAS 1078 or 2208" chipset. The information also applies to the RAID controller identified as "Dell PowerEdge Expandable RAID controller 5" by lspci.

RAID controllers

Some known RAID controllers based on this chipset are:

  • Dell PERC 6/i Integrated RAID Controller
  • Dell PERC 5/i Integrated RAID Controller
  • Dell PERC H710P Mini


For the impatient theres an installer script for installing required tools and setup the crontab script.

You need to install the proprietary megacli command. This tool was created by LSI Logic and can be downloaded from their site. It is also available as a Debian package from

Gentoo GNU/Linux

Install from portage:

    bash$> emerge sys-block/megacli

Download the megacli package for Debian and install using dpkg:

    bash$> wget
    bash$> dpkg -i megacli_8.04.07-1_amd64.deb
Red Hat

Download and install the megacli RPM-file (either version).

    bash$> wget
    bash$> rpm -ihv megacli-8.04.07-2.x86_64.rpm
    bash$> wget
    bash$> rpm -ihv megacli-8.07.14-1.x86_64.rpm

Download the Debian package and convert using alien:

    bash$> alien -t megacli_8.04.07-1_amd64.deb
    bash$> installpkg megacli-8.04.07.txz


The megacli crontab script dumps various information in /var/cache/megacli. On next invocation, the current dump is diffed against the old and if changes are detected, a mail is sent to root.

Download the megacli and mpt-status crontab script and put it in /etc/cron.hourly:

    bash$> wget
    bash$> mv megacli.cron /etc/cron.hourly/megacli

If you are using an older system with Bash 3.x, try the alternative megacli for Bash 3.x instead.

S.M.A.R.T. Monitoring

Monitoring of S.M.A.R.T. information is possible by using the smartmontools megaraid extension:

    bash$> grep -v '#' /etc/smartd.conf
  /dev/sda -a -d megaraid,0 -m root
  /dev/sda -a -d megaraid,1 -m root
  /dev/sdb -a -d megaraid,0 -m root
  /dev/sdb -a -d megaraid,1 -m root

    bash$> smartctl -a -d megaraid,0 /dev/sda
    bash$> smartctl -a -d megaraid,1 /dev/sdb

The system above got an Dell PERC 6/i Integrated RAID Controller with two SAS disks in mirror (RAID-1) and three SATA disks in a strip set (RAID-5). Each disk can be addressed using an disk index for the -d flag.

More information

See the LSI MegaRAID SAS Wiki page.