[Bug 581590] New: lvm2 lvremove on snapshots works only sometimes
http://bugzilla.novell.com/show_bug.cgi?id=581590 http://bugzilla.novell.com/show_bug.cgi?id=581590#c0 Summary: lvm2 lvremove on snapshots works only sometimes Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: x86-64 OS/Version: openSUSE 11.2 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: gleixner@bib-bvb.de QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20091222 SUSE/3.5.7-1.1.1 Firefox/3.5.7 while trying to remove a lvm2 snapshot it works sometimes, and sometimes not. Probably related to bug #556177 Reproducible: Sometimes Steps to Reproduce: 1. create lvcreate -s -L 5g -n test-snap /dev/vg_system/testvol (shows actually bug #556177 ) 2. check lvs |grep test-snap test-snap vg_system swi-a- 5.00G encrypted 0.00 lvdisplay /dev/vg_system/test-snap --- Logical volume --- LV Name /dev/vg_system/test-snap VG Name vg_system LV UUID 7Mk7e9-Qifn-WBS0-jA0G-z8AF-0H6g-gyUXdS LV Write Access read/write LV snapshot status active destination for /dev/vg_system/encrypted LV Status available # open 0 LV Size 32.00 GB Current LE 8192 COW-table size 5.00 GB COW-table LE 1280 Allocated to snapshot 0.00% Snapshot chunk size 4.00 KB Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:25 3. try to remove willie:~ # lvremove /dev/vg_system/test-snap Can't remove open logical volume "test-snap" willie:~ # lvremove /dev/vg_system/test-snap Can't remove open logical volume "test-snap" willie:~ # lvremove /dev/vg_system/test-snap Can't remove open logical volume "test-snap" willie:~ # lvremove /dev/vg_system/test-snap Can't remove open logical volume "test-snap" willie:~ # lvremove /dev/vg_system/test-snap Can't remove open logical volume "test-snap" willie:~ # lvremove /dev/vg_system/test-snap Can't remove open logical volume "test-snap" willie:~ # lvremove /dev/vg_system/test-snap Can't remove open logical volume "test-snap" willie:~ # lvremove /dev/vg_system/test-snap Can't remove open logical volume "test-snap" willie:~ # lvremove /dev/vg_system/test-snap Do you really want to remove active logical volume "test-snap"? [y/n]: y Logical volume "test-snap" successfully removed -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=581590
http://bugzilla.novell.com/show_bug.cgi?id=581590#c
yang xiaoyu
https://bugzilla.novell.com/show_bug.cgi?id=581590
https://bugzilla.novell.com/show_bug.cgi?id=581590#c1
Stefan Kuehne
https://bugzilla.novell.com/show_bug.cgi?id=581590
https://bugzilla.novell.com/show_bug.cgi?id=581590#c2
Xinwei Hu
Hi,
same behaviour on OpenSUSE 11.3. (We didn't use 11.2. The error didn't occur in 11.1) We use snapshots to backup Xen-DomU's, so a patch would be desirable.
Hi, I tried once to reproduce this on my machine, but failed. Could you provide me a step-by-step instruction on how to reproduce this ? Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=581590
https://bugzilla.novell.com/show_bug.cgi?id=581590#c3
--- Comment #3 from Stefan Kuehne
https://bugzilla.novell.com/show_bug.cgi?id=581590
https://bugzilla.novell.com/show_bug.cgi?id=581590#c4
Stefan Kuehne
https://bugzilla.novell.com/show_bug.cgi?id=581590
https://bugzilla.novell.com/show_bug.cgi?id=581590#c5
Xinwei Hu
It depends from the server. I can reproduce the error only on one of two servers.
Redhat has the same problem: https://bugzilla.redhat.com/show_bug.cgi?id=577798
When i stop boot.udev the problem doesn't occur.
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=581590
https://bugzilla.novell.com/show_bug.cgi?id=581590#c6
Stefan Kuehne
https://bugzilla.novell.com/show_bug.cgi?id=581590
https://bugzilla.novell.com/show_bug.cgi?id=581590#c7
--- Comment #7 from Xinwei Hu
Hi Wei Hu,
i found the file /lib/udev/rules.d/80-udisks.rules. If i move it away and restart /etc/init.d/boot.udev , the error occurs anyway.
Can you move the 80-udisks.rules to where it was, and comment out following line """ KERNEL=="dm-*", OPTIONS+="watch" """ I see someone reports that worked for them.
If i move some other rules (1*) away, then lvcreate hangs.
10-dm.rules 11-dm-lvm.rules 13-dm-disk.rules
These 3 files are critical for lvm2 to working properly on 11.3
You should not remove any of them.
Thanks
--- Comment #8 from Xinwei Hu
Hi Wei Hu,
i found the file /lib/udev/rules.d/80-udisks.rules. If i move it away and restart /etc/init.d/boot.udev , the error occurs anyway.
Can you move the 80-udisks.rules to where it was, and comment out following line """ KERNEL=="dm-*", OPTIONS+="watch" """ I see someone reports that worked for them.
If i move some other rules (1*) away, then lvcreate hangs.
10-dm.rules 11-dm-lvm.rules 13-dm-disk.rules These 3 files are critical for lvm2 to working properly on 11.3 You should not remove any of them. Thanks -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=581590
https://bugzilla.novell.com/show_bug.cgi?id=581590#c7
--- Comment #7 from Xinwei Hu
Hi Wei Hu,
i found the file /lib/udev/rules.d/80-udisks.rules. If i move it away and restart /etc/init.d/boot.udev , the error occurs anyway.
Can you move the 80-udisks.rules to where it was, and comment out following line """ KERNEL=="dm-*", OPTIONS+="watch" """ I see someone reports that worked for them.
If i move some other rules (1*) away, then lvcreate hangs.
10-dm.rules 11-dm-lvm.rules 13-dm-disk.rules
These 3 files are critical for lvm2 to working properly on 11.3
You should not remove any of them.
Thanks
--- Comment #8 from Xinwei Hu
Hi Wei Hu,
i found the file /lib/udev/rules.d/80-udisks.rules. If i move it away and restart /etc/init.d/boot.udev , the error occurs anyway.
Can you move the 80-udisks.rules to where it was, and comment out following line """ KERNEL=="dm-*", OPTIONS+="watch" """ I see someone reports that worked for them.
If i move some other rules (1*) away, then lvcreate hangs.
10-dm.rules 11-dm-lvm.rules 13-dm-disk.rules These 3 files are critical for lvm2 to working properly on 11.3 You should not remove any of them. Thanks -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=581590
https://bugzilla.novell.com/show_bug.cgi?id=581590#c9
--- Comment #9 from Stefan Kuehne
https://bugzilla.novell.com/show_bug.cgi?id=581590
https://bugzilla.novell.com/show_bug.cgi?id=581590#c10
--- Comment #10 from Xinwei Hu
No change in behaviour.
So, by running """ grep -r watch /etc/udev/rules.d/ /lib/udev/rules.d/ """ Do you find any other rules watching on device-mapper devices ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=581590
https://bugzilla.novell.com/show_bug.cgi?id=581590#c11
--- Comment #11 from Stefan Kuehne
https://bugzilla.novell.com/show_bug.cgi?id=581590
https://bugzilla.novell.com/show_bug.cgi?id=581590#c12
--- Comment #12 from Stefan Kuehne
https://bugzilla.novell.com/show_bug.cgi?id=581590
https://bugzilla.novell.com/show_bug.cgi?id=581590#c13
Xinwei Hu
if i comment out the lines in 80-udisks.rules and 13-dm-disk.rules, then the error doesn't occur. :-)
Is this a possible workaround?
Good to know ;) Yes, I think this can be a workaround. It's always a problem for device mapper to interact with udev watch. We are going to follow upstream to resolve this issue. Thanks for testing this. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com