vgremove.1m (2010 09)

v
vgremove(1M) vgremove(1M)
NAME
vgremove - remove LVM volume group definition from the system
SYNOPSIS
/usr/sbin/vgremove
[-X] vg_name ...
Remarks
If a combination of volume groups version 1.0 and 2.0 or higher arguments are supplied, then the argu-
ments might not be processed in the order they are listed on the command line.
DESCRIPTION
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 execut-
ing lvremove (see lvremove (1M)).
Before removing a volume group, two steps are necessary:
1. Remove all the logical volumes belonging to the group by using the
lvremove command (see
lvremove (1M)).
2. 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.
Options and Arguments
vgremove recognizes the following option and argument:
-X For each volume group removed, also remove its volume group directory
(/dev/vg_name) and group file (/dev/vg_name/group
).
vg_name The path name of a volume group.
EXTERNAL INFLUENCES
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)).
EXAMPLES
Remove volume group
/dev/vg02 from the system:
vgremove /dev/vg02
SEE ALSO
lvremove(1M), vgchange(1M), vgreduce(1M).
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (2 pages)