Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 501437

Summary: [RFE] Add support for exclusively activating snapshots of clustered logical volumes
Product: Red Hat Enterprise Linux 5 Reporter: Issue Tracker <tao>
Component: lvm2-clusterAssignee: Jonathan Earl Brassow <jbrassow>
Status: CLOSED ERRATA QA Contact: Cluster QE <mspqa-list>
Severity: low Docs Contact:
Priority: low    
Version: 5.3CC: agk, casmith, ccaulfie, cmarthal, coughlan, dwysocha, fnadge, heinzm, iannis, jbrassow, mbroz, prockai, tao
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: lvm2-2.02.84-1.el5 Doc Type: Enhancement
Doc Text:
This field is the basis of the errata or release note for this bug. It can also be used for change logs. The Technical Note template, known as CCFR, is as follows: Cause What actions or circumstances cause this bug to present. Consequence What happens when the bug presents. Fix What was done to fix the bug. Result What now happens when the actions or circumstances above occur. Note: this is not the same as the bug doesn’t present anymore.
Story Points: ---
Clone Of:
: 527186 (view as bug list) Environment:
Last Closed: 2011-07-21 06:57:46 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:
Bug Depends On: 527186    
Bug Blocks: 554476    

Description Issue Tracker 2009-05-19 06:01:55 UTC
Creating snapshots of logical volumes belonging to a clustered volume
group is not currently possible, which means there is no reliable way to
create a consistent backup of data on one of these logical volumes. 
Creation of snapshots based on clustered logical volumes that were
activated exclusively (lvchange -aey) should theoretically be possible
since only one node has access to that logical volume, however since the
exclusive state is a property of the activation and is not stored in
metadata, there would need to be additional checks to allow for creating a
snapshot of a clustered lv if that property is present.

Comment 6 Jonathan Earl Brassow 2011-02-09 21:26:44 UTC
upstream in version 2.02.83

Comment 8 Milan Broz 2011-03-04 17:54:10 UTC
Fixed in lvm2-2.02.84-1.el5

Comment 11 Corey Marthaler 2011-05-10 21:26:46 UTC
We need to turn on snap of mirrors if this is going to be a back port of the RHEL6.1 version of this bug. Otherwise we need to state that exclusive cmirror snaps are not supported.

"Snapshots and mirrors may not yet be mixed."

Comment 12 Jonathan Earl Brassow 2011-05-23 21:27:25 UTC
Does it give a sensible message?

I don't think we will port snaps of mirrors in rhel5.  A note will be needed.

Comment 13 Corey Marthaler 2011-05-25 15:55:23 UTC
It does give a sensible message. So, I'll add the "needs tech notes" flag based on comment #12 and mark this feature verified for linear and stripe volumes only.

[root@grant-02 ~]# lvchange -aye grant/linear grant/stripe grant/mirror

[root@grant-02 ~]# lvs -a -o +devices
 LV                VG     Attr   LSize   Origin Snap% Log         Copy%  Devices
 linear            grant  -wi-a- 100.00M                                 /dev/sdb1(0)
 mirror            grant  mwi-a- 100.00M              mirror_mlog 100.00 mirror_mimage_0(0),mirror_mimage_1(0)
 [mirror_mimage_0] grant  iwi-ao 100.00M                                 /dev/sdb1(38)
 [mirror_mimage_1] grant  iwi-ao 100.00M                                 /dev/sdb2(13)
 [mirror_mlog]     grant  lwi-ao   4.00M                                 /dev/sdc3(0)
 stripe            grant  -wi-a- 104.00M                                 /dev/sdb1(25),/dev/sdb2(0)

# CLUSTER LINEAR WORKS
[root@grant-02 ~]# lvcreate -n snap1 -L 50M -s grant/linear
  Rounding up size to full physical extent 52.00 MB
  Logical volume "snap1" created

# CLUSTER STRIPE WORKS
[root@grant-02 ~]# lvcreate -n snap2 -L 50M -s grant/stripe
  Rounding up size to full physical extent 52.00 MB
  Logical volume "snap2" created

# CLUSTER MIRROR DOES NOT WORK
[root@grant-02 ~]# lvcreate -n snap3 -L 50M -s grant/mirror
  Rounding up size to full physical extent 52.00 MB
  Snapshots and mirrors may not yet be mixed.

[root@grant-02 ~]# lvs -a -o +devices
 LV                VG     Attr   LSize   Origin Snap% Log         Copy%  Devices
 linear            grant  owi-a- 100.00M                                 /dev/sdb1(0)
 mirror            grant  mwi-a- 100.00M              mirror_mlog 100.00 mirror_mimage_0(0),mirror_mimage_1(0)
 [mirror_mimage_0] grant  iwi-ao 100.00M                                 /dev/sdb1(38)
 [mirror_mimage_1] grant  iwi-ao 100.00M                                 /dev/sdb2(13)
 [mirror_mlog]     grant  lwi-ao   4.00M                                 /dev/sdc3(0)
 snap1             grant  swi-a-  52.00M linear  0.02                    /dev/sdb1(63)
 snap2             grant  swi-a-  52.00M stripe  0.02                    /dev/sdb1(76)
 stripe            grant  owi-a- 104.00M                                 /dev/sdb1(25),/dev/sdb2(0)

Comment 15 Florian Nadge 2011-05-26 14:51:30 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
This field is the basis of the errata or release note for this bug. It can also be used for change logs.

The Technical Note template, known as CCFR, is as follows:

Cause
    What actions or circumstances cause this bug to present.
Consequence
    What happens when the bug presents.
Fix
    What was done to fix the bug.
Result
    What now happens when the actions or circumstances above occur.
    Note: this is not the same as the bug doesn’t present anymore.

Comment 16 errata-xmlrpc 2011-07-21 06:57:46 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0986.html