+++ This bug was initially created as a clone of Bug #247448 +++ Description of problem: LVM2 permits PVs to be created with 0 or more metadata areas. Creating volume groups with less MDAs than PVs improves tool performance for VGs with large numbers of PVs. Currently the tools permit the last MDA to be removed from a VG with no warning, causing the VG to suddenly "disappear". Version-Release number of selected component (if applicable): lvm2-2.02.21-5.el4, lvm2-2.02.24-1.fc7, lvm2 CVS 20070707. How reproducible: 100% Steps to Reproduce: 1. Create a volume group with #MDAS < #PVs: pvcreate --metadatacopies=1 /dev/loop0 pvcreate --metadatacopies=0 /dev/loop1 vgcreate t0 /dev/loop0 /dev/loop1 2. Attempt to remove the PV that contains the MDA vgreduce t0 /dev/loop0 Actual results: # vgreduce t0 /dev/loop0 Removed "/dev/loop0" from volume group "t0" # vgs No volume groups found Expected results: # vgreduce t0 /dev/loop0 Can't remove final metadata area on physical volume "/dev/loop0" from volume group "t0" Additional info:
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.
Commited to CVS in version lvm2-2.02.39-1.el5.
*** Bug 461306 has been marked as a duplicate of this bug. ***
Fix verified in lvm2-2.02.39-2.el5. "Cannot remove final metadata area on "/dev/etherd/e1.1p3" from "mirror_sanity""
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 therefore 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-2009-0179.html