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.
NOTE
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/haresourcesfor each private container to be failed over. For example, ifcontainer1andcontainer2are to be failed over together to the same node withnode1as the owning node, add the following entry to/etc/ha.d/haresources:node1 evms_failover::container1 evms_failover::container2
node1is the cluster node that owns this resource. The resource is failed over to the other node whennode1dies.Similarly, if
container3andcontainer4are to be failed over together to the same node withnode2as 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.cfand/etc/ha.d/haresourcesfiles are the same on all the nodes of the cluster.The heartbeat cluster manager must be restarted, as follows, after the
/etc/ha.d/haresourcesfile has been changed:/etc/init.d/heartbeat restart
NOTE
Do not add shared containers to the list of failover resources; doing so causes EVMS to respond unpredictably.