/usr/share/heartbeat/hb_addnode is in heartbeat 1:3.0.5-3ubuntu2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | #!/bin/sh
#
# Support: linux-ha-dev@lists.tummy.com
# License: GNU General Public License (GPL)
# This script sets the node (where it was called) to *active*
# It forces the other node to release all the held resources and lets
# this node do a takeover.
#
# This script will only work for a two machine setup...
# More than that and you need to vote, or something...
HA_DIR=/etc/ha.d
. ${HA_DIR}/shellfuncs
usage() {
echo "usage: hb_addnode <node> <node> ..."
exit 1
}
if
[ $# = 0 ]
then
usage
fi
nodelist="$@"
if [ "$nodelist" = "--help" ]; then
usage
fi
ha_clustermsg <<-!MSG
t=addnode
nodelist=$nodelist
!MSG
|