man hb_standby (Commandes) - hb_standby is a simple linux-ha shell script. It issues a failover from the node where it is running to the other node, if available.

NAME

hb_standby - hb_standby is a simple linux-ha shell script. It issues a failover from the node where it is running to the other node, if available.

SYNOPSIS

hb_standby [all|foreign|local|failback]

DESCRIPTION

The full path is usually /usr/lib/heartbeat/hb_standby. To get a list of the options to hb_standby issue the command, "/usr/lib/heartbeat/hb_standby --help" . NOTE: For historical reasons, unlike most scripts where failure to specify an option gives you the list of possible options, failure to provide an option to hb_standby is equivalent to "hb_standby all".

The meaning of the options is relative. For this sample haresources file:

nodea drbddisk::drbd0 Filesystem::/dev/drbd0::/local/groups::ext3 10.0.0.1 smb

nodeb drbddisk::drbd1 Filesystem::/dev/drbd1::/local/ldap::ext3 10.0.0.2 ldap

hb_standby local
When run on nodea, means migrate any resources that nodea is the preferred node for. In this case Samba would be shutdown, the IP address 10.0.0.1 would be released, /local/groups would be unmounted, /dev/drbd0 would be placed into secondary and nodeb would take all these services over. When run on nodeb, OpenLDAP would shutdown, 10.0.0.2 would be released, /local/ldap would be unmounted, /dev/drbd1 would be placed into Secondary mode and nodea would take over all these services.
hb_standby foreign
When run on nodea, means migrate any resources that nodea is NOT the preferred node for. In this case OpenLDAP would shutdown, 10.0.0.2 would be released, /local/ldap would be unmounted, /dev/drbd1 would be placed into Secondary mode and nodeb would take over all these services. When run on nodeb, Samba would be shutdown, the IP address 10.0.0.1 would be released, /local/groups would be unmounted, /dev/drbd0 would be placed into secondary and nodea would take all these services over.
hb_standby all
Regardless of which node it's run on means to release all resources so the other node takes over all resources.
hb_standby
Without an argument is the same as "hb_standby all"
hb_standby failback
Same as "hb_standby foreign"

SEE ALSO

DOCUMENTATION

More information may be found at http://www.linux-ha.org/hb_5fstandby

AUTHORS

linux-ha -- Alan Robertson <alanr@unix.sh> et al.

man page -- Guochun Shi <gshi@ncsa.uiuc.edu>