Order of RAID creation in boot process
Hi All,
I'm still struggling with mounting my root file system as a software RAID-1. As Norman Schmidt has suggested, the problem occurs because the RAID is not created when the kernel is ready to mount it's root partition.
I have checked the boot logs using 'dmesg' on a server that I have installed a boot+root software RAID-1 on previously. I noticed in that configuration that all the RAID devices are created before the root partition is mounted. On my new server, the messages indicating the RAID construction are after the root partition is mounted. The difference? Well the new machine has a Promise PDC 20276 controller (which I've disabled for the time being) and the drivers required for this controller compiled into the kernel. Messages about the ataraid devices appear before the mounting of the root file system, but the md software device messages come after that point.
Can anyone explain the timing of the software RAID construction? How can I get it to happen _before_ the root partition needs to be mounted? I can't see any other differences between the two setups. It must have something to do with the code for the Promise ATA RAID controller, right?
Thanks in advance.
Regards,
Lucas
Hi Norman,
Thanks for continuing to try to help me out, I was really floundering there for a while. I've sorted things out now. I've put my system disks back in the primary and secondary IDE slots and I'm going to use the ataraid slots for non-OS disks.
I've got a software RAID-0 going over hda and hdc, I'm booting off it, I've got my root partition on it and I've got a combination of ext3 for the root and boot partitions and XFS for the rest.
I accomplished this by installing onto hda, then creating the raid devices across hda and hdc one by one and using the failed-disk directive and a boot disk to make the root partition a raid device. All standard stuff.
I've removed the ataraid and pdcraid code from the kernel and compiled it as modules, with this setup, the md devices are created before the root file system is mounted. I still don't really understand why they aren't created first when ataraid and pdcraid are compiled in. I guess there is a conflict there? I can now access hde and hdg by loading the module after the system has booted, this will work out fine for me as those drives will now just be used to store non-OS data (backups and stuff).
Again, thanks for your help.
Regards,
Lucas