[Bug 906358] Re: udev and lvm2 hang at boot

Michael Kofler 906358 at bugs.launchpad.net
Wed Jan 18 16:24:00 UTC 2012

Same problem: First a U11.10 installation into a 'normal' partition, all

Later I set up a Logical Volume (actually using CentOS, which is also
installed on the machine). I installed lvm2 in Ubuntu and added the path
to the LV in /etc/fstab. The Logical Volume is available after boot, no
error messages, but a 60 sec boot lag, which is also visible in dmesg:

[    1.607767] scsi6 : pata_marvell
[    1.607831] scsi7 : pata_marvell
[    1.607859] ata7: PATA max UDMA/100 cmd 0xc040 ctl 0xc030 bmdma 0xc000 irq 19
[    1.607861] ata8: PATA max UDMA/133 cmd 0xc020 ctl 0xc010 bmdma 0xc008 irq 19
[    1.636055] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
[    1.707674] usb 2-1: new high speed USB device number 2 using ehci_hcd
[    1.811657] firewire_core: created device fw0: GUID 001e8c0000507f90, S400
[    1.839547] Refined TSC clocksource calibration: 3311.144 MHz.
[    1.839553] Switching to clocksource tsc
[    1.852211] hub 2-1:1.0: USB hub found
[    1.852422] hub 2-1:1.0: 8 ports detected
[    2.123415] usb 2-1.3: new low speed USB device number 3 using ehci_hcd
[    2.291274] usb 2-1.4: new low speed USB device number 4 using ehci_hcd
[    2.475120] usb 2-1.5: new high speed USB device number 5 using ehci_hcd
[    2.576201] hub 2-1.5:1.0: USB hub found
[    2.576284] hub 2-1.5:1.0: 3 ports detected
[    2.846809] usb 2-1.5.2: new low speed USB device number 6 using ehci_hcd
[   62.062792] udevd[333]: starting version 173
[   62.084227] lp: driver loaded but no devices found
[   62.085550] coretemp coretemp.0: TjMax is 98 C.
[   62.085556] coretemp coretemp.0: TjMax is 98 C.
[   62.085561] coretemp coretemp.0: TjMax is 98 C.
[   62.085567] coretemp coretemp.0: TjMax is 98 C.
[   62.167185] wmi: Mapper loaded

My computer has a really fast SSD, so it is not a slow external (net)
disk which causes the delay.

You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to udev in Ubuntu.

  udev and lvm2 hang at boot

Status in “udev” package in Ubuntu:

Bug description:
  I'm experiencing a really long wait when booting freshly installed
  xubuntu 11.10 with only updates and mdadm + lvm2 installed. I have
  managed to narrow it down somewhat but still looking for a fix.

  After disabling splash and quiet from grub I noticed it's waiting at /scripts/init-bottom/udev in initrd and continues after 61 seconds.
  Not surprisingly i found a "udevadm control --timeout 61 --exit" line in there. Well, why does it fail so badly it waits for timeout before exiting?

  After quite a bit of googling I found this:
  Ari Savolainen writes:
  An init script (/scripts/init-bottom/udev in initrd) issues command
  "udevadm control --timeouta --exit".
  At the same time udevd is executing "/sbin/lvm vgchange -a y" (from
  /lib/udev/rules.d/85-lvm2.rules) that calls ioctl to resume a logical
  volume. After that lvm gets stuck forever. Booting continues after the
  61 second timeout.

  Milan Broz writes:
  If you call vgchange or even vgscan from udev rule, it is completely wrong.
  This is not lvm upstream udev rule btw.

  This makes me slightly worried, does this cause any other problems
  than a annoyingly slow boot? Is there any way to fix this? I this a
  known issue?

To manage notifications about this bug go to:

More information about the foundations-bugs mailing list