Activating Logical Volumes On Individual Nodes In A Cluster; Customized Reporting For Lvm - Red Hat ENTERPRISE LINUX 5.1 - LVM ADMINISTRATION Manual

Table of Contents

Advertisement

Chapter 4. LVM Administration with CLI Commands
pvmove /dev/sdc1
The following command moves just the extents of the logical volume MyLV.
pvmove -n MyLV /dev/sdc1
Since the pvmove command can take a long time to execute, you may want to run the command in
the background to avoid display of progress updates in the foreground. The following command moves
all extents allocated to to the physical volume /dev/sdc1 over to /dev/sdf1 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
4.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 pvmove command is not cluster-aware and 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 lvchange -aey command.
Alternatively, you can use lvchange -aly command to activate logical volumes only on the local
node but not exclusively. You can later activate them on additional nodes concurrently.
You can also activate logical volumes on individual nodes by using LVM tags, which are described in
Appendix C, LVM Object
Appendix B, The LVM Configuration
is described in

4.9. Customized Reporting for LVM

You can produce concise and customizable reports of LVM objects with the pvs, lvs, and vgs
commands. The reports that these commands generate include one line of output for each object.
Each line contains an ordered list of fields of properties related to the object. There are five ways to
select the objects to be reported: by physical volume, volume group, logical volume, physical volume
segment, and logical volume segment.
The following sections provide:
• A summary of command arguments you can use to control the format of the generated report.
• A list of the fields you can select for each LVM object.
• A summary of command arguments you can use to sort the generated report.
38
Tags. You can also specify activation of nodes in the configuration file, which
Files.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise linux 5.1 cluster logical volume manager

Table of Contents