| Summary: | Support lvconvert --splitsnapshot to split snapshot data and metadata out into a separate LV where it can be wiped before removing it | |||
|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Eric Harney <eharney> | |
| Component: | lvm2 | Assignee: | Alasdair Kergon <agk> | |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | rawhide | CC: | agk, bmarzins, bmr, dwysocha, heinzm, jonathan, lvm-team, msnitzer, prajnoha, prockai, zkabelac | |
| Target Milestone: | --- | Keywords: | FutureFeature | |
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | lvm2-2.02.105-1.fc21 | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1056454 (view as bug list) | Environment: | ||
| Last Closed: | 2014-01-21 11:06:46 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
|
Description
Eric Harney
2013-09-09 23:43:29 UTC
I am experimenting with option 2, to offer an inverse of lvconvert -s. # lvs LV VG Attr LSize Origin Snap% Move Log Copy% Convert lvol0 vg1 owi--- 12.00m lvol1 vg1 swi--- 12.00m lvol0 # lvconvert --splitsnapshot vg1/lvol1 Logical Volume vg1/lvol1 split from its origin. # lvs LV VG Attr LSize Origin Snap% Move Log Copy% Convert lvol0 vg1 -wi--- 12.00m lvol1 vg1 -wi--- 12.00m The snapshot may or may not be active when the command is run. The origin may have other snapshots too which are left untouched. After separation, provided no data got changed, the snapshot could be reinstated with lvconvert -s -Zn vg1/lvol0 vg1/lvol1. At this stage I am only supporting the straightforward case of an original lvm2 snapshot of an origin LV without any thin volumes, mirrors, raid, pvmove, failed merging snapshots etc. involved. If need be, we can consider support for other combinations in subsequent releases (not on this bugzilla). https://git.fedorahosted.org/cgit/lvm2.git/patch/?id=7b65363bf781cd58d45e2d9f12fdfed59b9dee55 Will be included in 2.02.105. |