189 8069 5689

keepalived启动报错该如何解决

这期内容当中小编将会给大家带来有关keepalived启动报错该如何解决,文章内容丰富且以专业的角度为大家分析和叙述,阅读完这篇文章希望大家可以有所收获。

创新互联公司是专业的班戈网站建设公司,班戈接单;提供成都网站设计、网站建设,网页设计,网站设计,建网站,PHP网站建设等专业做网站服务;采用PHP框架,可快速的进行班戈网站开发网页制作和功能扩展;专业做搜索引擎喜爱的网站,专业的做网站团队,希望更多企业前来合作!

启动keepalived报错,Keepalived_vrrp: ip address associated with VRID not present in received packet
/var/log/messages里的报错信息如下:

Mar 14 01:29:21 test Keepalived_vrrp[819]: VRRP_Instance(MySQL-ha) ignoring received advertisment...
Mar 14 01:29:22 test Keepalived_vrrp[819]: ip address associated with VRID not present in received packet : 192.168.32.53
Mar 14 01:29:22 test Keepalived_vrrp[819]: one or more VIP associated with VRID mismatch actual MASTER advert
Mar 14 01:29:22 test Keepalived_vrrp[819]: bogus VRRP packet received on bond0 !!!
Mar 14 01:29:22 test Keepalived_vrrp[819]: VRRP_Instance(mysql-ha) ignoring received advertisment...
Mar 14 01:29:23 test Keepalived_vrrp[819]: ip address associated with VRID not present in received packet : 192.168.32.53
Mar 14 01:29:23 test Keepalived_vrrp[819]: one or more VIP associated with VRID mismatch actual MASTER advert
Mar 14 01:29:23 test Keepalived_vrrp[819]: bogus VRRP packet received on bond0 !!!


配置文件内容:
# cat /etc/keepalived/keepalived.conf 
vrrp_instance mysql-ha {
state BACKUP
interface eth0
virtual_router_id 53
priority 100
advert_int 1
authentication { 
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
192.168.0.1
}
}


解决方法:
修改virtual_router_id的值,从53改为88,因为之前在同一网段还有别的机器安装过keepalived,并设置了virtual_router_id=53,改成不同的值后重启keepalived后问题得到解决.

结论:
在同一网段内非同一套keepalive集群中的virtual_router_id 值不能相同。

上述就是小编为大家分享的keepalived启动报错该如何解决了,如果刚好有类似的疑惑,不妨参照上述分析进行理解。如果想知道更多相关知识,欢迎关注创新互联行业资讯频道。


当前文章:keepalived启动报错该如何解决
网页路径:http://jkwzsj.com/article/jochid.html

其他资讯