Installation guide

described in Section F.2, “ Configuring HA-LVM Failover with Tagging .
F.1. Configuring HA-LVM Failover wit h CLVM (preferred)
To set up HA-LVM failover (using the preferred CLVM variant), perform the following steps:
1. Ensure that your system is configured to support CLVM, which requires the following:
The High Availability Add-On and Resilient Storage Add-On are installed, including the
the cmirro r package if the CLVM logical volumes are to be mirrored.
The l o cki ng _type parameter in the global section of the /etc/l vm/l vm. co nf file is
set to the value '3'.
The High Availability Add-On and Resilient Storage Add-On software, including the
cl vmd daemon, must be running. For CLVM mirroring, the cmirro rd service must be
started as well.
2. Create the logical volume and file system using standard LVM and file system commands, as
in the following example.
# pvcreate /dev/sd [cd e]1
# vgcreate -cy shared_vg /d ev/sd [cd e]1
# l vcreate -L 10 G -n ha_l v shared_vg
# mkfs. ext4 /d ev/shared _vg /ha_lv
# l vchang e -an shared _vg /ha_l v
For information on creating LVM logical volumes, refer to Logical Volume Manager
Administration.
3. Edit the /etc/cluster/cluster. co nf file to include the newly created logical volume as a
resource in one of your services. Alternately, you can use Co n g a or the ccs command to
configure LVM and file system resources for the cluster. The following is a sample resource
manager section from the /etc/cl uster/cluster. co nf file that configures a CLVM
logical volume as a cluster resource:
<rm>
<failoverdomains>
<failoverdomain name="FD" ordered="1" restricted="0">
<failoverdomainnode name="neo-01" priority="1"/>
<failoverdomainnode name="neo-02" priority="2"/>
</failoverdomain>
</failoverdomains>
<resources>
<lvm name="lvm" vg_name="shared_vg" lv_name="ha-lv"/>
<fs name="FS" device="/dev/shared_vg/ha-lv" force_fsck="0"
force_unmount="1" fsid="64050" fstype="ext4" mountpoint="/mnt"
options="" self_fence="0"/>
</resources>
<service autostart="1" domain="FD" name="serv"
recovery="relocate">
Red Hat Ent erprise Linux 6 Clust er Administ rat ion
220