Bug 695526

Summary: update the error when attempting to convert a linear into a snapshot of a mirror
Product: Red Hat Enterprise Linux 6 Reporter: Corey Marthaler <cmarthal>
Component: lvm2Assignee: Peter Rajnoha <prajnoha>
Status: CLOSED ERRATA QA Contact: Corey Marthaler <cmarthal>
Severity: low Docs Contact:
Priority: low    
Version: 6.1CC: agk, dwysocha, heinzm, jbrassow, mbroz, prajnoha, prockai, thornber, zkabelac
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: lvm2-2.02.86-1.el6 Doc Type: Bug Fix
Doc Text:
The error message "Unable to create a snapshot of a locked|pvmove|mirrored LV" has been changed to "Unable to convert an LV into a snapshot of a locked|pvmove|mirrored LV." for clarity when using lvconvert command.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 16:54:44 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:

Description Corey Marthaler 2011-04-11 22:19:35 UTC
Description of problem:
Starting in 6.1, we can create snapshots of mirrored volumes. However, we are not apparently able yet to convert volumes into snapshots of mirrored volumes. The error for attempting this should reflect that.


[root@grant-01 ~]# lvs -a -o +devices
 LV                VG         Attr   Log         Copy%  Devices
 origin            snapper    mwi-a- origin_mlog 100.00 origin_mimage_0(0),origin_mimage_1(0)
 [origin_mimage_0] snapper    iwi-ao                    /dev/sdb1(0)
 [origin_mimage_1] snapper    iwi-ao                    /dev/sdb2(0)
 [origin_mlog]     snapper    lwi-ao                    /dev/sdc2(0)
 snap_to_convert   snapper    -wi-a-                    /dev/sdb1(75)

[root@grant-01 ~]# lvconvert -s snapper/origin snapper/snap_to_convert
 Unable to create a snapshot of a mirrored LV.

That error isn't accurate since you can create snaps of mirrors. It should say something like:
 "Unable to convert an LV into a snapshot of a mirrored LV"

The error is better when to switch the volumes being converted (ie. attempt to convert a mirrored LV in a snap of a linear).

[root@grant-01 ~]# lvconvert -s snapper/snap_to_convert snapper/origin
 Unable to convert mirrored LV "origin" into a snapshot.



Version-Release number of selected component (if applicable):
2.6.32-130.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.35.el6    BUILT: Wed Mar 30 07:32:05 CDT 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 1 Alasdair Kergon 2011-06-01 12:09:20 UTC
Unable to convert an LV into a snapshot of a (locked|pvmove|mirroredsnapshot) LV.

Comment 2 Peter Rajnoha 2011-06-01 12:25:03 UTC
Changed - v2.02.86.

Comment 3 Peter Rajnoha 2011-08-09 15:23:18 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:
The error message "Unable to create a snapshot of a locked|pvmove|mirrored LV" has been changed to "Unable to convert an LV into a snapshot of a locked|pvmove|mirrored LV." for clarity when using lvconvert command.

Comment 5 Corey Marthaler 2011-09-06 21:34:56 UTC
Fix verified in the latest rpms.

[root@taft-02 ~]#  lvconvert -s snapper/origin snapper/snap_to_convert
  Unable to convert an LV into a snapshot of a mirrored LV.

2.6.32-192.el6.x86_64

lvm2-2.02.87-1.el6    BUILT: Fri Aug 12 06:11:57 CDT 2011
lvm2-libs-2.02.87-1.el6    BUILT: Fri Aug 12 06:11:57 CDT 2011
lvm2-cluster-2.02.87-1.el6    BUILT: Fri Aug 12 06:11:57 CDT 2011
udev-147-2.37.el6    BUILT: Wed Aug 10 07:48:15 CDT 2011
device-mapper-1.02.66-1.el6    BUILT: Fri Aug 12 06:11:57 CDT 2011
device-mapper-libs-1.02.66-1.el6    BUILT: Fri Aug 12 06:11:57 CDT 2011
device-mapper-event-1.02.66-1.el6    BUILT: Fri Aug 12 06:11:57 CDT 2011
device-mapper-event-libs-1.02.66-1.el6    BUILT: Fri Aug 12 06:11:57 CDT 2011
cmirror-2.02.87-1.el6    BUILT: Fri Aug 12 06:11:57 CDT 2011

Comment 6 errata-xmlrpc 2011-12-06 16:54:44 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.

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