Recently, I had installed Citrix XenServer 6.2.0 on IBM x3650 M2 rack server and it had a LSI Logic 1068E SAS controller.
Now, I had to set up health monitoring for raid disks. Few minutes on Google lead me to mpt-status and I found my new friend. The steps are pretty simple.
Download the below RPMs. RPMs ??? Yes, Citrix Xenserver is toned down version of a 32-Bit Red Hat based distro. In fact, I found some CentOS 5.X packages installed on the server.
Optional: Download the below RPMs just in case you want to have email alerts. I used these in my environment to shoot emails in case of a RAID drive failure using bash shell script. I like mutt for CLI emails, you can mail too.
NOTE: All the above RPMs work for XenServer 6.2.0, they might vary in a different version of XenServer
Let's install and test mpt-status
[citrix-xen]# rpm -ivh mpt-status-1.2.0-3.el5.centos.i386.rpm daemonize-1.5.6-1.el5.i386.rpm
Load the kernel module
[citrix-xen]# modprobe mptctl [citrix-xen]# [citrix-xen]# mpt-status -p (I had 7 disks, 6 in RAID volume and 1 as spare) 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 Found SCSI id=6, use ''mpt-status -i 6`` to get more information. [citrix-xen]# [citrix-xen]# mpt-status -i 6 ioc0 volid 6 type IME, 6 phy, 407 GB, state OPTIMAL, flags ENABLED ioc0 phy 6 scsiid 9 IBM-ESXS MBD2147RC SB18, 136 GB, state ONLINE, flags NONE ioc0 phy 5 scsiid 10 IBM-ESXS MBD2147RC SB17, 136 GB, state ONLINE, flags NONE ioc0 phy 4 scsiid 7 IBM-ESXS CBRCA146C3ETS0 N C610, 136 GB, state ONLINE, flags NONE ioc0 phy 3 scsiid 13 IBM-ESXS MBD2147RC SB19, 136 GB, state ONLINE, flags NONE ioc0 phy 2 scsiid 8 IBM-ESXS CBRCA146C3ETS0 N C610, 136 GB, state ONLINE, flags NONE ioc0 phy 1 scsi_id 11 IBM-ESXS MBD2147RC SB18, 136 GB, state ONLINE, flags NONE [citrix-xen]#
Now, to test further you can intentionally fail one disk, just by just pulling off one of the disks and check the status again.
Hope this helps someone.