* PROBLEM: lvm gets stuck during booting due to recent uevent change
@ 2011-10-27 21:59 Ari Savolainen
2011-10-27 22:15 ` Milan Broz
0 siblings, 1 reply; 2+ messages in thread
From: Ari Savolainen @ 2011-10-27 21:59 UTC (permalink / raw)
To: Greg Kroah-Hartman, Milan Broz, linux-kernel
After commit ebf4127cd677 "kobj_uevent: Ignore if some listeners
cannot handle message" in the current development tree lvm gets stuck
during booting and never recovers.
The machine has Ubuntu 11.10. Here is what happens:
An init script (/scripts/init-bottom/udev in initrd) issues command
"udevadm control --timeout=61 --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.
Here is part of lvm backtrace from gdb (ioctl is called just before
dm_udev_wait from another function):
#0 0x00007f56d6d37797 in semop () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007f56d720a75c in dm_udev_wait (cookie=223208589) at libdm-common.c:1279
#2 0x0000000000476d5f in _tree_action (dm=0xaa0680,
lv=0xffffffffffffff69, action=ACTIVATE) at activate/dev_manager.c:1479
#3 0x0000000000477a4e in dev_manager_activate (dm=0xaa0680,
lv=0xa9caf0) at activate/dev_manager.c:1505
#4 0x000000000042ebcc in _lv_activate_lv (lv=0xa9caf0) at
activate/activate.c:570
...
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: PROBLEM: lvm gets stuck during booting due to recent uevent change
2011-10-27 21:59 PROBLEM: lvm gets stuck during booting due to recent uevent change Ari Savolainen
@ 2011-10-27 22:15 ` Milan Broz
0 siblings, 0 replies; 2+ messages in thread
From: Milan Broz @ 2011-10-27 22:15 UTC (permalink / raw)
To: Ari Savolainen; +Cc: Greg Kroah-Hartman, linux-kernel
On 10/27/2011 11:59 PM, Ari Savolainen wrote:
> 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.
If you call vgchange or even vgscan from udev rule, it is completely wrong.
This is not lvm upstream udev rule btw.
Milan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-10-27 22:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-27 21:59 PROBLEM: lvm gets stuck during booting due to recent uevent change Ari Savolainen
2011-10-27 22:15 ` Milan Broz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).