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

Re[2]: [linux-lvm] kernel panic - converting root fs to lvm



Hello Jorge,

check this out!

/etc/fstab:
something like this if you have ext3 or change to ext2.

/dev/lvm_disk/root      /                       ext3    defaults        1 1
/dev/hda1               /boot                   ext2    defaults        1 2

check  that  the  lvm  partition have devices in /dev/ == /dev/lvm_disk/root (like
your).


check the /etc/lilo.conf:

image=/boot/vmlinuz-2.4.18
        label=lvm-18
        read-only
        root=/dev/lvm_disk/root
        initrd=/boot/initrd-lvm-2.4.18.img.gz

check  that  linuxrc  in  the ramdisk initrd-lvm-xxxxx.img.gz contains
something like this:

echo "Loading jbd module"
insmod /lib/jbd.o
echo "Loading ext3 module"
insmod /lib/ext3.o
echo "Loading lvm-mod module"
insmod /lib/lvm-mod.o
echo "Mounting /proc filesystem"
mount -t proc /proc /proc
echo "Running vgscan"
vgscan
echo "Running vgchange -a y"
vgchange -a y
echo Creating root device
mkrootdev /dev/root
echo 0x0100 > /proc/sys/kernel/real-root-dev
echo Mounting root filesystem
mount --ro -t ext3 /dev/root /sysroot
umount /proc
pivot_root /sysroot /sysroot/initrd

You  need  to  have  equivalent  modules in the /lib of the initrd-lvm
disk.

and  dont  forget  check  dir  /initrd  in the /dev/lvm_disk/root root
partition!

have more fun! ;)

Best regards

Martin




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