Bug#397509: lvm2 doesn't find the volume group at boot time

Tino Keitel tino.keitel at web.de
Tue Nov 7 23:53:31 CET 2006


Package: lvm2
Version: 2.02.06-3
Followup-For: Bug #397509

Hi,

I inserted some debug code into the start function of the lvm initscript:

                ls -l /dev/mapper
                /sbin/vgscan $IGNORELOCKINGFAILURES $MKNODES || true
                sleep 5
                ls -l /dev/mapper
                /sbin/vgchange -a y $IGNORELOCKINGFAILURES
                sleep 5
                ls -l /dev/mapper
                /sbin/vgscan $IGNORELOCKINGFAILURES $MKNODES || true
                /sbin/vgchange -a y $IGNORELOCKINGFAILURES

The first ls command only lists the control socket.

The second ls lists all LVs. However, since the vgscan found nothing,
vgchange won't see any VGs, so it does nothing.

The second invocations of vgscan and vgchange then do their work like
expected, the volume group is detected and activated.

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