snapshot creation failure race "in use: not deactivating"
Bug #105936 reported by
Kees Cook
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lvm2 (Ubuntu) |
Confirmed
|
Low
|
Unassigned | ||
Gutsy |
Won't Fix
|
Low
|
Scott James Remnant (Canonical) |
Bug Description
Binary package hint: lvm2
This is the same as bug 84672, but happens much more rarely since the prior bug was fixed:
LV systemvg/
Couldn't deactivate new snapshot.
I've tried to reproduce the issue, but it is proving difficult. It happens randomly, and doesn't seem to be related to IO load. I will attach a test script I have been using to spark the problem. While I have had it happen, it's not clear how to repeat it. Try with differing LV sizes...
Changed in lvm2: | |
assignee: | nobody → keybuk |
status: | Needs Info → Confirmed |
Changed in lvm2 (Ubuntu): | |
assignee: | Scott James Remnant (scott) → nobody |
To post a comment you must log in.
Here is an example of the attached test script hitting the bug:
# ./snapshot- collision. sh systemvg 4 1 4G 2G
Attempting to empty disk caches ...
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 8.92084 seconds, 120 MB/s
Creating test LVs ...
Logical volume "poc1" created
Logical volume "poc2" created
Logical volume "poc3" created
Logical volume "poc4" created
Creating snapshots ...
LV systemvg/poc2-1 in use: not deactivating
Couldn't deactivate new snapshot.
LV systemvg/poc3-1 in use: not deactivating
Couldn't deactivate new snapshot.
Logical volume "poc1-1" created
LV systemvg/poc4-1 in use: not deactivating
Couldn't deactivate new snapshot.
Done
Deleting snapshots ...
umount: /mnt/poc3-1: not mounted
umount: /mnt/poc2-1: not mounted
umount: /mnt/poc4-1: not mounted
Logical volume "poc1-1" successfully removed
Deleteing test LVs ...
Logical volume "poc1" successfully removed
Logical volume "poc2" successfully removed
Logical volume "poc3" successfully removed
Logical volume "poc4" successfully removed