FS#27975 - [lvm2] lvremove hangs
Attached to Project:
Arch Linux
Opened by Christian Hesse (eworm) - Tuesday, 17 January 2012, 14:47 GMT
Last edited by Tom Gundersen (tomegun) - Sunday, 29 January 2012, 11:55 GMT
Opened by Christian Hesse (eworm) - Tuesday, 17 January 2012, 14:47 GMT
Last edited by Tom Gundersen (tomegun) - Sunday, 29 January 2012, 11:55 GMT
|
Details
Description:
Additional info: * package version(s) * config and/or log files etc. Steps to reproduce: |
This task depends upon
My backup script creates read only lvm snapshots, then removes them after rsync. However lvremove hangs with the latest packages in testing. However the snapshot is already removed, so just killing it seems to be fine.
linux 3.2.1-1
lvm2 2.02.88-1
udev 177-1
Steps to reproduce:
lvcreate -L 10G -s -n testsnap /dev/vg0/YOUR_VOLUME
lvremove -vvv -f /dev/vg0/testsnap
You see that lvremove is waiting for a semaphore to decrease:
"Udev cookie 0xd4d99e1 (semid 229380) waiting for zero"
strace -p `pidof lvremove`:
Process 5846 attached - interrupt to quit
semop(229380, {{0, 0, 0}}, 1
The only way to let lvremove finish is to remove this semaphore:
ipcrm -s 229380
But this seems to be a really dirty hack and I think /dev/mapper is then not cleaned up as it should.
Kernel 3.2.1-1-ARCH on x86_64
udev 177-3 and 178-1
lvm2 2.02.88-1
It's definitely udev related.
This started to occur with the latest udev update (to version 178).
Kernel 3.2.1-1-ARCH on x86_64
udev 178-1
lvm2 2.02.88-1
I second that.
I need to use the "Magic-Sysrq-Key" to sync and then I have to hold the power button five seconds to hard-kill the power to "poweroff" my system effectively and "safely".
When I try to use AltGr+SysRq+O (after AltGr+SysRq+{R,E,I,S,U})" [1] to "SHUTDOWN SYSTEM IMMEDIATELY", I get a kernel panic. AltGr+SysRq+B does not work on my Thinkpad T400, so I use AltGr+SysRq+O instead.
[1] see https://en.wikipedia.org/wiki/Magic_SysRq_key#.E2.80.9CREISUB.E2.80.9D_.E2.80.93_safe_reboot
Kernel 3.2.1-2-ARCH on x86_64
udev 179-1
lvm2 2.02.88-1
I spoke with upstream who just released a fix. Please try udev-180 from testing and confirm if it works.