Chapter 3. LVM Administration Overview
3.1. Creating LVM Volumes in a Cluster
To create logical volumes in a cluster environment, you use the Clustered Logical Volume Manager (CLVM), which is a set of clustering extensions to LVM. These extensions allow a cluster of computers to manage shared storage (for example, on a SAN) using LVM. In order to use CLVM, the Red Hat Cluster Suite software, including the
clmvd daemon, must be started at boot time, as described in
Section 1.3, “The Clustered Logical Volume Manager (CLVM)”.
Creating LVM logical volumes in a cluster environment is identical to creating LVM logical volumes on a single node. There is no difference in the LVM commands themselves, or in the LVM GUI interface. In order to enable the LVM volumes you are creating in a cluster, the cluster infrastructure must be running and the cluster must be quorate.
CLVM requires changes to the
lvm.conf file for cluster-wide locking. Information on configuring the
lvm.conf file to support clustered locking is provided within the
lvm.conf file itself. For information about the
lvm.conf file, see
Appendix B, The LVM Configuration Files.
Note
Shared storage for use in Red Hat Cluster Suite requires that you be running the cluster logical volume manager daemon (clvmd) or the High Availability Logical Volume Management agents (HA-LVM). If you are not able to use either the clvmd daemon or HA-LVM for operational reasons or because you do not have the correct entitlements, you must not use single-instance LVM on the shared disk as this may result in data corruption. If you have any concerns please contact your Red Hat service representative.
For information on how to install Red Hat Cluster Suite and set up the cluster infrastructure, see Configuring and Managing a Red Hat Cluster.