Installation guide

Table Of Contents
vgreduce command shrinks a volume group's capacity by removing one or more empty physical
volumes. This frees those physical volumes to be used in different volume groups or to be re-
moved from the system.
Before removing a physical volume from a volume group, you can make sure that the physical
volume is not used by any logical volumes by using the pvdisplay command.
# pvdisplay /dev/hda1
-- Physical volume ---
PV Name /dev/hda1
VG Name myvg
PV Size 1.95 GB / NOT usable 4 MB [LVM: 122 KB]
PV# 1
PV Status available
Allocatable yes (but full)
Cur LV 1
PE Size (KByte) 4096
Total PE 499
Free PE 0
Allocated PE 499
PV UUID Sd44tK-9IRw-SrMC-MOkn-76iP-iftz-OVSen7
If the physical volume is still being used you will have to migrate the data to another physical
volume using the pvmove command. Then use the vgreduce command to remove the physical
volume:
The following command removes the physical volume /dev/hda1 from the volume group
my_volume_group.
# vgreduce my_volume_group /dev/hda1
3.6. Changing the Parameters of a Volume Group
There are several volume group parameters that you can change for an existing volume group
with the vgchange command. Primarily, however, this command is used to deactivate and activ-
ate volume groups, as described in Section 3.7, “Activating and Deactivating Volume Groups”,
The following command changes the maximum number of logical volumes of volume group vg00
to 128.
vgchange -l 128 /dev/vg00
For a description of the volume group parameters you can change with the vgchange command,
see the vgchange(8) man page.
3.7. Activating and Deactivating Volume Groups
When you create a volume group it is, by default, activated. This means that the logical volumes
in that group are accessible and subject to change.
There are various circumstances for which you you need to make a volume group inactive and
thus unknown to the kernel. To deactivate or activate a volume group, use the -a (--available)
argument of the vgchange command.
3.6. Changing the Parameters of a Volume Group
25