Mailinglist Archive: opensuse-bugs (5400 mails)

< Previous Next >
[Bug 287047] LVM volumes not created on first restart
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Sun, 24 Jun 2007 11:16:53 -0600 (MDT)
  • Message-id: <20070624171653.98348CC789@xxxxxxxxxxxxxxxxxxxxxx>
https://bugzilla.novell.com/show_bug.cgi?id=287047#c1





--- Comment #1 from George Iosif <giosif@xxxxxx>  2007-06-24 11:16:52 MST ---
Hi,

After further troubleshooting, I found two problems:
1) I believe that /config/lvm2.sh has two typos: the line that reads
[ "$vg_roots" ] || vg_roots=SOME_VALUE
should actually read
[ "$vg_root" ] || vg_root=SOME_VALUE

After correcting this file, the LVM volumes were created in /dev.

2) even after issue no. 1) was solved, openSUSE would still not boot normally -
the "waiting for /dev/root to become available" process would still time out
and you would still be presented with the shell prompt.
The source of this problem is that I am using LILO from a Slackware
installation to boot all the OS-es on my PC.
The idea is that my Slackware is creating the LVM devices in /dev with major
number 252, while the initrd in openSUSE is creating the LVM devices in /dev
with major number 253.
When running the "lilo" command in Slackware, LILO transforms the
"root=/dev/my_volume_group/my_openSUSE_root_volume" into a "root=hex_value"
form, the hex value representing the major and minor numbers of the
"my_openSUSE_root_volume" device put together (which is fc03 in my case).
When openSUSE is trying to boot, a script in the initrd (namely
/boot/170-storage.sh) parses the /proc/cmdline file and tries to use the
"root=hex_value" to determine the root partition and to create a /dev/root
symlink to it.
Of course that would never happen because it cannot find any devices with major
number 252.
I solved this problem by putting in /etc/lilo.conf in my Slackware installation
the following line (in the section for openSUSE)
root=0xfd03
instead of
root=/dev/my_volume_group/my_openSUSE_root_volume
then running the "lilo" command.

Cheers,
George Iosif


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
References