Activating And Deactivating Volume Groups; Removing Volume Groups; Splitting A Volume Group - Red Hat LVM ADMINISTRATOR 5.0 Administrator's Manual

Table of Contents

Advertisement

Chapter 4. LVM Administration with CLI Commands
There are several volume group parameters that you can change for an existing volume group
with the
command. Primarily, however, this command is used to deactivate and
vgchange
activate volume groups, as described in
Groups",
The following command changes the maximum number of logical volumes of volume group
to 128.
vg00
vgchange -l 128 /dev/vg00
For a description of the volume group parameters you can change with the
see the
(8) man page.
vgchange

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
(
) argument of the
--available
The following example deactivates the 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
Section 4.4, "Changing the Parameters of a Logical Volume
activating logical volumes on individual nodes in a cluster, see
Volumes on Individual Nodes in a

3.8. Removing Volume Groups

To remove a volume group that contains no logical volumes, use the
# vgremove officevg
Volume group "officevg" successfully removed
30
Section 3.7, "Activating and Deactivating Volume
command.
vgchange
my_volume_group
Cluster".
vgchange
.
command, as described in
lvchange
Group", For information on
Section 8, "Activating Logical
vgremove
command,
-a
command.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Configuration and administration 5.0

Table of Contents