Activating Logical Volumes On Individual Nodes In A Cluster - Red Hat LVM ADMINISTRATOR 5.0 Administrator's Manual

Table of Contents

Advertisement

Chapter 4. LVM Administration with CLI Commands
The
command breaks up the data to be moved into sections and creates a temporary
pvmove
mirror to move each section. For more information on the operation of the
see the
(8) man page.
pvmove
Because the
command uses mirroring, it is not cluster-aware and needs exclusive
pvmove
access to a volume. For information on activating logical volumes on individual nodes in a
cluster, see
Section 8, "Activating Logical Volumes on Individual Nodes in a
The following command moves all allocated space off the physical volume
free physical volumes in the volume group:
pvmove /dev/sdc1
The following command moves just the extents of the logical volume
pvmove -n MyLV /dev/sdc1
Since the
command can take a long time to execute, you may want to run the command
pvmove
in the background to avoid display of progress updates in the foreground. The following
command moves all extents allocated to to the physical volume
in the background.
pvmove -b /dev/sdc1 /dev/sdf1
The following command reports the progress of the move as a percentage at five second
intervals.
pvmove -i5 /dev/sdd1
8. Activating Logical Volumes on Individual Nodes in a
Cluster
If you have LVM installed in a cluster environment, you may at times need to activate logical
volumes exclusively on one node. For example, the
needs exclusive access to a volume. LVM snapshots require exclusive access to a volume as
well.
To activate logical volumes exclusively on one node, use the
Alternatively, you can use
local node but not exclusively. You can later activate them on additional nodes concurrently.
46
command to activate logical volumes only on the
lvchange -aly
.
MyLV
/dev/sdc1
command is not cluster-aware and
pvmove
lvchange -aey
command,
pvmove
Cluster".
to other
/dev/sdc1
over to
/dev/sdf1
command.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Configuration and administration 5.0

Table of Contents