Bug 243790
| Summary: | Cannot delete LVM snapshot | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Luc <luc.loiseau> | ||||
| Component: | system-config-lvm | Assignee: | Marek Grac <mgrac> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 10 | CC: | agk, fpiat, poelstra, prockai, triage | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | i386 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | 1.1.9-1.fc10 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2009-08-27 02:13:20 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Luc
2007-06-11 21:56:37 UTC
This message is a reminder that Fedora 7 is nearing the end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 7. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '7'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 7's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 7 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug. If you are unable to change the version, please add a comment here and someone will do it for you. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. If possible, it is recommended that you try the newest available Fedora distribution to see if your bug still exists. Please read the Release Notes for the newest Fedora distribution to make sure it will meet your needs: http://docs.fedoraproject.org/release-notes/ The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping Still exists in rawhide. One possiblity. Don't try the deactivate step, but use a "force" option on lvremove. This option will skip confirmation checks if the LV is active, but before removal will deactivate the LV. This should be safe as long as the VG is not clustered. In the clustered case, the "force" option would also skip a test for activation on other cluster nodes, which is perhaps not desired here. I believe this is the code:
<snip>
def remove_lv(self, lvpath):
self.deactivate_lv(lvpath) <----
try:
args = list()
args.append(LVREMOVE_BIN_PATH)
args.append("--force")
args.append(lvpath.strip())
cmdstr = ' '.join(args)
out,err,res =
execWithCaptureErrorStatusProgress(LVREMOVE_BIN_PATH,args,
_("Removing
Logical Volume"))
</snip>
Other bzs covering same/similar issue:
https://bugzilla.redhat.com/show_bug.cgi?id=248164
https://bugzilla.redhat.com/show_bug.cgi?id=250439
This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle. Changing version to '10'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping The bug applies to fedora 10: Error message: lvchange command failed. Command attempted: "/sbin/lvchange -an /dev/vg1/lv1-snapshot" - System Error Message: Can't change snapshot logical volume "testA1" Step to reproduce the error (from system-config-lvm): * Create a logical volume (don't even mount it). * Create a snapshot of that LV. * Select the snapshot * Click on "Remove logical volume" The problem also occurs when I run the command line manually /sbin/lvchange -an /dev/vg1/lv1-snapshot Workaround: Use the command "lvremove VolumeGroupName/Snapshotname" from the command-line. Created attachment 358065 [details]
Proposed patch
Snapshot cannot be deactivated before its origin is deactivated. Workaround proposed by Frank is correct solution.
system-config-lvm-1.1.8-1.fc10 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/system-config-lvm-1.1.8-1.fc10 system-config-lvm-1.1.9-1.fc10 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/system-config-lvm-1.1.9-1.fc10 system-config-lvm-1.1.9-1.fc10 has been pushed to the Fedora 10 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update system-config-lvm'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-8861 system-config-lvm-1.1.9-1.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report. |