Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
DescriptionCorey Marthaler
2013-12-20 21:21:37 UTC
Cloning this so it's tracked in rhel7 as well.
[root@harding-02 ~]# lvcreate -L1G -n lvol1 snapper_thinp
Logical volume "lvol1" created
[root@harding-02 ~]# lvs -a -o +devices
LV VG Attr LSize Pool Data% Devices
lvol1 snapper_thinp -wi-a----- 1.00g /dev/sdb1(0)
[root@harding-02 ~]# lvconvert --thinpool snapper_thinp/lvol1 --originname ext -T snapper_thinp/lvol1
Logical volume "lvol1_tmeta" created
Logical volume "lvol2" created
Converted snapper_thinp/lvol1 to thin pool.
Logical volume "ext" created
Cannot rename internal LV "lvol1_tdata".
Internal error: Referenced LV lvol1_tdata not listed in VG snapper_thinp.
Manual intervention may be required to remove abandoned LV(s) before retrying.
[root@harding-02 ~]# lvs -a -o +devices
LV VG Attr LSize Pool Data% Devices
ext snapper_thinp Vri---tz-- 1.00g lvol1
lvol1 snapper_thinp twi-a-tz-- 1.00g 0.00 lvol1_tdata(0)
[lvol1_tdata] snapper_thinp Twi-ao---- 1.00g /dev/sdb1(0)
[lvol1_tmeta] snapper_thinp ewi-ao---- 4.00m /dev/sdb1(256)
[lvol2_pmspare] snapper_thinp ewi------- 4.00m /dev/sdb1(257)
3.10.0-54.0.1.el7.x86_64
lvm2-2.02.103-6.el7 BUILT: Wed Nov 27 02:28:25 CST 2013
lvm2-libs-2.02.103-6.el7 BUILT: Wed Nov 27 02:28:25 CST 2013
lvm2-cluster-2.02.103-6.el7 BUILT: Wed Nov 27 02:28:25 CST 2013
device-mapper-1.02.82-6.el7 BUILT: Wed Nov 27 02:28:25 CST 2013
device-mapper-libs-1.02.82-6.el7 BUILT: Wed Nov 27 02:28:25 CST 2013
device-mapper-event-1.02.82-6.el7 BUILT: Wed Nov 27 02:28:25 CST 2013
device-mapper-event-libs-1.02.82-6.el7 BUILT: Wed Nov 27 02:28:25 CST 2013
device-mapper-persistent-data-0.2.8-2.el7 BUILT: Wed Oct 30 10:20:48 CDT 2013
cmirror-2.02.103-6.el7 BUILT: Wed Nov 27 02:28:25 CST 2013
+++ This bug was initially created as a clone of Bug #1020413 +++
Description of problem:
Conversion command to convert LV into a thin LV and making the given LV to be an external origin for this LV is missing validation:
lvconvert --thinpool mvg/lvol1 --originname ext -T mvg/lvol1
Command aborts too late, when some part of conversion already changed lvm2 metadata and change the table line.
Logical volume "lvol1_tmeta" created
Converted mvg/lvol1 to thin pool.
Logical volume "ext" created
Cannot rename internal LV "lvol1_tdata".
Internal error: Referenced LV lvol1_tdata not listed in VG mvg.
As a consequence if the user wanted to convert lvol1 just to some real pool - he now already lost lvol1 (and has to use immediately deactive pool and vgcfgrestore lvm2 metadata).
Version-Release number of selected component (if applicable):
2.02.102
How reproducible:
Steps to Reproduce:
1. lvcreate -L10 -n lvol1
2. lvconvert --thinpool mvg/lvol1 --originname ext -T mvg/lvol1
3.
Actual results:
Expected results:
Report incorrect parameters being passed in.
Additional info:
This request was resolved in Red Hat Enterprise Linux 7.0.
Contact your manager or support representative in case you have further questions about the request.