-----BEGIN PGP SIGNED MESSAGE----- On Friday 17 Jan 2003 4:09 pm, [EMAIL PROTECTED] wrote:
> Hrmm... Just took a look at the code for mkinitrd ... > > I'm not much of a shell programmer, and I don't have a great concept of > what the script does... So I haven't the foggiest of the how/what./why > when it comes to hacking mkinitrd... What it does is look for various pointers to the modules it needs to load. So, for instance, it looks for anything labelled as scsi_hostadapter in /etc/modules.conf and inserts the necessary modules and commands into linuxrc. However, there are some subtleties that it misses. If you are using autodetection of RAID arrays then you may or may not have an /etc/raidtab. It so happens that for some reason on my Mandrake 9 install I don't (or rather it was corrupt, I rm'd it) and so the RAID part of mkinitrd failed to find anything saying raid5, and so didn't load any RAID modules. > Having said this, yes, the kernel was shipped with all necessary modules. > I have the RAID device mounted at a different mount point fine... and I > have boot as a non-RAID partition (although, I don't know if that is > necessary any more). You can have /boot as RAID, but only RAID-1. This is because RAID-1 is a standard partition with a RAID superblock at the end. Of course it also has to be at the start of the disk and not go outside of the BIOS addressable space. More information is available in the Mini-HOWTO on it at: http://www.ibiblio.org/pub/Linux/docs/HOWTO/mini/other-formats/html_single/Boot+Root+Raid+LILO.html > I can do a great job of compiling a kernel... so if needed I will... would > like to do mkinitrd the right way first though... I think that your problem will be that the mkinitrd script with the - --with=raid1 option does not insert the: raidautorun /dev/md? line that I think is needed. Indeed, the manual page for "nash" (the program that interprets linuxrc) says: raidautorun mddevice Runs raid autodetection on all raid-typed partitions. mddevice must be a raid device (any will do). To me it looks like the failure to add this line is an oversight in mkinitrd. It happens because the trigger for it ($startraid being set to non-zero) is only that it finds the appropriate lines in /etc/raidtab. > FWIW here is the output of `lsmod`: [...] > (hopefully that will be somewhat readable) Yup, perfectly. It's the same setup as the one I've been using. I'll send you my hacked mkinitrd script in a separate mail. > Really appreciate all the feedback I've gotten from you, and everyone else > on SLUG. No problem. Took me ages to figure out what was going on with my system, least I can do is try and make it easier for someone else! cheers, Chris - -- Chris Samuel Wollongong, NSW -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iQEVAwUBPie0So1yjaOTJg85AQFahwf/Ue13UuS2DIyaVhqtvDyTqj4OaxBsUn0k QXCxwdefaQ89EIexzHh1xysxlqbQNXEHcSqAcg9kgWxzFThKmO6mFKn0QGIlxXFI PP9qE71DEv5S97CshFrsQYW5/m1QX2scJRlahBuhs1FzV3caH4LiU6ZU6BzJkbbl Z41Uuw5jHI/X9P7ZJIiOO0COqlFa0AO9vq/ib1QsWwjnuWCAG2TI4pwYbU16PDLQ SQ6OqeCxMkErR2NshiJH15NW7rW8VX6R/MzDVvMtYUicye9/iRKhjo00qZxnkAHn GoV1f/ddgi78vbOupOY9gtqFEo4bhDaZroBZzh5FxgrsPRKdO+VBZg== =WPaD -----END PGP SIGNATURE----- -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
