as4 作director,freebsd作realserver产生的问题

您好,我在配置lvs集群时出现了如下问题:
director为as4,名为loadbalancer,备份节点也采用as4系统,名为bakup,realserver采用freebsd,配置后,在未启动heartbeat时,通过director可以直接指向realserver,但loadbalancer和bakup同时启动heartbeat时,在ldirectord的日志中产生了如下错误:
Quiescent real server: 192.168.1.175:80 ( x 192.168.1.200:80) (Weight set to 0)
怎么也指向不成功,其中直接打入http://192.168.1.175,会显示正常内容.
另外director上输入ipvsadm,如下所示:
IP Virtual Server version 1.2.0 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 192.168.1.200:http rr
-> 192.168.1.175:http
不知道是哪里出了问题
在realserver上,只对/etc/rc.conf进行了如下配置:
sshd_enable="YES"
ifconfig_de0="inet 192.168.1.175 netmask 255.255.255.0"
ifconfig_lo0_alias0="inet 192.168.1.200 netmask 255.255.255.255"
defaultrouter="192.168.1.1"
hostname="test.test"
apache_enable="YES"
未作其他任何配置,这样会不会产生问题
另外,在启动heartbeat时,我查看了下ldirectord的状态,为什么ldirectord的显示会如下所示呢:
ldirectord stale pid file /var/run/ldirectord.ldirectord.pid for /etc/ha.d/ldirectord.cf
ldirectord is stopped for /etc/ha.d/ldirectord.cf

基中ldirectord的配置如下:
checktimeout=3
checkinterval=1
fallback=127.0.0.1:80
autoreload=yes
logfile="/var/log/ldirectord.log"
#logfile="local0"
quiescent=no

# A sample virual with a fallback that will override the gobal setting
virtual=192.168.1.200:80
real=192.168.1.175:80 gate
real=192.168.1.176:80 gate
real=192.168.1.252:80 gate
# real=192.168.6.6:80 gate
fallback=127.0.0.1:80 gate
service=http
request="index.html"
receive="Test Page"
virtualhost=loadbalancer
scheduler=wlc
#persistent=600
#netmask=255.255.255.255
protocol=tcp

请帮忙分析下,谢谢~

Forums:

ldirector 认为bsd 已经死了,所以将它的weight 设为0.
这样bsd 就没有流量了。
估计错在这里

request="index.html"
receive="Test Page"

文件以及内容在BSD上存在并且正确么?

vsnat 下,*bsd 和其他操作系统没有什么不同。

在realserver上存在index.html,直接访问http://192.168.1.175:80/index.html是可以得到信息的,不知道以上设置是否错误?

Ab fab my gooldy man.

The hoestny of your posting is there for all to see http://gmlote.com [url=http://bacjueiv.com]bacjueiv[/url] [link=http://wincsdw.com]wincsdw[/link]

应该是ipvsadm没有启动或者是ldirectord没有启动
你试试/etc/init.d/ipvsadm start
/etc/init.d/ldirectord start
ldirectord ldirectord.cf start

我也遇到这个问题,LZ 最后怎么解决了呢?
ldirectord stale pid file /var/run/ldirectord.ldirectord.pid for /etc/ha.d/ldirectord.cf
ldirectord is stopped for /etc/ha.d/ldirectord.cf

randomness