Deploy Automatic Virtual IP Failover
Corosync and Pacemaker must be installed on clusters before integrating with Private Cloud Appliance and testing failover of the secondary IP.
Define the Heartbeat Settings on Clusters and Integrate with Private Cloud Appliance X9-2 Instances for VIP Failover
Setup the Cluster Resource
To setup the cluster resource, run:
pcs resource create <Cluster-Resource-Name> ocf:heartbeat:IPaddr2 ip=10.212.15.13 cidr_netmask=24 op monitor interval=20
Note:
- The
cidr_netmask=24
in the Pacemaker command is dependent on the subnet size being /24. - The
ip=10.212.15.13
is the secondary private IP.
Example:
pcs status
Cluster name: HACluster
Stack: corosync
Current DC: a-node2 (version 1.1.23-1.0.1.el7_9.1-9acf116022) - partition with quorum
Last updated: Fri Aug 19 03:34:51 2022
Last change: Fri Aug 19 03:34:44 2022 by root via cibadmin on a-node1
2 nodes configured
1 resource instance configured
Online: [ a-node1 a-node2 ]
Full list of resources:
HAFailover (ocf::heartbeat:IPaddr2): Started a-node1
Daemon Status:
corosync: active/disabled
pacemaker: active/disabled
pcsd: active/enabled