[Bug 906358] Re: udev and lvm2 hang at boot
Christian Weiske
cweiske at cweiske.de
Wed Jan 18 07:55:29 UTC 2012
The machine I have problems with has this partition setup:
$ LC_ALL=C fdisk -l /dev/sda
Disk /dev/sda: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders, total 2930277168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000b8523
Device Boot Start End Blocks Id System
/dev/sda1 * 63 1048638 524288 83 Linux
/dev/sda3 126881370 2930272064 1401695347+ 5 Extended
/dev/sda5 126881433 246870854 59994711 83 Linux
/dev/sda6 246870918 254871224 4000153+ 82 Linux swap / Solaris
/dev/sda7 254871288 2930272064 1337700388+ 83 Linux
sda7 is the partition on which i have my lvm setup:
$ lvmdiskscan |grep LVM
/dev/sda7 [ 1,25 TiB] LVM physical volume
0 LVM physical volume whole disks
1 LVM physical volume
LVM setup:
$ lvm vgs
VG #PV #LV #SN Attr VSize VFree
Daten 1 2 0 wz--n- 1,25t 575,73g
$ lvm lvs
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
games Daten -wi-ao 400,00g
homes Daten -wi-ao 300,00g
Mounts:
/dev/mapper/Daten-homes on /home type ext4 (rw,commit=0)
/dev/mapper/Daten-games on /home/spiele type ext4 (rw,commit=0)
--
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/906358
Title:
udev and lvm2 hang at boot
Status in “udev” package in Ubuntu:
Incomplete
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:
http://us.generation-nt.com/answer/problem-lvm-gets-stuck-during-booting-due-recent-uevent-change-help-205241751.html
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:
https://bugs.launchpad.net/ubuntu/+source/udev/+bug/906358/+subscriptions
More information about the foundations-bugs
mailing list