I'm trying to set up software raid on my root partition, but I keep getting kernel panics when i boot.
Here's my setup:
/dev/sda1: boot partition
/dev/md0: raid0 swap partition consisting of /dev/sd[bcd]1
/dev/md1: raid0 /opt partition consisting of /dev/sd[abcd]2
/dev/md2: raid5 root partition consisting of /dev/sd[abcd]3
My SATA controller is Silicon image sil1114 and I have compiled the relevant module _into_ the kernel (ie. not as a module). I have compiled raid0 and raid5 support _into_ the kernel. I have compiled reiserfs support _into_ the kernel.
GRUB loads properly. I can select the appropriate entry and boot. The kernel detects my SATA drives:
Code:
Vendor: ATA Model: WDC WD1200JD-00H Rev: 08.0
Type: Direct-Access
Vendor: ATA Model: WDC WD1200JD-00H Rev: 08.0
Type: Direct-Access
Vendor: ATA Model: WDC WD1200JD-00H Rev: 08.0
Type: Direct-Access
Vendor: ATA Model: WDC WD1200JD-00H Rev: 08.0
Type: Direct-Access
I'm not sure if it detects the RAID arrays:
Code:
md: Autodetecting RAID arrays
md: autorun...
md: ...autorun DONE
It then fails with
Code:
VFS: Cannot open root device "md2" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on unknown-block(0,0)
My append line is "root=/dev/md2". I have also tried "root=/dev/sda3" and "root=/dev/hda3"
Any suggestions? TIA