Блогчетање

Данилово блогче

Tue, 06 Feb 2007

I just had a chance to install Ubuntu Edgy on HP NetServer LP 1000r: a 1U unit equipped with HP NetRAID 1M controller, which caused the most grief.

The situation was simple: megaraid drivers used by default kernel panic at random points during installation: sometimes right after boot, sometimes during partitioning, sometimes toward the end of the installation.

The real solution would be to fix the new megaraid drivers in the Linux kernel source, but I don't have the time nor knowledge to do so at the moment (though, knowledge can be acquired over time :). The workaround is to use the megaraid legacy driver, which is already shipped by Ubuntu.

The only slight problem is that it still doesn't recognize the HP NetRaid 1M controller as the supported one, so the module is not loaded, and loading it manually doesn't help. I've used a patch from SUSE Linux Rants to make megaraid.c and megaraid.h from linux-source-2.6.17 recognize the controller (which just adds the corresponding list of PCI IDs to the driver).

The tricky bits have now been to add this to installation media, and I decided to go with Live CD instead of the Server Install CD, since it was simpler, and I don't mind having full desktop on the server as well.

Following the instructions on customizing Live CD, I've extracted Linux source there, got the megaraid.c and megaraid.h files out of it, patched them with the above mentioned patch, put it all into a /root/tmp (inside edit/—extracted filesystem) with some include files, and built the module megaraid.ko, putting it into lib/modules/2.6.17-10-generic/kernel/drivers/scsi/megaraid.ko instead of the old legacy one, and removing all the new ones from lib/modules/2.6.17-10-generic/kernel/drivers/scsi/megaraid/ (to avoid panics since they'll still be loaded).

To build the driver, one can use make -C /lib/modules/2.6.9-11.EL/build SUBDIRS=/usr/src/megaraid modules command if the above archive was extracted inside /usr/src/megaraid (see RHEL4 tips.

After doing that, I've also added "megaraid" to the /etc/initramfs-tools/modules, and rebuilt the initrd using instructions on Live CD customization page.

Finally, I've constructed a Live CD, tested it with qemu, and then booted and installed the server off it. Finally a fully working system (everything else was recognized automatically). I can provide the ISO image for those interested, but it would be better if someone created an ISO image for ubuntu-server installation instead.

The bug about missing megaraid support is bug #82124 in Launchpad.

Warning: note that if you update your linux-image package, you'll again end up with new-style megaraid drivers being loaded, and the old-style being overwritten with the one without support for the NetRaid PCI IDs.

The instructions here should help for both HP NetServer LP 1000R and 2000R.

[09:25] | [] | # | G | | TB

Name:


E-mail:


URL:


Comment:


Contact
Danilo Segan

This is blog (web log) of Danilo Šegan (or Данило Шеган).

Archives
2017-Jan
2013-Dec
2011-Nov
2011-Oct
2011-Aug
2011-Jul
2011-Jun
2011-May
2010-Oct
2010-Aug
2010-Jul
2010-Apr
2010-Mar
2010-Feb
2010-Jan
2009-Dec
2009-Oct
2009-Aug
2009-Jun
2008-Oct
2008-Aug
2008-Jul
2008-Jun
2008-May
2008-Apr
2008-Mar
2008-Feb
2007-Dec
2007-Oct
2007-Aug
2007-Jul
2007-May
2007-Apr
2007-Feb
2007-Jan
2006-Nov
2006-Oct
2006-Aug
2006-Jul
2006-Apr
2006-Mar
2006-Feb
2006-Jan
2005-Sep
2005-Jun
2005-May
2005-Apr
2005-Mar
2005-Feb
2004-Dec
2004-Nov
2004-Oct
2004-Sep
2004-Aug
2004-Jul
2004-May
2004-Apr
2004-Mar
2004-Feb
2004-Jan
2003-Dec
2003-Nov
2003-Oct
2003-Sep
1983-Mar

< February 2007 >
MoTuWeThFrSaSu
    1 2 3 4
5 6 7 8 91011
12131415161718
19202122232425
262728    
Categories

Links
Kvota.net
Prevod.org
My study page
Srpski.org
GNOME
Friends' Blogs
alex (en)
bc (en)
Bojan Živanović (sr)
Carlos (en)
Goran (sr)
imp (sr)
lilit (sr)
Oskuro (en)
Zombie (sr/en)
Feeds
RSS