排错集锦——LVS+Keepalive配置vip显示already uses address

Posted 遙遙背影暖暖流星

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了排错集锦——LVS+Keepalive配置vip显示already uses address相关的知识,希望对你有一定的参考价值。

问题:LVS+Keepalive配置vip显示already uses address

[root@lvs2 network-scripts]# ifup ens32:0
ERROR     : [/etc/sysconfig/network-scripts/ifup-eth] Error, some other host (00:0C:29:67:4A:E6) already uses address 192.168.100.100.

解决方法:
注释文件的内容

[root@dr2 ~]# vim /etc/sysconfig/network-scripts/ifup-eth

                   # if [ $? = 1 ]; then
                    #    ARPINGMAC=$(echo $ARPING |  sed -ne 's/.*\\[\\(.*\\)\\].*/\\1/p')
                     #   net_log $"Error, some other host ($ARPINGMAC) already uses address ${ipaddr[$idx]}."
                      #  exit 1

查看结果

root@lvs2 network-scripts]# systemctl stop  network
[root@lvs2 network-scripts]# systemctl start network
[root@lvs2 network-scripts]# 
[root@lvs2 network-scripts]# 
[root@lvs2 network-scripts]# ifup ens32:0
[root@lvs2 network-scripts]# 
[root@lvs2 network-scripts]# 
[root@lvs2 network-scripts]# 
[root@lvs2 network-scripts]# ifconfig 
ens32: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::9b29:1013:7b26:8b52  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:d5:4c:7a  txqueuelen 1000  (Ethernet)
        RX packets 398728  bytes 382590484 (364.8 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 161151  bytes 17344661 (16.5 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ens32:0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.100.100  netmask 255.255.255.255  broadcast 192.168.100.100
        ether 00:0c:29:d5:4c:7a  txqueuelen 1000  (Ethernet)

修改成功

以上是关于排错集锦——LVS+Keepalive配置vip显示already uses address的主要内容,如果未能解决你的问题,请参考以下文章

LVS的nat模式连接超时及无法连接主机排错总结

linux之LVS的DR模式搭建以及配置高可用管理LVS(heartbeat,keepalive)

解决Lvs+keepalived出现双VIP,即脑裂现象

keepalive专题

LVS(DR) + Keepalive实现负载均衡

Linux LVS+keepalive集群部署