辰枫的MySQL和NoSQL学习笔记

骐骥一跃,不能十步;驽马十驾,功在不舍。

  • 博客访问: 1191203
  • 博文数量: 582
  • 用 户 组: 普通用户
  • 注册时间: 2015-12-07 17:58
  • 认证徽章:
个人简介

智慧星光高级DBA。 提供北京或河南地区MySQL、Oracle和MongoDB数据库的技术支持(性能调优,故障处理,安装升级,数据恢复等). 微信或QQ:410294 邮箱:cn_chenfeng@126.com

文章分类

全部博文(582)

文章存档

2018年(43)

2017年(249)

2016年(242)

2015年(48)

分类: Linux

2018-03-14 15:44:30

启动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 值不能相同。
阅读(802) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

fsckzy2018-04-26 16:31:55

前几天也遇到这个问题了。原来是比如说 192.168.1.0这个网段,不能有同一个id,不然就起不来。

评论热议
请登录后评论。

登录 注册