No storage info from OMSA 5.1 on Debian Etch

Patrick_Boyd at Dell.com Patrick_Boyd at Dell.com
Mon Jan 22 19:23:30 CST 2007


Ok it's what I thought. The behavior changed in gcc-4.1 to initialize static structures to 0. The current Adaptec management interface relies on the /proc/scsi/aacraid interface being present. The aacraid driver was creating this because there was a bunch of uninitialized garbage in this structure and since it is now 0 the aacraid driver no longer creates the /proc/scsi/aacraid directory. There are three solutions to this:

1. You can wait for OMSA 5.2 (it uses sysfs)
2. You can apply the path that I submitted to the linux-scsi listserv to your aacraid driver (see below)
3. You can complain to the linux-scsi listserv that this is broken and ask them to accept my patch.

Hope this helps,
Patrick Boyd

*******ORIGINAL PATCH EMAIL************

From: Patrick Boyd <Patrick_Boyd at dell.com>, Bill Edwards <Bill_Edwards at dell.com>

The problem that we are having is that on the current version of RedHat Enterprise Linux 5 (2.6.16 kernel) the Adaptec raid management libraries (AFALIB) no longer function. We were able to root cause this to the fact that the /proc/scsi/aacraid directory was missing. 

This directory is created if two properties are set in the scsi_host_template structure: proc_name and proc_info. However, previous driver version were not setting proc_info and as far as we can tell this was just being set to uninitialized memory which was allowing the directory creation to succeed. Apparently compiler or runtime behavior has changed so that uninitialized entries in this static struct are set to 0. Our solution is to simply create a function and put the function pointer into the struct to restore the original behavior under the new compiler.

Signed-off-by: Patrick Boyd <Patrick_Boyd at dell.com>, Bill Edwards <Bill_Edwards at dell.com>

---

--- linux-2.6.16/drivers/scsi/aacraid/linit.c.orig	2006-08-30 11:53:58.000000000 -0500
+++ linux-2.6.16/drivers/scsi/aacraid/linit.c	2006-08-30 11:55:27.000000000 -0500
@@ -782,10 +782,18 @@ static struct file_operations aac_cfg_fo
 	.open		= aac_cfg_open,
 };
 
