求助lvs Host name conflict, retrying with <linux-2389> Withdrawing address record for egistering new address record for
lvs脚本如下
==========================================================================
#!/bin/bash
# description: start LVS of DirectorServer
#Written by :NetSeek
#http://www.linuxtone.org
GW=192.168.0.1
# website director vip.
WEB_VIP=192.168.0.33
WEB_RIP1=192.168.0.17
WEB_RIP2=192.168.0.11
. /etc/rc.d/init.d/functions
logger $0 called with $1
case "$1" in
start)
        # Clear all iptables rules.
        /sbin/iptables -F
        # Reset iptables counters.
        /sbin/iptables -Z
        # Clear all ipvsadm rules/services.
        /sbin/ipvsadm -C
#set lvs vip for dr
        /sbin/ipvsadm --set 3600 30 60
        /sbin/ifconfig ETH0:0 $WEB_VIP broadcast $WEB_VIP netmask 255.255.255.255 up
        /sbin/route add -host $WEB_VIP dev ETH0:0
        /sbin/ipvsadm -A -t $WEB_VIP:8088 -s rr -p 50
        /sbin/ipvsadm -a -t $WEB_VIP:8088 -r $WEB_RIP1:8088 -g -w 1
        /sbin/ipvsadm -a -t $WEB_VIP:8088 -r $WEB_RIP2:8088 -g -w 1
        touch /var/lock/subsys/ipvsadm >/dev/null 2>&1
        # set Arp
        /sbin/arping -I ETH0 -c 5 -s $WEB_VIP $GW >/dev/null 2>&1
       ;;
stop)
        /sbin/ipvsadm -C
        /sbin/ipvsadm -Z
        ifconfig ETH0:0 down
        route del $WEB_VIP  >/dev/null 2>&1
        rm -rf /var/lock/subsys/ipvsadm >/dev/null 2>&1
        /sbin/arping -I ETH0 -c 5 -s $WEB_VIP $GW
        echo "ipvsadm stoped"
       ;;
status)
        if [ ! -e /var/lock/subsys/ipvsadm ];then
                echo "ipvsadm is stoped"
                exit 1
        else
                ipvsadm -ln
                echo "..........ipvsadm is OK."
        fi
      ;;
*)
        echo "Usage: $0 {start|stop|status}"
        exit 1
esac
exit 0
=========================================================================
每次已启动就报错如下:
Apr 24 11:05:52 localhost avahi-daemon[1396]: Withdrawing address record for fe80::20c:29ff:fe03:35ac on ETH0.
Apr 24 11:05:52 localhost avahi-daemon[1396]: Withdrawing address record for 192.168.0.7 on ETH0.
Apr 24 11:05:52 localhost avahi-daemon[1396]: Host name conflict, retrying with
Apr 24 11:05:52 localhost avahi-daemon[1396]: Registering new address record for fe80::20c:29ff:fe03:35ac on ETH0.*.
Apr 24 11:05:52 localhost avahi-daemon[1396]: Registering new address record for 192.168.0.33 on ETH0.IPv4.
Apr 24 11:05:52 localhost avahi-daemon[1396]: Registering new address record for 192.168.0.7 on ETH0.IPv4.
Apr 24 11:05:52 localhost avahi-daemon[1396]: Registering HINFO record with values 'X86_64'/'LINUX'
请问这是什么原因? 非常感谢!
 
      
easonlau
周三, 2015-05-06 04:32
Permalink
没人知道吗?急啊。
没人知道吗?急啊。。