我的LVS+heartbeat+ldirectord配置文件,有问题吗?

两台机器SLES10,应用为apache,想实现负载和HA,现在两台机器都安装了LVS+heartbeat+ldirectord,配置文件如下:
机器A主机名buffalo IP192.168.201.10 ,B为hippo IP192.168.201.20 ,两台机器用串口线连接,配置文件都一样
/etc/ha.d/ha.cf

logfile /var/log/ha-log
logfacility local0
keepalive 2
deadtime 30
warntime 10
initdead 120
udpport 694
baud 19200
serial /dev/ttyS0 # Linux
bcast eth0 # Linux
auto_failback on
watchdog /dev/watchdog
node buffalo
node hippo

/etc/ha.d/haresources

hippo IPaddr::192.168.201.100/32/eth0/192.168.201.100 ldirectord

/etc/ha.d/ldirectord.cf

checktimeout=3
checkinterval=1
autoreload=yes
logfile="/var/log/ldirectord.log"
quiescent=yes

virtual=192.168.201.100:80
real=192.168.201.10:80 gate
real=192.168.201.20:80 gate
service=http
request="test.html"
receive="Test Page"
scheduler=wrr
persistent=300
netmask=255.255.255.0
protocol=tcp

/etc/sysctl.conf

net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.ip_forward = 1
net.ipv4.conf.eth0.arp_ignore = 1
net.ipv4.conf.eth0.arp_announce = 2

/etc/ipvsadm.rules

ipvsadm -C
ipvsadm -A -t 192.168.201.100:80 -s rr
ipvsadm -a -t 192.168.201.100:80 -r 192.168.201.10:80 -g -w 1
ipvsadm -a -t 192.168.201.100:80 -r 192.168.201.20:80 -g -w 1

/etc/ha.d/authkeys

auth 2
2 sha1 HI!

测试页面test.html在两台机器的htdocs目录都存在

现在的问题:
1、192.168.201.20的ha-log日志显示ttyS0无法通讯(我在A机上cat /dev/ttyS0,在B机上echo "abc">/dev/ttyS0,A机无显示)
2、浏览器访问192.168.201.100时只显示192.168.201.10的页面,将192.168.201.10的apache停掉后192.168.201.100无法访问

高手请指教!!

Forums:

1 检查一下串口线接的接口,或试一下其它的接口.如果都不行,那有可能是线的问题.是线的类型不对.串口线有交叉线,有直连线.具体是用哪一种,我也不太确定了.可以两种都买一条回来试,就没问题了.

2 第二个问题,可能是那台 20有问题.你可以用ipvsadm查看一下状态的.你也可以先测试好两台服务器都可正常提供web服务.

randomness