Linux LVM users
 help / color / mirror / Atom feed
From: "Martin Mosny, PosTel a.s." <mmosny@postel.sk>
To: Jorge Melhado <linux-lvm@sistina.com>
Subject: Re[2]: [linux-lvm] kernel panic - converting root fs to lvm
Date: Fri Aug  9 08:19:01 2002	[thread overview]
Message-ID: <135106662292.20020809152009@postel.sk> (raw)
In-Reply-To: <OE183IR6t6c6oghBePr00001338@hotmail.com>

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

  reply	other threads:[~2002-08-09  8:19 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-07  9:27 [linux-lvm] kernel panic - converting root fs to lvm Jorge Melhado
2002-08-08 12:29 ` Luca Berra
2002-08-08 13:36   ` Jorge Melhado
2002-08-09  1:12     ` Luca Berra
2002-08-09  7:51       ` Jorge Melhado
2002-08-09  8:19         ` Martin Mosny, PosTel a.s. [this message]
2002-08-09 10:00         ` Luca Berra
2002-08-09 13:08           ` Jorge Melhado
2002-08-09 13:58             ` Luca Berra
2002-08-09 14:34               ` Jorge Melhado

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=135106662292.20020809152009@postel.sk \
    --to=mmosny@postel.sk \
    --cc=linux-lvm@sistina.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox