EVMS supports the Linux-HA cluster manager in EVMS V2.0 and later. Support for the RSCT cluster manager is also available as of EVMS V2.1, but is not as widely tested.
Ensure that evms_activate is called in one of the startup scripts before the heartbeat startup script is called. If evms_activate is not called, failover might not work correctly.
Follow these steps to set up failover and failback of a private container:
Add an entry in /etc/ha.d/haresources for each private container to be failed over. For example, if container1 and container2 are to be failed over together to the same node with node1 as the owning node, add the following entry to /etc/ha.d/haresources:
node1 evms_failover::container1 evms_failover::container2
node1 is the cluster node that owns this resource. The resource is failed over to the other node when node1 dies.
Similarly, if container3 and container4 are to be failed over together to the same node with node2 as the owning node, then add the following entry to /etc/ha.d/haresources:
node2 evms_failover::container3 evms_failover::container4
Refer to http://www.linux-ha.org/download/GettingStarted.html for more details on the semantics of resource groups.
Validate that the /etc/ha.d, /etc/ha.cf and /etc/ha.d/haresources files are the same on all the nodes of the cluster.
The heartbeat cluster manager must be restarted, as follows, after the /etc/ha.d/haresources file has been changed:
Do not add shared containers to the list of failover resources; doing so causes EVMS to respond unpredictably.