Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 244796 - vgremove should behave like lvremove and pvremove
vgremove should behave like lvremove and pvremove
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: lvm2 (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Milan Broz
Corey Marthaler
Depends On:
  Show dependency treegraph
Reported: 2007-06-19 04:39 EDT by Milan Broz
Modified: 2013-02-28 23:05 EST (History)
6 users (show)

See Also:
Fixed In Version: RHBA-2007-0516
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-11-07 11:49:11 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2007:0516 normal SHIPPED_LIVE lvm2 bug fix and enhancement update 2007-10-30 12:18:33 EDT

  None (edit)
Description Milan Broz 2007-06-19 04:39:13 EDT
+++ This bug was initially created as a clone of Bug #199618 +++
RHEL5 clone

pvremove and lvremove both require arguments, vgremove does not.

Description of problem:
[root@taft-04 ~]# lvscan
  ACTIVE            '/dev/vg/lvol0' [1.00 GB] inherit
[root@taft-04 ~]# lvremove
  Please enter one or more logical volume paths
  lvremove: Remove logical volume(s) from the system

        [-A|--autobackup y|n]
        LogicalVolume[Path] [LogicalVolume[Path]...]

[root@taft-04 ~]# lvremove /dev/vg/lvol0
Do you really want to remove active logical volume "lvol0"? [y/n]: y
  Logical volume "lvol0" successfully removed

[root@taft-04 ~]# vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "vg" using metadata type lvm2
[root@taft-04 ~]# vgremove
  Volume group "vg" successfully removed

[root@taft-04 ~]# pvscan
  PV /dev/sdb1         lvm2 [272.46 GB]
  PV /dev/sdc1         lvm2 [272.46 GB]
  PV /dev/sdd1         lvm2 [964.81 MB]
  Total: 3 [545.86 GB] / in use: 0 [0   ] / in no VG: 3 [545.86 GB]
[root@taft-04 ~]# pvremove
  Please enter a physical volume path
  pvremove: Remove LVM label(s) from physical volume(s)

        [-f[f]|--force [--force]]
        PhysicalVolume [PhysicalVolume...]

[root@taft-04 ~]# pvremove /dev/sdb1 /dev/sdc1 /dev/sdd1
  Labels on physical volume "/dev/sdb1" successfully wiped
  Labels on physical volume "/dev/sdc1" successfully wiped
  Labels on physical volume "/dev/sdd1" successfully wiped

-- Additional comment from mbroz@redhat.com on 2007-03-15 10:03 EST --
Fixed upstream in 2.02.24.
Comment 1 RHEL Product and Program Management 2007-06-19 04:44:14 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
Comment 3 Corey Marthaler 2007-06-27 18:15:59 EDT
fix verified in lvm2-2.02.26-1.el5
Comment 5 errata-xmlrpc 2007-11-07 11:49:11 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 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.


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