我的haresource配置如下:
loadbalancer lvsDR ldirecotrd
lvsDR为一脚本,放在/etc/init.d下,内容为:
#!/bin/sh
#create in 20060812 by ghb
# description: start LVS of Directorserver
VIP=192.168.1.200
RIP1=192.168.1.175
RIP2=192.168.1.176
RIP3=192.168.1.252
#RIPn=192.168.0.128~254
GW=192.168.1.1
. /etc/rc.d/init.d/functions
case "$1" in
start)
echo " start LVS of DirectorServer"
# set the Virtual IP Address
/sbin/ifconfig eth0:0 $VIP broadcast $VIP netmask 255.255.255.255 up
/sbin/route add -host $VIP dev eth0:0
#Clear IPVS table
您好,我在配置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