Support Policies for RHEL High Availability Clusters - LVM in a Cluster
Contents
Overview
Applicable Environments
- Red Hat Enterprise Linux (RHEL) 6 or 7 with the High Availability Add-On
Useful References and Guides
Introduction
This guide offers Red Hat's policies around the usage of LVM within RHEL High Availability clusters. Users of RHEL High Availability clusters should adhere to these policies in order to be eligible for support from Red Hat with the appropriate product support subscriptions.
Policies
Cluster management of shared LVM: Clusters that share block storage devices and manage them with LVM must use one of the following methods for managing shared access to these devices in order to receive support from Red Hat:
-
HA-LVM: Shared volumes are only activated by the cluster resource manager using an
LVMresource (withpacemaker) orlvmresource (withrgmanager). Such an arrangement requires usage of avolume_listin the LVM configuration or usage ofclvmd(see below) to prevent improper activation or access of volumes outside cluster control. -
clvmdin Resilient Storage clusters: Clusters with the Resilient Storage Add-On haveclvmd- provided by thelvm2-clusterpackage - as an additional option for managing shared LVM volumes within a cluster.clvmdmay either be combined with HA-LVM, or can manage activation and access of shared volumes directly.
Red Hat may be unable to provide support with cluster environments sharing LVM devices that do not use one of these facilities.
LVM RAID: Red Hat's support of shared LVM RAID volumes - volumes using any "raid" segment type for mirroring - in a High Availability cluster is subject to the following conditions:
- RHEL 7 with
pacemakerand theLVMresource type: Supported by Red Hat withresource-agents-3.9.5-54.el7or later, only when using tagging with avolume_list. - RHEL 6 with
pacemakerand theLVMresource type: Supported by Red Hat withresource-agents-3.9.5-34.el6or later, only when using tagging with avolume_list. - RHEL 6 with
rgmanagerand thelvmresource type: Supported by Red Hat withresource-agents-3.9.2-21.el6or later, only when usingtaggingwith avolume_list. - Any version using
clvmdfrom Resilient Storage: Red Hat does not support usage of LVM RAID volumes when the volume is marked as "clustered" with the 'c' attribute, indicating it is to be managed byclvmd.
LVM mirroring (non-RAID): Red Hat supports usage of shared LVM mirorred volumes - those of the segment type mirror - within RHEL High Availability clusters.
Use of cache logical volumes in a cluster: Red Hat only began supporting cache volumes in general (not cluster-specific) in RHEL 7 Update 1 and RHEL 6 Update 7. These minimum releases apply for usage of such volumes in RHEL High Availability clusters as well.
Cache volumes can only be deployed in non-clustered volume groups - that is, VGs that are managed via an HA-LVM system through an LVM resource (pacemaker) or lvm resource (rgmanager) and do not rely on clvmd from the Resilient Storage Add-On.
Cache volumes shared by a cluster must use writethrough cache mode by way of allocation { cache_mode = "writethrough" } in /etc/lvm/lvm.conf.
lvm2-lvmetad: With releases of lvm2 that provide support for lvm2-lvmetad, clusters sharing access to LVM volumes must have lvm2-lvmetad disabled in the configuration and as a service to prevent problems resulting from inconsistent metadata caching throughout the cluster.
- RHEL 7 and 6:
lvm2-lvmetadcan be disabled in/etc/lvm/lvm.confin theglobalsection withuse_lvmetad=0. -
RHEL 7:
lvm2-lvmetadcan be disabled and stopped at a service level usingsystemctl:# systemctl disable lvm2-lvmetad # systemctl stop lvm2-lvmetad -
RHEL 6:
lvm2-lvmetadcan be disabled at stopped at a service level usingchkconfigandservice:# chkconfig lvm2-lvmetad off # service lvm2-lvmetad stop
RHEL 6 ocf:heartbeat:LVM resources with exclusive=true and clvmd: The ocf:heartbeat:LVM resource type in RHEL 6 pacemaker clusters must only be used with non-clustered volume groups if the resource must be exclusively-activated (using attribute exclusive=true). Red Hat does not support the usage of LVM resources with exclusive=true managing a clustered volume group in RHEL 6. Exclusive volume groups must use the tagging method of HA-LVM management, which is achieved by ensuring the volume group does not have the clustered attribute enabled on it.
