Bug#397509: lvm2 doesn't find the volume group at boot time
Tino Keitel
tino.keitel at web.de
Tue Nov 7 21:53:28 CET 2006
Package: lvm2
Version: 2.02.06-3
Severity: normal
Hi,
my laptop reported unavailable file systems during boot and started a
maintainance shell.
I saw that the file systems can not be mounted because there are no
/dev/<vg>/<lv> symlinks that I use in the fstab. However, the devices in
/dev/mapper are present. I suppose that's because vgchange is used in the
initrd.
If I type "/etc/init.d/lvm start" in the maintainance shell, the VG will be
found and the /dev/<vg> directory will be created, with all the LV symlinks
in it. I now changed all fstab entries to use /dev/mapper/<vg>-<lv> and my
system boots again.
After boot, I did this:
$ ls /dev/t23 ; ls /dev/mapper/t23-usr
ls: /dev/t23: No such file or directory
/dev/mapper/t23-usr
$ /etc/init.d/lvm start
Setting up LVM Volume Groups...
Reading all physical volumes. This may take a while...
Found volume group "t23" using metadata type lvm2
5 logical volume(s) in volume group "t23" now active
Now, /dev/t23 exists.
I can see the output of the lvm initscript before the system failed to boot,
so the initscript is run and the VG should be found.
This is a freshly installed Etch system (2006-11-04), with no lvm2 or udev
upgrades since then.
I should mention that the VG resides on a dm-crypt device that is
initialized in the initrd.
Regards,
Tino
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18.2
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Versions of packages lvm2 depends on:
ii debconf [debconf-2.0] 1.5.8 Debian configuration management sy
ii libc6 2.3.6.ds1-7 GNU C Library: Shared libraries
ii libdevmapper1.02 2:1.02.08-1 The Linux Kernel Device Mapper use
ii libncurses5 5.5-5 Shared libraries for terminal hand
ii libreadline5 5.2-1 GNU readline and history libraries
ii libselinux1 1.32-2 SELinux shared libraries
ii libsepol1 1.14-1 Security Enhanced Linux policy lib
ii lvm-common 1.5.20 The Logical Volume Manager for Lin
lvm2 recommends no packages.
-- debconf information:
lvm2/snapshots:
More information about the pkg-lvm-maintainers
mailing list