Installation guide

Table Of Contents
The following example deactivates the volume group my_volume_group.
vgchange -a n my_volume_group
If clustered locking is enabled, add ’e’ to activate or deactivate a volume group exclusively on
one node 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 in Sec-
tion 4.4, “Changing the Parameters of a Logical Volume Group”, For information on activating
logical volumes on individual nodes in a cluster, see Section 8, “Activating Logical Volumes on
Individual Nodes in a Cluster”.
3.8. Removing Volume Groups
To remove a volume group that contains no logical volumes, use the vgremove command.
# vgremove officevg
Volume group "officevg" successfully removed
3.9. Splitting a Volume Group
To split the physical volumes of a volume group and create a new volume group, use the vgs-
plit command.
Logical volumes cannot be split between volume groups. Each existing logical volume must be
entirely on the physical volumes forming either the old or the new volume group. If necessary,
however, you can use the pvmove command to force the split.
The following example splits off the new volume group smallvg from the original volume group
bigvg.
# vgsplit bigvg smallvg /dev/ram15
Volume group "smallvg" successfully split from "bigvg"
3.10. Combining Volume Groups
Two combine two volume groups into a single volume group, use the vgmerge command. You
can merge an inactive "source" volume with an active or an inactive "destination" volume if the
physical extent sizes of the volume are equal and the physical and logical volume summaries of
both volume groups fit into the destination volume groups limits.
The following command merges the inactive volume group my_vg into the active or inactive
volume group databases giving verbose runtime information.
vgmerge -v databases my_vg
3.11. Backing Up Volume Group Metadata
3.8. Removing Volume Groups
26