Bug 244792

Summary: vgsplit support for lvm1 format vg is broken
Product: Red Hat Enterprise Linux 5 Reporter: Milan Broz <mbroz>
Component: lvm2Assignee: Milan Broz <mbroz>
Status: CLOSED ERRATA QA Contact: Corey Marthaler <cmarthal>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.0CC: agk, dwysocha, jbrassow, mbroz, prockai, pvrabec
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2007-0516 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-11-07 16:49:00 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 Milan Broz 2007-06-19 08:26:55 UTC
+++ This bug was initially created as a clone of Bug #233123 +++
RHEL5 clone

vgsplit used on lvm1 PVs cause duplicate entries instead of vg split.

[root@vmware199 ~]# lvm version
  LVM version:     2.02.21-RHEL4 (2007-03-19)
  Library version: 1.02.17-RHEL4 (2007-02-02)
  Driver version:  4.5.0
[root@vmware199 ~]# pvcreate -M 1 /dev/sd[bcd]1
  Physical volume "/dev/sdb1" successfully created
  Physical volume "/dev/sdc1" successfully created
  Physical volume "/dev/sdd1" successfully created
[root@vmware199 ~]# vgcreate -M 1 vg_test /dev/sd[bcd]1
  Volume group "vg_test" successfully created
[root@vmware199 ~]# vgsplit -M 1 vg_test vg_test1 /dev/sdd1
  WARNING: Duplicate VG name vg_test: Existing
xye90P-9dIs-7pus-DC0g-L23p-k7Z5-99TI2d takes precedence over exported
xJmMmY-YTS6-JNmw-SE2h-104L-CV3b-73rWCz
  Volume group "vg_test1" became inconsistent: please fix manually
[root@vmware199 ~]# pvs
  WARNING: Duplicate VG name vg_test: Existing
xye90P-9dIs-7pus-DC0g-L23p-k7Z5-99TI2d takes precedence over exported
xJmMmY-YTS6-JNmw-SE2h-104L-CV3b-73rWCz
  PV         VG      Fmt  Attr PSize   PFree
  /dev/sda2  myvg    lvm2 a-     4.81G  32.00M
  /dev/sdb1  vg_test lvm1 a-   196.00M 196.00M
  /dev/sdb1  vg_test lvm1 a-   196.00M 196.00M
  /dev/sdc1  vg_test lvm1 a-   196.00M 196.00M
  /dev/sdc1  vg_test lvm1 a-   196.00M 196.00M

-- Additional comment from mbroz on 2007-03-23 08:54 EST --
Fixed upstream in lvm2 2.02.25, waiting for pkg rebase -> POST.

Comment 1 RHEL Program Management 2007-06-19 08:34:34 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 5 errata-xmlrpc 2007-11-07 16:49:00 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2007-0516.html