[Bug 789930] Re: [natty] boot hangs / udev vgchange deadlock in nested vgs?

Wessel Dankers wsl-launchpad at fruit.je
Thu Oct 20 20:16:08 UTC 2011


I think this happens because the lvm2 commands are called from inside
udev, while lvm itself also waits for udev to complete. This creates an
obvious deadlock.

/lib/udev/rules.d/85-lvm2.rules should be changed to read:

SUBSYSTEM=="block", ACTION=="add|change", ENV{ID_FS_TYPE}=="lvm*|LVM*", \
	RUN+="watershed sh -c '/sbin/lvm vgscan --noudevsync; /sbin/lvm vgchange --noudevsync -a y'"

cheers

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to udev in Ubuntu.
https://bugs.launchpad.net/bugs/789930

Title:
  [natty] boot hangs / udev vgchange deadlock in nested vgs?

Status in “udev” package in Ubuntu:
  Confirmed

Bug description:
  Binary package hint: udev

  After upgrading a server system from lucid to natty the system is not booting any more.
  The boot stalls before mounting the root filesystem.

  After a while the following messages appear:

  udevd[138]: worker [168] exit

  udevd[138]: worker [168] unexpectedly returned with status 0x0100

  udevd[138]: worker [168] failed while handling
  '/devices/pci0000:00/0000:00:03.0/0000:03:00.0/host0/target0:2:0/0:2:0:0/block/sda/sda1'

  udevd[138]: seq 1664 done with -32

  udevd[138]: worker [168] cleaned up

  udevd[138]: worker [167] exit

  udevd[138]: worker [167] unexpectedly returned with status 0x0100

  udevd[138]: worker [167] failed while handling
  '/devices/pci0000:00/0000:00:03.0/0000:03:00.0/host0/target0:2:1/0:2:1:0/block/sdb/sdb1'

  udevd[138]: seq 1661 done with -32

  udevd[138]: worker [167] cleaned up

  udevd[138]: worker [173] exit

  udevd[138]: worker [173] unexpectedly returned with status 0x0100

  udevd[138]: worker [173] failed while handling
  '/devices/virtual/block/dm-5'

  udevd[138]: seq 1770 done with -32

  udevd[138]: worker [173] cleaned up

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/udev/+bug/789930/+subscriptions




More information about the foundations-bugs mailing list