Monitoring IBM hardware RAID (SAS1064ET PCI-Express Fusion-MPT SAS)

I have an IBM X2 server with a hardware RAID handled by an LSI card (SAS1064ET PCI-Express Fusion-MPT SAS) and running Ubuntu 10.04 Lucid. I needed to monitor my RAID status and searched a lot on the web but I finally got it.

Getting raid status from command line

First install mpt-status

sudo apt-get install mpt-status

Then checkout if mptctl kernel module is loaded

sudo lsmod | grep mptctl

I personally get:

mptctl                 31642  0 
mptbase                91642  3 mptctl,mptsas,mptscsih

If you don’t, load it

sudo modprobe mptctl

Then launch mpt-status

sudo mpt-status -p

I get

Checking for SCSI ID:0
Checking for SCSI ID:1
Checking for SCSI ID:2
Checking for SCSI ID:3
Checking for SCSI ID:4
Checking for SCSI ID:5
Checking for SCSI ID:6
Checking for SCSI ID:7
Checking for SCSI ID:8
Checking for SCSI ID:9
Found SCSI id=9, use ''mpt-status -i 9`` to get more information.

So, as said, I run

sudo mpt-status -i 9

And I now have my raid status

ioc0 vol_id 9 type IM, 2 phy, 698 GB, state OPTIMAL, flags ENABLED
ioc0 phy 1 scsi_id 11 ATA      HUA721075KLA330  AB4A, 698 GB, state ONLINE, flags NONE
ioc0 phy 0 scsi_id 10 ATA      HUA721075KLA330  AB4A, 698 GB, state ONLINE, flags NONE

Getting email reports on status change

First we need to get the kernel module to load at boot. It get achieved  by editing /etc/modules and adding mptctl to the end of that file. Then reboot your server. After reboot, mpt-status -p command should work.

Next create an  /etc/default/mpt-statusd file and paste in:

MAILTO=root  # Where to report problems
PERIOD=600    # Seconds between each check    (default 10 minutes)
REMIND=7200   # Seconds between each reminder (default 2 hours)

Change the value as you wish. Be care to set the correct ID (the number from the command mpt-status -i 9 , for me it is 9)

You then need to set the daemon to run at boot:

sudo update-rc.d mpt-statusd enable

And fially start it:

sudo service mpt-statusd start

You are done and you will receive an email alert when the RAID status changes.

Published by


Developer, Linux Admin and mobile techs enthusiast.

5 thoughts on “Monitoring IBM hardware RAID (SAS1064ET PCI-Express Fusion-MPT SAS)”

  1. Hello,

    can you boot from any hard drive of your SAS1064ET? do you boot via grub?
    my grub does not recognize the hard drives from my SAS1064ET. do you have any idea?


    1. Just figured I would post a gnaerel update here. Its been a year and I’m still running with this exact same configuration, virtually maintenance free. Biggest issue I had was sys admins inadvertently knocking the eSATA cable loose. My OS data is not on these drives so the OS didn’t crash and I just had to plug them back in and remount and we were running again with no reboot. Definitely getting our bang for the buck.

  2. Thanks for this, I’ve spent 3 days trying to get this to work until I sutmbled upon this post. Unfortunately all I have are 3 PCI-X slots, so I have to get a new card, but at least I can stop wasting my time.

Leave a Reply

Your email address will not be published. Required fields are marked *