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 1358961 - vgsplit attempt of external origin volume fail with "Internal error: Referenced LV not listed in VG"
Summary: vgsplit attempt of external origin volume fail with "Internal error: Referen...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: lvm2
Version: 7.3
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: David Teigland
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-07-21 23:03 UTC by Corey Marthaler
Modified: 2021-09-03 12:41 UTC (History)
8 users (show)

Fixed In Version: lvm2-2.02.161-3.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-04 04:16:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1445 0 normal SHIPPED_LIVE lvm2 bug fix and enhancement update 2016-11-03 13:46:41 UTC

Description Corey Marthaler 2016-07-21 23:03:26 UTC
Description of problem:
This is a regression of the proper failure "Can't split external origin EXT and pool pool between two Volume Groups."

SCENARIO - [split_thin_extorigin_with_pool_on_diff_pv]
Attempt to split out an external thin volume LV from VG

Create a thin pool, virt, and snapshot volumes in the same vg (different pvs)
Create LV to be used as an EXTERNAL origin device
lvcreate  -L 1G -n extorigin seven /dev/sdd1
Converting LV into an external thin origin device
lvconvert --thinpool seven/pool --originname EXT -T extorigin
  WARNING: Sum of all thin volume sizes (1.00 GiB) exceeds the size of thin pool seven/pool (100.00 MiB)!
lvcreate  -s /dev/seven/extorigin -n snap1
  WARNING: Sum of all thin volume sizes (2.00 GiB) exceeds the size of thin pool seven/pool (100.00 MiB)!
lvcreate  -s /dev/seven/extorigin -n snap2
  WARNING: Sum of all thin volume sizes (3.00 GiB) exceeds the size of thin pool seven/pool (100.00 MiB)!
lvcreate  -s /dev/seven/extorigin -n snap3
  WARNING: Sum of all thin volume sizes (4.00 GiB) exceeds the size of thin pool seven/pool (100.00 MiB)!

deactivating seven/pool
deactivating seven/extorigin
deactivating seven/EXT


[root@host-075 ~]# lvs -a -o +devices
  LV              VG            Attr       LSize   Pool Origin    Data%  Meta%  Move Log Cpy%Sync Convert Devices       
  EXT             seven         ori-------   1.00g                                                        /dev/sdg1(0)  
  extorigin       seven         Vwi---tz--   1.00g pool EXT                                                             
  [lvol0_pmspare] seven         ewi-------   4.00m                                                        /dev/sdh1(0)  
  pool            seven         twi---tz-- 100.00m                                                        pool_tdata(0) 
  [pool_tdata]    seven         Twi------- 100.00m                                                        /dev/sdh1(1)  
  [pool_tmeta]    seven         ewi-------   4.00m                                                        /dev/sdh1(26) 
  snap1           seven         Vwi---tz-k   1.00g pool extorigin                                                       
  snap2           seven         Vwi---tz-k   1.00g pool extorigin                                                       
  snap3           seven         Vwi---tz-k   1.00g pool extorigin                                                       

[root@host-075 ~]# vgsplit -n EXT seven ten
  Internal error: Referenced LV EXT not listed in VG ten.
  Internal error: Referenced PV /dev/sdg1 not listed in VG ten.


# Non regression behavior should be:
[root@host-085 ~]# vgsplit -n EXT seven ten
  Can't split external origin EXT and pool pool between two Volume Groups.



Version-Release number of selected component (if applicable):
3.10.0-472.el7.x86_64

lvm2-2.02.161-2.el7    BUILT: Wed Jul 20 07:48:14 CDT 2016
lvm2-libs-2.02.161-2.el7    BUILT: Wed Jul 20 07:48:14 CDT 2016
lvm2-cluster-2.02.161-2.el7    BUILT: Wed Jul 20 07:48:14 CDT 2016
device-mapper-1.02.131-2.el7    BUILT: Wed Jul 20 07:48:14 CDT 2016
device-mapper-libs-1.02.131-2.el7    BUILT: Wed Jul 20 07:48:14 CDT 2016
device-mapper-event-1.02.131-2.el7    BUILT: Wed Jul 20 07:48:14 CDT 2016
device-mapper-event-libs-1.02.131-2.el7    BUILT: Wed Jul 20 07:48:14 CDT 2016
device-mapper-persistent-data-0.6.2-1.el7    BUILT: Mon Jul 11 04:32:34 CDT 2016
cmirror-2.02.161-2.el7    BUILT: Wed Jul 20 07:48:14 CDT 2016
sanlock-3.4.0-1.el7    BUILT: Fri Jun 10 11:41:03 CDT 2016
sanlock-lib-3.4.0-1.el7    BUILT: Fri Jun 10 11:41:03 CDT 2016
lvm2-lockd-2.02.161-2.el7    BUILT: Wed Jul 20 07:48:14 CDT 2016

Comment 5 Corey Marthaler 2016-08-01 22:57:30 UTC
Fix verified in the latest rpms.


3.10.0-480.el7.x86_64
lvm2-2.02.161-3.el7    BUILT: Thu Jul 28 09:31:24 CDT 2016
lvm2-libs-2.02.161-3.el7    BUILT: Thu Jul 28 09:31:24 CDT 2016
lvm2-cluster-2.02.161-3.el7    BUILT: Thu Jul 28 09:31:24 CDT 2016
device-mapper-1.02.131-3.el7    BUILT: Thu Jul 28 09:31:24 CDT 2016
device-mapper-libs-1.02.131-3.el7    BUILT: Thu Jul 28 09:31:24 CDT 2016
device-mapper-event-1.02.131-3.el7    BUILT: Thu Jul 28 09:31:24 CDT 2016
device-mapper-event-libs-1.02.131-3.el7    BUILT: Thu Jul 28 09:31:24 CDT 2016
device-mapper-persistent-data-0.6.3-1.el7    BUILT: Fri Jul 22 05:29:13 CDT 2016
cmirror-2.02.161-3.el7    BUILT: Thu Jul 28 09:31:24 CDT 2016
sanlock-3.4.0-1.el7    BUILT: Fri Jun 10 11:41:03 CDT 2016
sanlock-lib-3.4.0-1.el7    BUILT: Fri Jun 10 11:41:03 CDT 2016
lvm2-lockd-2.02.161-3.el7    BUILT: Thu Jul 28 09:31:24 CDT 2016



[root@host-078 ~]# lvs -a -o +devices
  LV              VG    Attr       LSize   Pool Origin     Devices
  EXT             seven ori-------   1.00g                 /dev/sdg1(0)
  extorigin       seven Vwi---tz--   1.00g pool EXT
  [lvol0_pmspare] seven ewi-------   4.00m                 /dev/sdb1(0)
  pool            seven twi---tz-- 100.00m                 pool_tdata(0)
  [pool_tdata]    seven Twi------- 100.00m                 /dev/sdb1(1)
  [pool_tmeta]    seven ewi-------   4.00m                 /dev/sdb1(26)
  snap1           seven Vwi---tz-k   1.00g pool extorigin
  snap2           seven Vwi---tz-k   1.00g pool extorigin
  snap3           seven Vwi---tz-k   1.00g pool extorigin

[root@host-078 ~]# vgsplit -n EXT seven ten
  Can't split external origin EXT and pool pool between two Volume Groups.

Comment 7 errata-xmlrpc 2016-11-04 04:16:09 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.

https://rhn.redhat.com/errata/RHBA-2016-1445.html


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