Bug 527186

Summary: [RFE] Add support for exclusively activating snapshots of clustered logical volumes
Product: Red Hat Enterprise Linux 6 Reporter: Subhendu Ghosh <sghosh>
Component: lvm2Assignee: Jonathan Earl Brassow <jbrassow>
Status: CLOSED ERRATA QA Contact: Corey Marthaler <cmarthal>
Severity: low Docs Contact:
Priority: low    
Version: 6.0CC: agk, casmith, ccaulfie, cluster-maint, dwysocha, ghelleks, heinzm, iannis, jbrassow, mbroz, prajnoha, prockai, sbradley, syeghiay, tao
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: lvm2-2.02.83-3.el6 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 501437 Environment:
Last Closed: 2011-05-19 14:25: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: 677739    
Bug Blocks: 501437    

Comment 1 Corey Marthaler 2009-10-14 21:04:15 UTC
FYI - the current code does not forget to check when changing an existing LV from non-clustered to clustered regardless of whether or not it's currently active.

[root@taft-01 ~]# lvcreate -L 12M -s taft/clinear
  Logical volume "lvol0" created
[root@taft-01 ~]# lvs -a -o +devices
  LV       VG         Attr   LSize   Origin  Snap%  Move Log Copy%  Convert Devices        
  LogVol00 VolGroup00 -wi-ao  58.38G                                        /dev/sda2(0)   
  LogVol01 VolGroup00 -wi-ao   9.75G                                        /dev/sda2(1868)
  clinear  taft       owi-a- 100.00M                                        /dev/sdb1(0)   
  lvol0    taft       swi-a-  12.00M clinear   0.07                         /dev/sdc1(0)   
[root@taft-01 ~]# vgchange -c y taft
  Volume group taft contains snapshots that are not yet supported.
[root@taft-01 ~]# vgchange -an taft
  0 logical volume(s) in volume group "taft" now active
[root@taft-01 ~]# vgchange -c y taft
  Volume group taft contains snapshots that are not yet supported.

Comment 2 Corey Marthaler 2009-10-14 21:11:31 UTC
In fact there may even be a bug in here, though I think I've brought up the fact that lvm will activate in single machine mode the same volume on multiple nodes.

[root@taft-01 ~]# vgchange -aye taft
  2 logical volume(s) in volume group "taft" now active

[root@taft-01 ~]#  lvs
  LV       VG         Attr   LSize   Origin  Snap%  Move Log Copy%  Convert
  LogVol00 VolGroup00 -wi-ao  58.38G                                       
  LogVol01 VolGroup00 -wi-ao   9.75G                                       
  clinear  taft       owi-a- 100.00M                                       
  lvol0    taft       swi-a-  12.00M clinear   0.07                        

# here the snap doesn't get activated, but the origin does.
[root@taft-02 ~]# vgchange -aye taft
  _get_device_info: device not found
  1 logical volume(s) in volume group "taft" now active

[root@taft-02 ~]# lvs -a -o +devices
  LV       VG         Attr   LSize   Origin  Snap%  Move Log Copy%  Convert Devices        
  LogVol00 VolGroup00 -wi-ao  58.38G                                        /dev/sda2(0)   
  LogVol01 VolGroup00 -wi-ao   9.75G                                        /dev/sda2(1868)
  clinear  taft       owi-a- 100.00M                                        /dev/sdb1(0)   
  lvol0    taft       swi---  12.00M clinear                                /dev/sdc1(0)

Comment 6 Corey Marthaler 2011-02-15 18:09:50 UTC
bug 677739 should block this feature.

Comment 7 Corey Marthaler 2011-03-16 19:16:20 UTC
Marking this FailsQA until the fix for 677739 is included.

Comment 8 Peter Rajnoha 2011-03-18 09:46:53 UTC
6777739 now in POST (upstream in version 2.02.85), marking this one POST as well.

Comment 10 Corey Marthaler 2011-03-18 20:11:51 UTC
677739 has now been verified. Marking this feature verified as well with the latest rpms.

2.6.32-94.el6.x86_64

lvm2-2.02.83-3.el6    BUILT: Fri Mar 18 09:31:10 CDT 2011
lvm2-libs-2.02.83-3.el6    BUILT: Fri Mar 18 09:31:10 CDT 2011
lvm2-cluster-2.02.83-3.el6    BUILT: Fri Mar 18 09:31:10 CDT 2011
udev-147-2.31.el6    BUILT: Wed Jan 26 05:39:15 CST 2011
device-mapper-1.02.62-3.el6    BUILT: Fri Mar 18 09:31:10 CDT 2011
device-mapper-libs-1.02.62-3.el6    BUILT: Fri Mar 18 09:31:10 CDT 2011
device-mapper-event-1.02.62-3.el6    BUILT: Fri Mar 18 09:31:10 CDT 2011
device-mapper-event-libs-1.02.62-3.el6    BUILT: Fri Mar 18 09:31:10 CDT 2011
cmirror-2.02.83-3.el6    BUILT: Fri Mar 18 09:31:10 CDT 2011

Comment 11 Corey Marthaler 2011-04-11 18:40:31 UTC
Just a note that bug 694164 (targets not resumed when creating multiple snapshots of mirrors) may be seen when attempting this feature. This may require a note in the docs.

Comment 12 errata-xmlrpc 2011-05-19 14:25: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-0772.html