On 30 Jul, Jeff Waugh wrote:
>  <quote who="Luke Kendall">
>  
> > What I want to do is something that seems should be the norm, not
> > something unusual: I want RAID mirroring.
>  
>  Easy to do straight off, from the (text mode, or "alternate") installer.

I can't handle the thousand kernel module config questions of the text
mode installer. :-)

> > After making the filesystems, preparatory to doing the mirroring, I
> > discover the Ubuntu kernel image I'm using (2.6.15.26), doesn't appear to
> > have md support.
> > 
> > So I need to build a new kernel because I'll need RAID compiled into the
> > kernel along with ext2 and ext3 and IDE drivers and SATA drivers.
>  
>  Whoooaaa, that's not the case. Unmodified vendor kernel on my 6.06 LTS box
>  at home:
>  
>    $ find /lib/modules/2.6.15-26-686/ | grep raid1.ko
>    /lib/modules/2.6.15-26-686/kernel/drivers/md/raid1.ko

Ah!

>  What you need to do is make sure that the raid and filesystem modules you
>  need are built into the *initramfs*. The kernel definitely has support for
>  all of them, and you are *waaaaay* better off using the vendor kernel (as
>  you will get security updates and feel fuzzy inside).

I'll agree with that!

>  Rebuild your initramfs like so (as root or using sudo):
>  
>    mkinitramfs -o /boot/initrd.img-2.6.15-26-686 /lib/modules/2.6.15-26-686

How will it know to include the ide and sata drivers and raid stuff?
I'll try it, though it helps if I understood roughly *how* it figures
out what you need.

>  You will almost certainly get all of the modules you need for raid. If not,
>  or if the drivers for your storage chipsets aren't correctly included, you
>  can add module names to /etc/mkinitramfs/modules and rebuild it. I have the
>  following drivers listed in mine, because for some reason (probably a few
>  releases ago) they weren't automagically included:
>  
>    sata_sil
>    sd_mod

Sounds good - how do I determine the right module names, though?  (I've
never understood that.)

> > Oh, and I *still* haven't found where dpkg is storing the out-of-date info
> > that the root file system is hda6.  Every time it alters menu.lst I have
> > to manually revert to the backup and add the new entries by hand.
> > Installing grub to hda7 hasn't affected that.
>  
>  Look for all the other references to hda6 in the menu.list file, especially
>  the one that probably looks like this (yes, it's a comment):
>  
>  # kopt=root=/dev/hda6 ro
>  
>  :-)

Ah!  In a *comment*.  How evil! :-)

Many thanks, Jeff, that should get me on the right track.
 
luke

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to