Revision [3660]

Last edited on 2010-03-09 02:16:06 by KenFong
Additions:
I simply add this to /etc/ha.d/harc:
ha_log "Turning off flow control..."
When serial connection is correctly setup, you may tap into its conversation with
cat < /dev/ttyS0


Revision [3555]

Edited on 2009-10-21 22:24:59 by WikiAdmin
Additions:
==Serial null modem==
The above example already includes serial connections. Once the cable is connected and heartbeat started, you may tap into heartbeat's data by catting /dev/ttyS0 (or whatevery connections you're on)
cat If you need to test your serial connection, run the above on the recipient and then run the following on the sending machine:
echo hello >/dev/ttyS0
Deletions:
==Serial ull modem==


Revision [3553]

Edited on 2009-10-21 19:19:39 by WikiAdmin
Additions:
==create an authkeys file==
auth 1
1 sha1 some-secret-here
# successful ping response from any hosts will be treated as positive reply
ping_group ipfail-ping 1.2.3.4 5.6.7.8
node prod-ha-mysql01 prod-ha-mysql02
Deletions:
ping 64.106.198.225
node prod-ha-mysql01
node prod-ha-mysql02


Revision [2393]

Edited on 2009-07-14 23:03:50 by WikiAdmin
Additions:
==heartbeat commands==
/usr/lib64/heartbeat/hb_standby
/usr/lib64/heartbeat/hb_takeover


Revision [2281]

Edited on 2009-04-16 00:41:04 by WikiAdmin
Additions:
# stonith_host * plugin_name myhostname ilo_ip ilo_login ilo_pwd ilo_reset ilo_version action


Revision [2280]

Edited on 2009-04-16 00:39:56 by WikiAdmin
Additions:
%%(bash;expect script to stonith via ilo ssh - replaced by the riloe plugin above)
Deletions:
%%(bash;expect script to stonith via ilo ssh)


Revision [2279]

Edited on 2009-04-16 00:39:32 by WikiAdmin
Additions:
udpport 3740
baud 9600
serial /dev/ttyS0
ucast bond0 192.168.0.227
ucast eth3 10.0.0.227
auto_failback off
respawn hacluster /usr/lib64/heartbeat/ipfail
ping 64.106.198.225
auto_failback off
node prod-ha-mysql01
node prod-ha-mysql02
stonith_host * external/riloe prod-ha-mysql02 10.0.0.225 Administrator xxxxxxx 1 2.0 reset
%%(text;hapm.conf)
socket=127.0.0.1:3306
time=60
graceful_time=55
heartbeat=/etc/init.d/heartbeat
heartbeatpid=/var/run/heartbeat.pid
%%(bash;expect script to stonith via ilo ssh)
Deletions:
udpport 11334
bcast eth2
auto_failback on
realtime on
stonith external /etc/ha.d/external.cfg
node node1.domain.com
node node2.domain.com
ping 222.222.222.254
%%(text;external.cfg)
node2 /opt/scripts/stonith-node2.sh
%%(bash;stonith-node2.sh)


Revision [2278]

Edited on 2009-04-15 08:35:37 by WikiAdmin
Additions:
==Serial ull modem==
It may be necessary to turn off flow control if you have a cable that doesn't meet the spec. Not 100% sure about this.
stty -F /dev/ttyS0 -crtscts


Revision [1110]

Edited on 2007-10-26 17:01:12 by WikiAdmin
Additions:
%%(text;external.cfg)
node2 /opt/scripts/stonith-node2.sh
%%(bash;stonith-node2.sh)
#!/bin/bash
RECIPIENTS="sysadmin@domain.com"
ME="node1.domain.com"
YOU="node2.domain.com"
/bin/echo "$ME initiating forced restart of $YOU via ILO" | mail -s "$ME invokes STONITH" $RECIPIENTS
/opt/scripts/ilokill-node02.sh 1> /dev/null 2> /dev/null
exit 0


Revision [1109]

Edited on 2007-10-26 16:50:18 by WikiAdmin
Additions:
==Heartbeat config==
%%(text;ha.cf)
debugfile /var/log/ha-debug-log
debug 0
logfile /var/log/ha-log
udpport 11334
bcast eth2
auto_failback on
warntime 6
deadtime 13
initdead 20
keepalive 2
realtime on
watchdog /dev/watchdog
stonith external /etc/ha.d/external.cfg
node node1.domain.com
node node2.domain.com
ping 222.222.222.254


Revision [1108]

The oldest known version of this page was created on 2007-10-26 16:49:07 by WikiAdmin
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki