User Tools

Site Tools


linuxlinuxha
LinuxHA
Files

Config file:

/etc/ha.d/ha.cf

Resources file:

/etc/ha.d/haresources
Commands

cl_status:

Subcommand Action
cl_status rscstatus Show the status of cluster resources. Status will be one of: local, foreign, all or none.
cl_status hbstatus Indicate if heartbeat is running on the local system.
cl_status listnodes List the nodes in the cluster
cl_status nodetype TYPE List the nodes of the given type. Currently the available types are ping and normal.
cl_status listhblinks NODENAME List the network interfaces used as heartbeat links. Nodename should be as per the ha.cf file for the cluster.
cl_status hblinkstatus NODENAME LINKNAME Show the status of a heartbeat link. Nodename should be as per the ha.cf file for the cluster. Linkname should be as per the output of the listhblinks subcomand.

Migrating resources:

Command Run local action Equivalent remote command
hb_standby local Migrate preferred resources to remote hb_takeover foreign
hb_standby foreign Migrate non-preferred remote resources to remote hb_takeover local
hb_standby all Migrate all resources to remote hb_takeover all
hb_standby same as above hb_takeover
linuxlinuxha.txt · Last modified: 2017/10/27 01:09 by 127.0.0.1