Chapter 4. LVM Administration with CLI Commands
38
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 Tags
. You can also specify activation of nodes in the configuration file, which
is described in
Appendix B, The LVM Configuration Files
.
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.
Содержание CLUSTER SUITE 4.7 - CLUSTER LVM ADMINISTRATORS
Страница 1: ...Red Hat Cluster Suite 4 7 Cluster Logical Volume Manager LVM Administrator s Guide ...
Страница 6: ...vi ...
Страница 12: ...xii ...
Страница 24: ...12 ...
Страница 62: ...50 ...
Страница 72: ...60 ...
Страница 82: ...70 ...
Страница 84: ...72 ...
Страница 86: ...74 ...
Страница 96: ...84 ...
Страница 103: ...91 Appendix E Revision History Revision History Revision 1 0 ...
Страница 104: ...92 ...
Страница 108: ...96 ...