keepalived啟動報錯解決一例
啟動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 值不能相同。
/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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 解決啟動openfeign報錯
- Redis 3.2.1從庫啟動報錯"Error condition on socket for SYNC"問題解決一例RedisError
- zabbix-server啟動報錯解決Server
- 解決 Rust WebAssembly 啟動 Web 程式報錯RustWeb
- Tomcat啟動報錯:Error starting static Resources解決方法TomcatError
- 解決MMM啟動監控報錯的問題
- IDEA啟動時報Failed to create JVM錯誤的解決IdeaAIJVM
- 解決docker啟動映象報錯:docker: Error response from daemonDockerError
- ibbackup恢復報錯一例
- 解決pgpool啟動報錯 ifup[/sbin/ip] doesn't have setuid bitUI
- 第一次使用jrebel啟動專案報錯解決
- PyCharm啟動報錯:Failed to create JVM.解決辦法之一PyCharmAIJVM
- myeclipse啟動報錯Eclipse
- Apache啟動報錯No space left on device: AH00023該怎麼解決Apachedev
- Android studio virtual Device 啟動失敗時某個報錯解決方案Androiddev
- catalog is missing 10 attribute(s)錯誤的解決辦法一例
- mybatis報錯解決MyBatis
- 解決eslint報錯EsLint
- 解決啟動Tomcat報錯:Failed to destroy end point associated with ProtocolHandler["ajp-nio-8009"]TomcatAIProtocol
- Homestead 啟動 elasticsearch 報錯Elasticsearch
- 本地nacos啟動報錯
- 用命令列啟動 docker 報錯:Redirecting to /bin/systemctl start docker.service 解決方法命令列Docker
- Nginx啟動不了報錯未找到命令的解決方法(- bash: nginx: 未找到命令)Nginx
- SS報錯的解決
- iText中文,報錯解決
- supervisor使用報錯解決
- npm install 報錯解決NPM
- 報錯內容解決
- Mac 上啟動 appium 報錯MacAPP
- apache啟動報錯:httpd: aprApachehttpd
- laravel sail 首次啟動報錯LaravelAI
- 解決Tomcat啟動報錯問題:Failed to destroy end point associated with ProtocolHandler["ajp-nio-8009"]TomcatAIProtocol
- 完美解決SqlServer2012啟動報錯(cannot find one or more components.Please reinstall the application。)SQLServerAPP
- hbase region server 無法啟動一例。Server
- dbfread報錯ValueError錯誤解決方法Error
- Charles 用不了,Charles 開啟時報錯的解決方案
- TiDB DM同步報錯ErrCode 44006處理一例TiDB
- VSCode中Flow報錯解決VSCode