United States-English |
|
|
HP-UX Reference > Vvgreduce(1M)HP-UX 11i Version 3: February 2007 |
|
NAMEvgreduce — remove physical volumes from an LVM volume group DESCRIPTIONThe vgreduce command removes each physical volume specified by a pv_path argument from volume group vg_name. The vgreduce command with -f option removes all missing physical volumes from the volume group. All but one physical volume can be removed. The last physical volume must remain in the volume group so that the logical volume driver can continue to operate. The last physical volume in the volume group can be removed with the vgremove command (see vgremove(1M)). Before executing vgreduce, remove all logical volumes residing on each physical volume represented by a pv_path by executing the lvremove command (see lvremove(1M)). Any physical volume in the pv_path list that is also a member of a physical volume group (as defined in /etc/lvmpvg) is also removed from the physical volume group. If the physical volume happens to be the last one in the physical volume group, the physical volume group is also removed from the volume group. When a physical volume in the pv_path list has multiple PV-links, the physical volume is not removed from the volume group, until all the links to the volume are removed. When a physical volume in the pv_path list is the primary link (in use) to a physical volume, removing the link forces LVM to switch to the alternate link (For information on alternate links, see lvm(7)). When the pv_path removed is an alternate link to the device, only the link is removed; the volume group and physical volume are otherwise unchanged. Options and Argumentsvgreduce recognizes the following options and arguments:
EXTERNAL INFLUENCESEnvironment VariablesLANG 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)). EXAMPLESRemove 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:
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 |
Printable version | ||
|