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 855171 - thinpool volume mirror conversion attempt fails
Summary: thinpool volume mirror conversion attempt fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: lvm2
Version: 6.3
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Zdenek Kabelac
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-06 21:21 UTC by Corey Marthaler
Modified: 2013-02-21 08:13 UTC (History)
9 users (show)

Fixed In Version: lvm2-2.02.98-1.el6
Doc Type: Bug Fix
Doc Text:
Unsupported conversion of thin pool into a mirror had resulted into a aborting log error message. Explicit check which prohibits this conversion even before tool tries to do that has been added, so the error message gives clean explicit note about unsupported feature.
Clone Of:
Environment:
Last Closed: 2013-02-21 08:13:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0501 0 normal SHIPPED_LIVE lvm2 bug fix and enhancement update 2013-02-20 21:30:45 UTC

Description Corey Marthaler 2012-09-06 21:21:03 UTC
Description of problem:
I'm not sure if this was ever supposed to be supported, but lvm allows a user to attempt this and it fails and requires user clean-up.

[root@taft-01 ~]# lvs -a -o +devices
  LV           VG            Attr     LSize  Pool Origin Data%  Devices
  POOL         snapper_thinp twi-a-tz  1.00g               0.00 POOL_tdata(0)
  [POOL_tdata] snapper_thinp Twi-aot-  1.00g                    /dev/sdc1(0)
  [POOL_tmeta] snapper_thinp ewi-aot-  4.00m                    /dev/sdb1(0)
  display_snap snapper_thinp Vwi-a-tz  1.00g POOL origin   0.00
  origin       snapper_thinp Vwi-a-tz  1.00g POOL          0.00

[root@taft-01 ~]# lvconvert -m 1 snapper_thinp/POOL
  Can't convert non-striped segment to mirrored.
  Aborting. Failed to add mirror segment. Remove new LV and retry.

[root@taft-01 ~]# lvs -a -o +devices
  LV              VG            Attr     LSize  Pool Origin Data%  Devices
  POOL            snapper_thinp twi-a-tz  1.00g               0.00 POOL_tdata(0)
  [POOL_mimage_0] snapper_thinp -wi-----  1.00g                    /dev/sdb1(1)
  [POOL_tdata]    snapper_thinp Twi-aot-  1.00g                    /dev/sdc1(0)
  [POOL_tmeta]    snapper_thinp ewi-aot-  4.00m                    /dev/sdb1(0)
  display_snap    snapper_thinp Vwi-a-tz  1.00g POOL origin   0.00
  origin          snapper_thinp Vwi-a-tz  1.00g POOL          0.00


Version-Release number of selected component (if applicable):
2.6.32-279.el6.x86_64

lvm2-2.02.95-10.el6    BUILT: Fri May 18 03:26:00 CDT 2012
lvm2-libs-2.02.95-10.el6    BUILT: Fri May 18 03:26:00 CDT 2012
lvm2-cluster-2.02.95-10.el6    BUILT: Fri May 18 03:26:00 CDT 2012
udev-147-2.41.el6    BUILT: Thu Mar  1 13:01:08 CST 2012
device-mapper-1.02.74-10.el6    BUILT: Fri May 18 03:26:00 CDT 2012
device-mapper-libs-1.02.74-10.el6    BUILT: Fri May 18 03:26:00 CDT 2012
device-mapper-event-1.02.74-10.el6    BUILT: Fri May 18 03:26:00 CDT 2012
device-mapper-event-libs-1.02.74-10.el6    BUILT: Fri May 18 03:26:00 CDT 2012
cmirror-2.02.95-10.el6    BUILT: Fri May 18 03:26:00 CDT 2012

Comment 1 Corey Marthaler 2012-09-06 21:39:07 UTC
Looks like no mirroring should be attempted with thin pools, and that the check only works w/ raid1 mirrors?

[root@taft-01 ~]# lvconvert --type raid1 -m 1 snapper_thinp/POOL
  '--mirrors/-m' is not compatible with thin-pool

Comment 2 Zdenek Kabelac 2012-10-08 12:22:02 UTC
Prohibited as unsupported yet:

https://www.redhat.com/archives/lvm-devel/2012-October/msg00025.html

Comment 4 Corey Marthaler 2013-01-04 22:26:48 UTC
Fix verified in the latest rpms.

2.6.32-348.el6.x86_64
lvm2-2.02.98-6.el6    BUILT: Thu Dec 20 07:00:04 CST 2012
lvm2-libs-2.02.98-6.el6    BUILT: Thu Dec 20 07:00:04 CST 2012
lvm2-cluster-2.02.98-6.el6    BUILT: Thu Dec 20 07:00:04 CST 2012
udev-147-2.43.el6    BUILT: Thu Oct 11 05:59:38 CDT 2012
device-mapper-1.02.77-6.el6    BUILT: Thu Dec 20 07:00:04 CST 2012
device-mapper-libs-1.02.77-6.el6    BUILT: Thu Dec 20 07:00:04 CST 2012
device-mapper-event-1.02.77-6.el6    BUILT: Thu Dec 20 07:00:04 CST 2012
device-mapper-event-libs-1.02.77-6.el6    BUILT: Thu Dec 20 07:00:04 CST 2012
cmirror-2.02.98-6.el6    BUILT: Thu Dec 20 07:00:04 CST 2012


SCENARIO - [pool_to_conversion]
Attempt to convert a thinp pool device to mirror, raid1, raid4, raid5, and raid6
Making origin volume
Creating thinpool and corresponding thin virtual volumes (one to be used as an origin)
lvcreate --thinpool POOL -L 4G snapper_thinp
lvcreate --virtualsize 1G --thinpool snapper_thinp/POOL -n origin
lvcreate --virtualsize 1G --thinpool snapper_thinp/POOL -n other1
lvcreate --virtualsize 1G --thinpool snapper_thinp/POOL -n other2
lvcreate --virtualsize 1G --thinpool snapper_thinp/POOL -n other3
lvcreate --virtualsize 1G --thinpool snapper_thinp/POOL -n other4
lvcreate --virtualsize 1G --thinpool snapper_thinp/POOL -n other5
Making snapshot of origin volume
lvcreate -s /dev/snapper_thinp/origin -n pool_convert

Attempt mirror conversion of pool device...
lvconvert -m 1 snapper_thinp/POOL
  Converting segment type for snapper_thinp/POOL to mirror is not yet supported.

Attempt raid1 conversion of pool device...
lvconvert --type raid1 -m 1 snapper_thinp/POOL
  '--mirrors/-m' is not compatible with thin-pool

Attempt raid4 conversion of pool device...
lvconvert --type raid4 -i 2 snapper_thinp/POOL
  Converting the segment type for snapper_thinp/POOL from thin-pool to raid4 is not yet supported.

Attempt raid5 conversion of pool device...
lvconvert --type raid5 -i 2 snapper_thinp/POOL
  Converting the segment type for snapper_thinp/POOL from thin-pool to raid5 is not yet supported.

Attempt raid6 conversion of pool device...
lvconvert --type raid6 -i 3 snapper_thinp/POOL
  Converting the segment type for snapper_thinp/POOL from thin-pool to raid6 is not yet supported.

Comment 5 errata-xmlrpc 2013-02-21 08:13:19 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-2013-0501.html


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