Bug 244796 - vgremove should behave like lvremove and pvremove
Summary: vgremove should behave like lvremove and pvremove
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: lvm2
Version: 5.0
Hardware: All
OS: Linux
Target Milestone: ---
: ---
Assignee: Milan Broz
QA Contact: Corey Marthaler
Depends On:
TreeView+ depends on / blocked
Reported: 2007-06-19 08:39 UTC by Milan Broz
Modified: 2013-03-01 04:05 UTC (History)
6 users (show)

Clone Of:
Last Closed: 2007-11-07 16:49:11 UTC

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 16:18:33 UTC

Description Milan Broz 2007-06-19 08:39:13 UTC
+++ 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 08:44:14 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

Comment 3 Corey Marthaler 2007-06-27 22:15:59 UTC
fix verified in lvm2-2.02.26-1.el5

Comment 5 errata-xmlrpc 2007-11-07 16:49:11 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.


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