HP-UX Reference (11i v2 07/12) - 1M System Administration Commands N-Z (vol 4)
v
vgreduce(1M) vgreduce(1M)
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
the condition would not be overcome by invoking with the
-f option as this works on
PVs rather than 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 from the vg01 volume group when it is still in the lvmtab
file but is
currently marked as missing from the volume group:
vgreduce -l /dev/vg01
SEE ALSO
vgchange(1M), vgcreate(1M), vgdisplay(1M), vgextend(1M).
HP-UX 11i Version 2: December 2007 Update − 2 − Hewlett-Packard Company 635