[opensuse] Changing the root partition to a different LVM volume
Hello, I am running OpenSUSE 10 with an LVM root partition named /dev/sys/ system. I want to change my root partition from the /dev/sys/system volume to /dev/sys/primary. The /dev/sys/primary partition is all setup and the required files exist on it. I have edited grub so the entry looks like the following: title SUSE LINUX 10.0 root (hd0,0) kernel /vmlinuz root=/dev/sys/primary selinux=0 splash=silent showopts initrd /initrd On rebooting I receive a kernel panic saying "could not find record for sys/primary in database". This is strange because the message just beforehand states that the volume group sys has been activated and the correct number of volumes (6) found. I am guessing it is an issue with the initrd file. I have rebuilt the initrd file using the command: mkinitrd -k vmlinuz-2.6.13-15.12-default -i initrd-2.6.13-15.12- default -d /dev/sys/primary The rebuild had no effect, the system will happily boot into /dev/sys/ system if asked to but will not recognize /dev/sys/primary. I'm sure that I'm missing out a step or mkinitrd switch, can anyone help? Regards, David --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, 2006-10-15 at 22:24 +1300, David Harrison wrote:
Hello, I am running OpenSUSE 10 with an LVM root partition named /dev/sys/ system. I want to change my root partition from the /dev/sys/system volume to /dev/sys/primary.
The /dev/sys/primary partition is all setup and the required files exist on it. I have edited grub so the entry looks like the following:
title SUSE LINUX 10.0 root (hd0,0) kernel /vmlinuz root=/dev/sys/primary selinux=0 splash=silent showopts initrd /initrd
On rebooting I receive a kernel panic saying "could not find record for sys/primary in database". This is strange because the message just beforehand states that the volume group sys has been activated and the correct number of volumes (6) found.
I am guessing it is an issue with the initrd file. I have rebuilt the initrd file using the command: mkinitrd -k vmlinuz-2.6.13-15.12-default -i initrd-2.6.13-15.12- default -d /dev/sys/primary
The rebuild had no effect, the system will happily boot into /dev/sys/ system if asked to but will not recognize /dev/sys/primary.
I'm sure that I'm missing out a step or mkinitrd switch, can anyone help?
This is just a long shot as I don't use LVM. Try using: chroot /dev/sys/primary before issuing the mkinitrd command. There may be other underlying files that have to be modified as well. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 16/10/2006, at 4:52 AM, Kenneth Schneider wrote:
On Sun, 2006-10-15 at 22:24 +1300, David Harrison wrote:
Hello, I am running OpenSUSE 10 with an LVM root partition named /dev/sys/ system. I want to change my root partition from the /dev/sys/ system volume to /dev/sys/primary.
The /dev/sys/primary partition is all setup and the required files exist on it. I have edited grub so the entry looks like the following:
title SUSE LINUX 10.0 root (hd0,0) kernel /vmlinuz root=/dev/sys/primary selinux=0 splash=silent showopts initrd /initrd
On rebooting I receive a kernel panic saying "could not find record for sys/primary in database".
I am guessing it is an issue with the initrd file. I have rebuilt the initrd file using the command: mkinitrd -k vmlinuz-2.6.13-15.12-default -i initrd-2.6.13-15.12- default -d /dev/sys/primary
The rebuild had no effect, the system will happily boot into /dev/ sys/ system if asked to but will not recognize /dev/sys/primary.
This is just a long shot as I don't use LVM. Try using:
chroot /dev/sys/primary
before issuing the mkinitrd command. There may be other underlying files that have to be modified as well.
I rebooted with a rescue CD, chroot'ed the /dev/sys/primary volume and ran the mkinitrd command again. On reboot the kernel paniced again returning "could not find record for sys/primary in database". The mkinitrd process must be referencing an old LVM configuration as sys/system was created when I first installed the OS whilst sys/ primary is new. As a workaround I could rename sys/primary to sys/system but I am worried that this may just confuse initrd even more and leave the system completely unbootable. Is anyone able to tell me whether renaming the lvm volumes will have a positive/negative effect in this scenario? David --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, 2006-10-15 at 22:24 +1300, David Harrison wrote:
Hello, I am running OpenSUSE 10 with an LVM root partition named /dev/sys/ system. I want to change my root partition from the /dev/sys/system volume to /dev/sys/primary.
The /dev/sys/primary partition is all setup and the required files exist on it. I have edited grub so the entry looks like the following:
title SUSE LINUX 10.0 root (hd0,0) kernel /vmlinuz root=/dev/sys/primary selinux=0 splash=silent showopts initrd /initrd
On rebooting I receive a kernel panic saying "could not find record for sys/primary in database".
I am guessing it is an issue with the initrd file. I have rebuilt the initrd file using the command: mkinitrd -k vmlinuz-2.6.13-15.12-default -i initrd-2.6.13-15.12- default -d /dev/sys/primary
The rebuild had no effect, the system will happily boot into /dev/sys/ system if asked to but will not recognize /dev/sys/primary.
I solved my problem and the answer was really dumb. The old /dev/sys/system was reiserfs and the new /dev/sys/primary ext3. I had forgotten to add ext3 to the list of kernel modules to include in the initrd image hence whilst the volume group was being activated successfully the partition could not be mounted as root. I added ext3, rebuilt initrd, rebooted and all worked fine. David --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
David Harrison
-
Kenneth Schneider