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 695526 - update the error when attempting to convert a linear into a snapshot of a mirror
Summary: update the error when attempting to convert a linear into a snapshot of a mirror
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: lvm2
Version: 6.1
Hardware: x86_64
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Peter Rajnoha
QA Contact: Corey Marthaler
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-11 22:19 UTC by Corey Marthaler
Modified: 2011-12-06 16:54 UTC (History)
9 users (show)

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.
Clone Of:
Environment:
Last Closed: 2011-12-06 16:54:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1522 0 normal SHIPPED_LIVE lvm2 bug fix and enhancement update 2011-12-06 00:50:10 UTC

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


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