[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: booting from a raid1

From: Chris Weber
Subject: Re: booting from a raid1
Date: Fri, 8 Oct 2010 10:30:23 -0500

>> Now I can boot from /dev/sdd, but the kernel panics because it can't
>> mount the root filesystem (/dev/md0p2). Entries in /etc/fstab on md0p2
>> are correct. I take it the md-devices aren't up/accessible in time.
>> Any idea what's missing? Like there's no RAID support in grub?
>> _______________________________________________
>> Help-grub mailing list
>> address@hidden
> Have you made a new initrd that has md and/or raid support?  I ran
> into a similar problem when using grub2 to boot off of an LVM
> partition.  I had to add a couple modules to the initrd /lib and edit
> the init script to load them.

Here's a few more details...

I had to add dm-mod.ko to the initrd /lib dir.

For init, I added the following right before the call to 'mkrootdev':

echo "Loading dm-mod.ko module"
insmod /lib/dm-mod.ko

echo Scanning logical volumes
lvm vgscan --ignorelockingfailure
echo Activating logical volumes
lvm vgchange -ay --ignorelockingfailure vg_name

I'm guessing that you might need an extra module for raid support and
maybe some extra lines in init, but maybe this will help get you

reply via email to

[Prev in Thread] Current Thread [Next in Thread]