Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

The command object failover is for managing high-availability cluster services.

Usage

create failover node=<nodeName1,nodeName2> options="[keepalive=<msecs>] [initdead=<secs>] clusterid=<num1[,num2]> 
				ipaddress=<ipaddr1[,ipaddr2]> 
				hblink=<primary-net-if><standbyIpAddress>:<secondary-net-if><primaryIpAddress>[,..]
show failover
delete failover
bind failover
unbind failover
standby failover
takeover failover


Examples

 mayacli create failover node=server1.local,server2.local options=\"clusterid=3 ipaddress=10.1.1.111 \
			hblink=eth0\>10.1.1.101:eth0\>10.1..1.100,eth1\>192.168.100.101:eth1\>192.168.100.100\" 
 mayacli show failover


Output


 

# mayacli show fail
Node List                      : mayanas-ha1 mayanas-ha2
Virtual IP Address             : 10.9.0.100 
Resource ID                    : 5 
Failover Service               : running
Auto Failback                  : off
Heartbeat Links                : eth0 10.138.0.8
Heartbeat Parameters           : keepalive 1 deadtime 10 warntime 5 initdead 60

mayanas-ha2                    : 
    Virtual IP address         : 
    Resource ID                : 0
    Role                       : 
    Status                     : active
    Heartbeat Status           : eth0  up 
    Resource Status            : local
mayanas-ha1                    : 
    Virtual IP address         : 10.9.0.100
    Resource ID                : 5
    Role                       : active
    Status                     : active
    Heartbeat Status           : eth0  up 
    Resource Status            : transition
[root@mayanas-ha1 ~]# mayacli show fail
Node List                      : mayanas-ha1 mayanas-ha2
Virtual IP Address             : 10.9.0.100 
Resource ID                    : 5 
Failover Service               : running
Auto Failback                  : off
Heartbeat Links                : eth0 10.138.0.8
Heartbeat Parameters           : keepalive 1 deadtime 10 warntime 5 initdead 60

mayanas-ha2                    : 
    Virtual IP address         : 
    Resource ID                : 0
    Role                       : 
    Status                     : active
    Heartbeat Status           : eth0  up 
    Resource Status            : local
mayanas-ha1                    : 
    Virtual IP address         : 10.9.0.100
    Resource ID                : 5
    Role                       : active
    Status                     : active
    Heartbeat Status           : eth0  up 
    Resource Status            : local



  • No labels