Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > V


HP-UX 11i Version 3: February 2007

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index


vgremove — remove LVM volume group definition from the system


/usr/sbin/vgremove vg_name ...


The vgremove command removes from the system the last physical volume of the volume group and the definition of the volume group or groups specified by vg_name .... Since all system knowledge of the volume group and its contents are removed, the volume group can no longer be accessed.

To move a volume group from one system to another, use the vgexport command instead (see vgexport(1M)).

Before executing vgremove, remove all logical volumes residing on the last physical volume by executing lvremove (see lvremove(1M)).

vgremove is equivalent to the inverse of executing vgcreate for one physical volume (see vgcreate(1M)).

Before removing a volume group, two steps are necessary:


Remove all the logical volumes belonging to the group by using the lvremove command (see lvremove(1M)).


Remove all but one physical volume belonging to the volume group by using the vgreduce command (see vgreduce(1M)).

If there is any physical volume group created under vg_name ..., the physical volume group information is also removed from file /etc/lvmpvg.


vgremove recognizes the following argument:


The path name of a volume group.


Environment Variables

LANG determines the language in which messages are displayed.

If LANG is not specified or is null, it defaults to "C" (see lang(5)).

If any internationalization variable contains an invalid setting, all internationalization variables default to "C" (see environ(5)).


Remove volume group /dev/vg02 from the system:

vgremove /dev/vg02

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.