+static int aacraid_proc_info(struct Scsi_Host *host, char *buffer, char **start, off_t offset,
+                                int length, int inout) {
+        return 0;
+}
+
+
 static struct scsi_host_template aac_driver_template = {
 	.module				= THIS_MODULE,
 	.name           		= "AAC",
 	.proc_name			= AAC_DRIVERNAME,
+	.proc_info			= aacraid_proc_info,
 	.info           		= aac_info,
 	.ioctl          		= aac_ioctl,
 #ifdef CONFIG_COMPAT

-----Original Message-----
From: Nuno Jordão [mailto:njordao at tp.telepac.pt] 
Sent: Monday, January 22, 2007 7:17 PM
To: Boyd, Patrick; linux-poweredge-Lists
Subject: RE: No storage info from OMSA 5.1 on Debian Etch

# strings /lib/modules/2.6.18-3-686/kernel/drivers/scsi/aacraid/aacraid.ko | grep magic
vermagic=2.6.18-3-686 SMP mod_unload 686 REGPARM gcc-4.1

# strings /lib/modules/2.6.18-3-686/kernel/drivers/scsi/aacraid/aacraid.ko | grep version=
version=1.1-5[2409]-mh2
srcversion=B910F59726FEF7EE445A338

Cumprimentos,
Nuno Jordão

-----Original Message-----
From: Patrick_Boyd at Dell.com [mailto:Patrick_Boyd at Dell.com]
Sent: terça-feira, 23 de Janeiro de 2007 1:11
To: Nuno Jordão; linux-poweredge at lists.us.dell.com
Subject: RE: No storage info from OMSA 5.1 on Debian Etch

Can you give me your version magic from aacraid module?

strings aacraid.ko | grep vermagic

Thanks,
Patrick Boyd

-----Original Message-----
From: Nuno Jordão [mailto:njordao at tp.telepac.pt]
Sent: Monday, January 22, 2007 6:53 PM
To: Boyd, Patrick; linux-poweredge-Lists
Subject: RE: No storage info from OMSA 5.1 on Debian Etch

It appears that the driver from the debian 4.0RC1 kernel does not create those entries:

# uname -r
2.6.18-3-686
# lsmod | grep aacraid
aacraid                51424  4
scsi_mod              124168  2 sd_mod,aacraid
# ls /proc/scsi/aacraid
ls: /proc/scsi/aacraid: No such file or directory # ls /dev/afa*
ls: /dev/afa*: No such file or directory

Nuno Jordão

-----Original Message-----
From: Patrick_Boyd at Dell.com [mailto:Patrick_Boyd at Dell.com]
Sent: terça-feira, 23 de Janeiro de 2007 0:39
To: Nuno Jordão; a.faglia at farmol.it; linux-poweredge at lists.us.dell.com
Subject: RE: No storage info from OMSA 5.1 on Debian Etch

The only cards that require special modules are the PERC 4/IM, SAS 5/iR, SAS 5/i, SAS 5/E, and some non-RAID cards. The other PERC cards use the RAID interfaces (either aacraid or megaraid/megaraid-sas) for management.

If your having issues with OMSA seeing your PERC 3/Di look for
/proc/scsi/aacraid/* and /dev/afa* these are the interfaces to the aacraid module that OMSA uses.

-----Original Message-----
From: Nuno Jordão [mailto:njordao at tp.telepac.pt]
Sent: Monday, January 22, 2007 6:21 PM
To: Boyd, Patrick; a.faglia at farmol.it; linux-poweredge-Lists
Subject: RE: No storage info from OMSA 5.1 on Debian Etch


Hello,

Are there any required modules to monitor a PowerEdge 2650 Adaptec based PERC 3Di like those for the LSI based cards? 
Still not working on those... :(

It would be nice to have a list of all required/available modules for each model of Perc Raid Adapters... :)

Thank You.

Nuno Jordão

-----Original Message-----
From: linux-poweredge-bounces at dell.com
[mailto:linux-poweredge-bounces at dell.com] On Behalf Of Patrick_Boyd at dell.com
Sent: segunda-feira, 22 de Janeiro de 2007 19:02
To: a.faglia at farmol.it; linux-poweredge at lists.us.dell.com
Subject: RE: No storage info from OMSA 5.1 on Debian Etch

There are specific version of the mptlinux (aka mptscsi, aka mptsas) driver needed in addition to the mptctl driver. First I'd make sure that these modules are loaded and if they are and you still have problems compare your versions to the drivers listed on support.dell.com. 

-----Original Message-----
From: linux-poweredge-bounces at dell.com
[mailto:linux-poweredge-bounces at dell.com] On Behalf Of Alessandro FAGLIA
Sent: Saturday, January 20, 2007 2:05 AM
To: linux-poweredge-Lists
Subject: No storage info from OMSA 5.1 on Debian Etch

Dear list,
I happily managed to have OMSA 5.1 (grabbed from
ftp://ftp.sara.nl/pub/sara-omsa) working on Debian testing (aka Etch).
The server is a PE 840 with two 160GB SATA disks attached to a SAS5iR controller in a RAID0 configuration. Kernel has been properly compiled from a vanilla 2.6.19.
I can get info for almost all subsystem, and also web interface is working on port 1311 (many thanks to Sander Keemink for his precious work).

The only problem I have is that for the storage subsystem I am not able to get any information. That is:
myserver:/opt/dell/srvadmin/oma/bin# ./omreport storage controller No controllers found

Probably I am missing a kernel module or something else.
I would be grateful to anybody giving me some clue to fix this last issue.


Regards.
Alessandro

_______________________________________________
Linux-PowerEdge mailing list
Linux-PowerEdge at dell.com
http://lists.us.dell.com/mailman/listinfo/linux-poweredge
Please read the FAQ at http://lists.us.dell.com/faq

_______________________________________________
Linux-PowerEdge mailing list
Linux-PowerEdge at dell.com
http://lists.us.dell.com/mailman/listinfo/linux-poweredge
Please read the FAQ at http://lists.us.dell.com/faq



More information about the Linux-PowerEdge mailing list