HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)
v
vgreduce(1M) vgreduce(1M)
option was mainly designed for the problem where the
vgscan or the vgimport
command place too many links beyond the max limit allowed in the
lvmtab file.
Currently the max limit is 8 paths to a PV (seven alternates and one primary). In this
situation, invoking the command without the
-f option will not resolve the condition
because the path is not attached to the volume group. Similarly, this condition can
not be overcome by invoking with the
-f
option, as the same works on physical
volumes rather than the links.
pv_path The block device path name of a physical volume.
vg_name The path name of the 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 physical volume
/dev/dsk/c0t1d0
from volume group /dev/vg01:
vgreduce /dev/vg01 /dev/dsk/c0t1d0
Force, reduction of missing PVs from volume group: vg01
vgreduce -f /dev/vg01
The following messages will appear after missing PVs has been removed successfully:
PV with key 0 successfully deleted from vg /dev/vg01
Repair done, please do the following steps.....:
1. Save /etc/lvmtab to another file.
2. Remove /etc/lvmtab .
3. Use vgscan -v to recreate /etc/lvmtab .
4. NOW use vgcfgbackup to save the LVM setup.
Remove the physical volume /dev/dsk/c0t2d0
from the vg01 volume group when the physical
volume is still in the
lvmtab file but is currently marked as missing from the volume group:
vgreduce -l /dev/vg01 /dev/dsk/c0t2d0
SEE ALSO
vgchange(1M), vgcreate(1M), vgdisplay(1M), vgextend(1M), intro(7), lvm(7).
HP-UX 11i Version 3: February 2007 − 2 − Hewlett-Packard Company 647