lvm initialization hangs during boot or when running /etc/init.d/lvm start

Bug #102232 reported by Pierfrancesco Caci
2
Affects Status Importance Assigned to Milestone
lvm2 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: lvm-common

Updated system yesterday (2007.04.02), relevant updated packages were lvm-common, mdadm and udev.
While the update finally seems to have fixed a long standing race condition in mdadm preventing boot,
it seems to have broken lvm. The system will freeze at lvm start (right after turning up the parport).
If I interrupt the process (alt-sysrq-e) I can do a mount -a and it will find all the volumes correctly. From that point on,
I can resume the boot process by forcing a telinit 1; telinit 2

Also, running /etc/init.d/lvm start seems to hang at the same point.

ii lvm-common 1.5.20ubuntu12 The Logical Volume Manager for Linux (common
ii lvm2 2.02.06-2ubuntu9 The Linux Logical Volume Manager
ii mdadm 2.5.6-7ubuntu5 tool to administer Linux MD arrays (software
ii udev 108-0ubuntu1 rule-based device node and kernel event mana

Linux penny 2.6.20-13-generic #2 SMP Sat Mar 24 23:12:02 UTC 2007 x86_64 GNU/Linux

Related branches

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Please provide the output of the following:

  dpkg-query -W devmapper dmsetup libdevmapper1.02 udev volumeid libvolume-id0 lvm2 lvm-common mdadm

Also could you try booting your system with init=/bin/bash and then remove the symlink for this init script, followed by exec /sbin/init

See if your system boots fine then.

If it does, boot into single-user mode and then run the script with:

  sh -x /etc/init.d/lvm2 >/dev/lvm.log 2>&1

and attach the output to this bug

Changed in lvm-common:
status: Unconfirmed → Needs Info
Revision history for this message
Pierfrancesco Caci (pf-caci) wrote :

$ sudo dpkg-query -W devmapper dmsetup libdevmapper1.02 udev volumeid libvolume-id0 lvm2 lvm-common mdadm
No packages found matching devmapper.
dmsetup 2:1.02.08-1ubuntu6
libdevmapper1.02 2:1.02.08-1ubuntu6
udev 108-0ubuntu1
volumeid 108-0ubuntu1
libvolume-id0 108-0ubuntu1
lvm2 2.02.06-2ubuntu9
lvm-common 1.5.20ubuntu12
mdadm 2.5.6-7ubuntu5

the rest of the info you requested later when I get back home :)

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Can you confirm whether or not you have evms installed?

Revision history for this message
Pierfrancesco Caci (pf-caci) wrote :

the following evms packages are installed

ii evms 2.5.5-18ubuntu2 Enterprise Volume Management System (core)
ii evms-cli 2.5.5-18ubuntu2 Enterprise Volume Management System (CLI)
ii evms-ncurses 2.5.5-18ubuntu2 Enterprise Volume Management System (ncurses
ii libevms-2.5 2.5.5-18ubuntu2 Enterprise Volume Management System (library

I've never used it actually, so if this is the culprit, I can as well get rid of it.

Revision history for this message
Pierfrancesco Caci (pf-caci) wrote :

so, booting with init=/bin/bash, making chmod -x /etc/init.d/lvm and finally exec /sbin/init
I can boot and this is the output of the lvm script as you requested:

 $ cat /root/lvm.log
+ modprobe lvm
+ modprobe lvm-mod
+ modprobe dm-mod
+ set -e
+ . /lib/lsb/init-functions
+ FANCYTTY=
+ [ -e /etc/lsb-base-logging.sh ]
+ . /etc/lsb-base-logging.sh
+ . /etc/default/rcS
+ TMPTIME=0
+ SULOGIN=no
+ DELAYLOGIN=no
+ UTC=yes
+ VERBOSE=no
+ EDITMOTD=yes
+ FSCKFIX=no
+ test -x /sbin/lvmiopversion -a -x /sbin/vgscan -a -x /sbin/vgchange
+ test -f /etc/default/lvm-common
+ . /etc/default/lvm-common
/etc/init.d/lvm: 57: Syntax error: Bad substitution

as a side note, the evms scripts returns "failed" during the boot process.

Revision history for this message
Pierfrancesco Caci (pf-caci) wrote :

purging all evms packages seems to have cured the problem.
nice

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

This should be fixed in today's devmapper, udev and evms uploads

Changed in lvm2:
status: Needs Info → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.