Changing the Parameters of a Volume Group25Cur LV 1PE Size (KByte) 4096Total PE 499Free PE 0Allocated PE 499PV UUID Sd44tK-9IRw-SrMC-MOkn-76iP-iftz-OVSen7If the physical volume is still being used you will have to migrate the data to another physical volumeusing 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 groupmy_volume_group.# vgreduce my_volume_group /dev/hda14.3.6. Changing the Parameters of a Volume GroupThe vgchange command is used to deactivate and activate volume groups, as described inSection 4.3.7, “Activating and Deactivating Volume Groups”. You can also use this command tochange several volume group parameters for an existing volume group.The following command changes the maximum number of logical volumes of volume group vg00 to128.vgchange -l 128 /dev/vg00For a description of the volume group parameters you can change with the vgchange command, seethe vgchange(8) man page.4.3.7. Activating and Deactivating Volume GroupsWhen you create a volume group it is, by default, activated. This means that the logical volumes inthat group are accessible and subject to change.There are various circumstances for which you you need to make a volume group inactive andthus unknown to the kernel. To deactivate or activate a volume group, use the -a (--available)argument of the vgchange command.The following example deactivates the volume group my_volume_group.vgchange -a n my_volume_groupIf clustered locking is enabled, add ’e’ to activate or deactivate a volume group exclusively on onenode or ’l’ to activate or/deactivate a volume group only on the local node. Logical volumes with single-host snapshots are always activated exclusively because they can only be used on one node at once.You can deactivate individual logical volumes with the lvchange command, as described inSection 4.4.4, “Changing the Parameters of a Logical Volume Group”, For information on activating