Bug 452982 - pvchange -x doesn't work for non-mda PVs
pvchange -x doesn't work for non-mda PVs
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: lvm2 (Show other bugs)
5.2
All Linux
low Severity low
: rc
: ---
Assigned To: Milan Broz
Cluster QE
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-06-26 09:08 EDT by Milan Broz
Modified: 2013-02-28 23:06 EST (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-01-20 16:47:08 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Milan Broz 2008-06-26 09:08:48 EDT
pvchange incorrectly handles PVs without metadata areas,
"allocatable" flag should changed in metadata (located on other PVs)

# pvs -o +mda_count /dev/sd[bc]1
  PV         VG      Fmt  Attr PSize   PFree   #PMda
  /dev/sdb1  vg_test lvm2 a-   200.00M 200.00M     1
  /dev/sdc1  vg_test lvm2 a-   200.00M 200.00M     0

# pvchange -x n /dev/sdb1
  Physical volume "/dev/sdb1" changed
  1 physical volume changed / 0 physical volumes not changed

# pvchange -x n /dev/sdc1
  Allocatability not supported by orphan lvm2 format PV /dev/sdc1
  0 physical volumes changed / 1 physical volume not changed

# rpm -q lvm2
lvm2-2.02.32-4.el5
Comment 2 RHEL Product and Program Management 2008-07-16 04:50:58 EDT
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 3 Milan Broz 2008-07-31 08:44:32 EDT
Fixed upstream in 2.02.40
+  Fix pvchange and pvremove to handle PVs without mdas.

Comment 4 Milan Broz 2008-09-19 07:11:31 EDT
In lvm2-2.02.40-1.el5.
Comment 7 errata-xmlrpc 2009-01-20 16:47:08 EST
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

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