lvremove fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lvm2 (Debian) |
Fix Released
|
Unknown
|
|||
lvm2 (Fedora) |
Fix Released
|
High
|
|||
lvm2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: lvm2
Create 2 logical volumes on the same volume group.
On each of these logical volumes, create one snapshot each.
Now attempt to remove them all using something like "lvremove -f vg".
I expect them all to be removed. What I see instead is:
(v4c-dev)
Logical volume "ss-test.0" successfully removed
Logical volume "lv-test.0" successfully removed
Logical volume "ss-test.1" successfully removed
Logical volume "lv-test.1" successfully removed
Logical volume "ss-test.2" successfully removed
LV v4c/lv-test.2 in use: not deactivating
Unable to deactivate logical volume "lv-test.2"
(v4c-dev)
lv-test.2
(v4c-dev)
Logical volume "lv-test.2" successfully removed
Note that there are no dependents of lv-test.2 at that time, that the other 2 logical volumes with snapshots were successfully removed, and that a successive lvremove does indeed remove the remaining logical volume.
(v4c-dev)
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu lucid (development branch)
Release: 10.04
Codename: lucid
(v4c-dev)
lvm2:
Installed: 2.02.54-1ubuntu3
Candidate: 2.02.54-1ubuntu3
Version table:
*** 2.02.54-1ubuntu3 0
500 http://
500 http://
100 /var/lib/
(v4c-dev)
ii lvm2 2.02.54-1ubuntu3 The Linux Logical Volume Manager
ProblemType: Bug
Architecture: amd64
Date: Sat Mar 6 13:26:10 2010
DistroRelease: Ubuntu 10.04
Package: lvm2 2.02.54-1ubuntu3
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: lvm2
Uname: Linux 2.6.32-15-server x86_64
no longer affects: | lvm2 (Fedora) |
Changed in lvm2 (Debian): | |
importance: | Undecided → Unknown |
status: | New → Unknown |
Changed in lvm2 (Debian): | |
status: | Unknown → New |
Changed in lvm2 (Debian): | |
status: | New → Fix Released |
Changed in lvm2 (Fedora): | |
importance: | Unknown → High |
status: | Unknown → Fix Released |
Looks like a 'famous' udev issue problem - currently it's still being resolved. There is no clear way, how to prevent 'random' device open from udev rules. 'watch' rule is usually the main source of troubles.
udev rules needs to be changed...