keepalived啟動報錯解決一例

chenfeng發表於2018-03-14
啟動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 值不能相同。

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/15498/viewspace-2151848/,如需轉載,請註明出處,否則將追究法律責任。

相關文章