Hi,
Thanks to Horms and Juri, LVS/DR now works fine with Failover.
I thought it might be useful to post my final config.
I set the baud rate to 9600 as this is the default on VA-Linux machines.
I use ppp for heartbeat, so the ha.cf files differ in this one respect for the
PPP IP addresses.
Shaun
________
| |
| client | 192.168.31.101/24
|________|
|
|
|
|
| vs1 192.168.31.157/24 (eth0:0)
| 192.168.31.148/24 (eth0)
|----------------- __________
| | | (lvsmain)
(switch)--------| fizz | VA Linux 2130
192.168.31.150/24 (eth0)
| | | | |__________| 2.2.14
______________
| | | | |
| (lvsbackup)
| | | | ---------------------------------------| fazz
| VA Linux 2130
| | |
|______________| 2.2.14
-----------------| | |
| | |----------------------
| | |
| | |
192.168.31.145/24 192.168.31.146/24 192.168.31.147/24
Real Servers
=============================== authkeys =====================
auth 2
#1 crc
2 sha1 Qsd1.*TG
#3 md5 Hello!
=============================================================
================== ldirector.cf ========================================
timeout=3
checkinterval=60
fallback=127.0.0.1:80
virtual=192.168.31.157:80
real=192.168.31.147:80 gate
real=192.168.31.146:80 gate
real=192.168.31.145:80 gate
service=http
request="test.html"
receive="Test Page"
scheduler=wlc
protocol=tcp
=======================================================================
======================= haresources ===================================
vs1.information-innovation.com IPaddr::192.168.31.157/24
ldirectord::ldirectord.cf
========================================================================
=============================== ha.cf (fizz) ==================================
debugfile /var/log/ha-debug
logfile /var/log/ha-log
keepalive 1
deadtime 3
ppp-udp /dev/ttyS0 10.0.0.1
baud 9600
udp eth0
nice_failback on
node fizz.information-innovation.com
node fazz.information-innovation.com
==========================================================================
=============================== ha.cf (fazz) ==================================
debugfile /var/log/ha-debug
logfile /var/log/ha-log
keepalive 1
deadtime 3
ppp-udp /dev/ttyS0 10.0.0.2
baud 9600
udp eth0
nice_failback on
node fizz.information-innovation.com
node fazz.information-innovation.com
==========================================================================
|