FS#20565 - [lvm2] [udisks] Cannnot remove lvm snapshot
Attached to Project:
Arch Linux
Opened by Feifei Jia (ffjia) - Monday, 23 August 2010, 07:54 GMT
Last edited by Ionut Biru (wonder) - Monday, 03 October 2011, 18:41 GMT
Opened by Feifei Jia (ffjia) - Monday, 23 August 2010, 07:54 GMT
Last edited by Ionut Biru (wonder) - Monday, 03 October 2011, 18:41 GMT
|
Details
============================================================
Description: Cannot remove a lvm snapshot after created $ sudo lvcreate -vs -L 2g -n snapshot /dev/arch/home $ sudo lvs LV VG Attr LSize Origin Snap% Move Log Copy% Convert home arch owi-ao 180.00g root arch -wi-ao 30.00g shoot arch sri-a- 2.00g home 14.43 swap arch -wi-ao 4.00g $ sudo lvremove /dev/arch/shoot Can't remove open logical volume "shoot" I have to reboot, and when the system starts, at the "Checking Filesystems" stage, it shows: /dev/mapper/arch-root is mounted WARNING!! The filesystem is mounted. If you continue you ***WILL*** cause ***SEVERE*** filesystem damage Do you really want to continue (y/n)? Of course I choose NO And the / is mounted with barrier=1,data=ordered, as below: /dev/disk/by-uuid/3e3772ad-c207-470d-a64e-fa054bd8f348 on / type ext4 (rw,relatime,barrier=1,data=ordered) The normal mount option is: /dev/disk/by-uuid/3e3772ad-c207-470d-a64e-fa054bd8f348 on / type ext4 (rw,relatime,commit=0)) And then I can login and delete the lvm snapshot, as usual. If I login but do not remove the lvm snapshot, next time system boot, it shows the WARNING again.... ============================================================ Additional info: x86_64 kernel26 2.6.35.3-1 lvm2 2.02.70-1 cryptsetup 1.1.3-1 I use lvm on a luks encrypted partition, kernel26 ver 2.6.35.2 has this problem, too. ============================================================ Steps to reproduce: Run the lvcreate && lvremove commands, I can reproduce this everytime. |
This task depends upon
The error on reboot looks like an entirely different problem, not related to LVM.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=549691
https://bugzilla.redhat.com/show_bug.cgi?id=577798#c5
It seemed the bug was caused by udisks package. I use the workaround mentioned
above, modified 80-udisks.rules, then everythings fine.
My udisks version is 1.0.1-5. On another my arch desktop, version 1.0.1-2
works fine with lvm, the udev rules file are same between the two versions.
http://repos.archlinux.org/wsvn/packages/udisks/trunk/lvm2_api_support.patch
http://cgit.freedesktop.org/udisks/commit/?id=2b2fcf80841972b70ad695a5a1ed74487d4fd37a
you could try rebuilding udisks using abs without that patch
http://repos.archlinux.org/wsvn/packages/udisks/trunk/PKGBUILD?rev=81353&peg=81353
Installed, but still cannot remove lvm snapshot....
kernel26 2.6.35.4-1
udev 162-1
lvm2 2.02.73-1
https://bugzilla.redhat.com/show_bug.cgi?id=577798#c12
This issue is not solved.
think.
lvm2 2.02.84-1
udisks 1.0.2-2
read the explanation here:
http://cgit.freedesktop.org/udisks/commit/?id=99de237eed6a026597e9b045527631c42ab86968
i'm going to close this bug as won't fix because there is nothing we can do here.