<?xml version="1.0" encoding="UTF-8"?>
<!-- name="generator" content="pyblosxom/1.4.1 7/27/2007" -->
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd">

<rss version="0.91">
<channel>
<title>Блогчетање   </title>
<link>https://danilo.segan.org/blog</link>
<description>Данилово блогче</description>
<language>en</language>
<item>
  <title>Ubuntu Edgy on HP NetServer LP 1000r</title>
  <link>https://danilo.segan.org/blog/admin/ubuntu-on-hp-netserver-lp1000r</link>
  <description><![CDATA[
<p>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.</p>

<p>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.</p>

<p>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.</p>

<p>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
<a href="http://www.suseblog.com/?p=156">SUSE Linux Rants</a> 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).</p>

<p>The tricky bits have now been to add this to installation media,
and I decided to go with <a
href="https://help.ubuntu.com/community/LiveCDCustomization/6%2e06">Live
CD</a> instead of the <a
href="https://help.ubuntu.com/community/InstallCDCustomization?action=show&redirect=InstallCDCustomizationHowTo">Server
Install CD</a>, since it was simpler, and I don't mind having full
desktop on the server as well.</p>

<p>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 <a href="http://kvota.net/hacks/megaraid/root-megaraid.tar.gz">all</a> into a
/root/tmp (inside edit/—extracted filesystem) with some include files,
and built the module <a
href="http://kvota.net/hacks/megaraid/megaraid.ko">megaraid.ko</a>,
putting it into
<code>lib/modules/2.6.17-10-generic/kernel/drivers/scsi/megaraid.ko</code>
instead of the old legacy one, and removing all the new ones from
<code>lib/modules/2.6.17-10-generic/kernel/drivers/scsi/megaraid/</code>
(to avoid panics since they'll still be loaded).</p>

<p>To build the driver, one can use <code>make -C
/lib/modules/2.6.9-11.EL/build SUBDIRS=/usr/src/megaraid
modules</code> command if the above archive was extracted inside
/usr/src/megaraid (see <a
href="http://www.tuxyturvy.com/blog/index.php?/archives/4-Installing-RHEL4-on-Systems-with-Legacy-Megaraid-Drivers.html">RHEL4
tips</a>.</p>


<p>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.</p>

<p>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.</p>

<p>The bug about missing megaraid support is <a
href="https://launchpad.net/ubuntu/+source/linux-source-2.6.17/+bug/82124">bug
#82124</a> in Launchpad.</p>

<p><strong>Warning:</strong> 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.</p>

<p>The instructions here should help for both HP NetServer LP 1000R
and 2000R.</p>

]]></description>
</item>

</channel>
</rss>
