RE: Autostart RAID 1+0 (root)

Alok K. Dhir (alok@dhir.net)
Tue, 22 Jan 2002 13:07:32 -0500


> > >
> > > Does the kernel support autostarting nested RAID partitions?
> > >
>
> Yes it does. If you have persistent superblocks on all arrays, they
> *should* autostart.
>
> If you boot from the 4G disk, does the array start properly ?
> Does it start properly even if you remove your /etc/raidtab ?
>
> Please check that you have the correct RAID levels either
> compiled into your kernel, or on an initrd.

1. I have persistent superblocks on all arrays.
2. Booting from the 4G does allow the arrays to start properly.
3. The first two arrays (md0 and md1, the mirrors) start properly
without raidtab. The third, the stripe between md0 and md1, does not.
4. All raid levels are compiled as modules, along with reiserfs, and my
scsi card driver in an initrd. I also tried compiling a monolithic
kernel with all of these without success.

I did, in fact, get it working. The only way I was able to do boot with
my nested array autostarted and mounted as root was to create an initrd
with a statically compiled raidstart and a copy of my raidtab in the
initrd's etc dir. I then issue "raidstart mdx" commands for each of the
arrays in linuxrc. I actually just modified the mkinitrd genereated
initrd image.

I can only conclude that autostarting nested arrays either doesn't work,
or is broken in RH-2.4.9-13. I have not tried a more recent kernel with
this machine.

Thanks

Al

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/