Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
Add support for merging a snapshot into it's thinly provisioned origin volume.
Will serve as a fundamental command used during system rollback (e.g. after a failed or undesirable upgrade).
--- Additional comment from Zdenek Kabelac on 2013-12-05 14:45:27 CET ---
Upstream support has been commited - starting with:
https://www.redhat.com/archives/lvm-devel/2013-December/msg00017.html
Usage:
lvconvert --merge vg/thinsnap
This will merge thinsnap into its origin device - effectively thinsnap replaces origin and origin is deleted. This works only in the case both volumes could be deactivated. If they are i.e. mounted, merge is deferred to the next activation of merged (origin) LV.
While vg/thinsnap is 'merged' and deferred it's not longer accessible for lv commands - so it cannot be deactivated (only volume for deactivation is origin), but its still visible via 'lvs -a' as and invisible volume.
For some use-cases see:
https://www.redhat.com/archives/lvm-devel/2013-December/msg00026.html
--- Additional comment from Corey Marthaler on 2014-01-10 21:17:59 CET ---
I think we need a rhel7 version of this bugzilla created and added to the lvm errata (RHBA-2013:15731-01) to track this feature.
(In reply to Corey Marthaler from comment #2)
> So only *one* thin snap is ever allowed to be merged back since the origin
> is deleted one a merge happens? Do the other snaps just become regular thin
> volumes once another snap is merged?
>
Yes - once the origin is deleted, all snapshots are detached and they become regular thin volumes. There is some plan to support more advanced history, but it's not yet even designed.
> # Attempt to merge thin snaps
> [root@host-050 ~]# lvconvert --merge snapper_thinp/merge4
> [root@host-050 ~]# lvconvert --merge snapper_thinp/merge3
> "merge3" is not a mergeable logical volume.
> Unable to merge LV "merge3" into its origin.
Ok, since merge3 origin has been already deleted.
This request was resolved in Red Hat Enterprise Linux 7.0.
Contact your manager or support representative in case you have further questions about the request.