megacli not working for SAS 6/iR (LSI Logic / Symbios Logic SAS1068E PCI-Express Fusion-MPT SAS) on PE1950III running citrix xenserver 5.0.0

Sabuj Pattanayek sabujp at gmail.com
Thu Mar 5 00:49:13 CST 2009


Well looks like I need a program called mpt-status for that device
http://lists.us.dell.com/pipermail/linux-poweredge/2008-February/034790.html)(:

http://www.drugphish.ch/~ratz/mpt-status/

In order to get it to compile (do it on a RHEL5 32 bit machine or on a
RHEL5 64bit system using -m32 in CFLAGS) you'll need the full kernel
source, either download linux-2.6.18.tar.bz2 from kernel.org or
install the latest RHEL5 SRPM. Modify the Makefile and then apply this
patch:

####

--- mpt-status.h.old	2009-03-05 00:13:05.916000000 -0600
+++ mpt-status.h	2009-03-05 00:13:14.671000000 -0600
@@ -2,9 +2,6 @@
 #define _MPT_STATUS_H

 #include <sys/ioctl.h>
-#ifdef __linux__
-#include <linux/compiler.h>
-#endif

 #ifdef SANITIZED_KERNEL_HEADERS
 #include "mpt-sanitized.h"

####

Then you'll need to "modprobe mptctl" in citrix xenserver because
although /dev/mptctl exists mpt-status will complain that it can't
talk to the device. Then it seemed to work without problems:

# ./mpt-status
ioc0 vol_id 0 type IM, 2 phy, 418 GB, state OPTIMAL, flags ENABLED
ioc0 phy 1 scsi_id 9 SEAGATE  ST3450856SS      HS09, 419 GB, state
ONLINE, flags NONE
ioc0 phy 0 scsi_id 1 SEAGATE  ST3450856SS      HS09, 419 GB, state
ONLINE, flags NONE

HTH,
Sabuj Pattanayek



More information about the Linux-PowerEdge mailing list