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.
Bug 1189108 - LVM Cache: Ability to create thinsnap of cached external origin
Summary: LVM Cache: Ability to create thinsnap of cached external origin
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: lvm2
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Zdenek Kabelac
QA Contact: cluster-qe@redhat.com
Steven J. Levine
URL:
Whiteboard:
Depends On:
Blocks: 1385242 1471212
TreeView+ depends on / blocked
 
Reported: 2015-02-04 13:23 UTC by Jonathan Earl Brassow
Modified: 2021-09-03 12:50 UTC (History)
13 users (show)

Fixed In Version: lvm2-2.02.169-1.el7
Doc Type: Release Note
Doc Text:
Support for thin snapshots of cached logical volumes LVM in Red Hat Enterprise Linux 7.4 allows you to create thin snapshots of cached logical volumes. This feature was not available in earlier releases. These external origin cached logical volumes are converted to a read-only state and thus can be used by different thin pools.
Clone Of:
: 1471212 (view as bug list)
Environment:
Last Closed: 2017-08-01 21:47:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
test result (30.78 KB, text/plain)
2017-04-10 09:32 UTC, Roman Bednář
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 1428303 0 None None None Never
Red Hat Product Errata RHBA-2017:2222 0 normal SHIPPED_LIVE lvm2 bug fix and enhancement update 2017-08-01 18:42:41 UTC

Description Jonathan Earl Brassow 2015-02-04 13:23:57 UTC
Add ability to create thinsnap of cached external origin

Comment 10 Zdenek Kabelac 2016-12-19 15:44:35 UTC
Upstream patch (member of 2.02.169 release)

https://www.redhat.com/archives/lvm-devel/2016-December/msg00101.html

enabled support for using cache LV as external origin (together with surrounding patches to unable online caching & uncaching of existing external origin).

Also (as it's using very similar dm tree handling) we enabled usage for  'old' snapshot of cache LV.

Basically there is no extension to supported syntax, just accepts 'cache' type as accepted LV type for command.


lvconvert --thin vg/cacheLV --originname extorigname --thinpool vg/pool

- makes cacheLV -> cached external origin (read-only) and  thinLV available to the user for read/write


lvcreate -s  -L1 vg/cacheLV

- takes snapshot of cached LV which could be later dropped/merged


lvconvert -s vg/cacheLV  cowLV

- recombine i.e. split snapshot back together with cached origin.

Comment 13 Roman Bednář 2017-04-10 09:32:59 UTC
Created attachment 1270433 [details]
test result

Verified. It is now possible to use cacheLV as external origin for thin snapshot. 

Also added automated test coverage. External cache origin test will be now part of regression testing as well. Ext. cache variants also available for other scenarios which used non-cached ext. origin up until now.

Attaching test result logs for single node and cluster tests.
Unique test name for test execution via vedder added to QA whiteboard for reference.

3.10.0-640.el7.x86_64

lvm2-2.02.169-3.el7    BUILT: Wed Mar 29 16:17:46 CEST 2017
lvm2-libs-2.02.169-3.el7    BUILT: Wed Mar 29 16:17:46 CEST 2017
lvm2-cluster-2.02.169-3.el7    BUILT: Wed Mar 29 16:17:46 CEST 2017
device-mapper-1.02.138-3.el7    BUILT: Wed Mar 29 16:17:46 CEST 2017
device-mapper-libs-1.02.138-3.el7    BUILT: Wed Mar 29 16:17:46 CEST 2017
device-mapper-event-1.02.138-3.el7    BUILT: Wed Mar 29 16:17:46 CEST 2017
device-mapper-event-libs-1.02.138-3.el7    BUILT: Wed Mar 29 16:17:46 CEST 2017
device-mapper-persistent-data-0.7.0-0.1.rc6.el7    BUILT: Mon Mar 27 17:15:46 CEST 2017
cmirror-2.02.169-3.el7    BUILT: Wed Mar 29 16:17:46 CEST 2017

Comment 15 Steven J. Levine 2017-07-14 17:08:46 UTC
Adding summary for release note format, plus very slight edit of release note text.

Comment 16 errata-xmlrpc 2017-08-01 21:47:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:2222


Note You need to log in before you can comment on or make changes to this bug.