
1 问题现象:keepalived已启动但vip 没有生成。/var/log/messages日志不断刷屏
tail /var/log/messages Nov :: cache-redis- Keepalived_vrrp[]: (redis): ip address associated with VRID not present in MASTER advert : 172.16.1.63
Nov :: cache-redis- Keepalived_vrrp[]: bogus VRRP packet received on eth0 !!!
Nov :: cache-redis- Keepalived_vrrp[]: VRRP_Instance(redis) ignoring received advertisment...
1.1 问题分析及解决方案:
1)两条主机的时间不同,将两台主机时间改为一致即可。
2)virtual_router_id 设置有问题,修改一下其他数字试试。
2.keepalived vip 生成了ping不通问题?
主要是在配置文件(/etc/keepalived/keepalived.conf)里注释掉(vrrp_strict)此关键字就可以了。