- 1、本文档共27页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Keepalived无法绑定VIP故障排查经历
Keepalived无法绑定VIP故障排查经历
[日期:2015-03-14]来源:Linux社区? 作者:john88wang [字体:大?中?小] 一 故障描述我在台湾合作方给定的两台虚拟机上部署HAProxy+Keepalived负载均衡高可用方案。在配置完Keepalived后,重新启动Keepalived,Keepalived没有绑定VIP。
Keepalived执行程序路径为/data/app_platform/keepalived/sbin/keepalived配置文件路径为/data/app_platform/keepalived/conf/keepalived.conf??Keepalived的启动脚本为/etc/init.d/keepalived
keepalived.conf的内容LB1 Master! Configuration File for keepalived???global_defs {?? notification_email {?? ? admin@?? }?? notification_email_from lb1@?? smtp_server ?? smtp_connect_timeout 30?? router_id LB1_MASTER?}????vrrp_script chk_haproxy {?? ? ? ? script killall -0 haproxy?? ? ? ? interval 2?? ? weight 2?? ? }?????????vrrp_instance VI_1 {?? ? state MASTER?? ? interface eth1?? ? virtual_router_id 51?? ? priority 100?? ? advert_int 1?? ? authentication {?? ? ? ? auth_type PASS?? ? ? ? auth_pass 1111?? ? }?? ? virtual_ipaddress {???? ? 00/24? ? ? brd 55? ? ? dev eth1 label eth1:vip???? ? }???? ? track_script {?? ? ? ? chk_haproxy?? ? ? ? ? ? ? ? }?}
重新启动Keepalived查看日志Mar? 3 18:09:00 cv00300005248-1 Keepalived[20138]: Stopping Keepalived v1.2.15 (02/28,2015)?Mar? 3 18:09:00 cv00300005248-1 Keepalived[20259]: Starting Keepalived v1.2.15 (02/28,2015)?Mar? 3 18:09:00 cv00300005248-1 Keepalived[20260]: Starting Healthcheck child process, pid=20261?Mar? 3 18:09:00 cv00300005248-1 Keepalived[20260]: Starting VRRP child process, pid=20262?Mar? 3 18:09:00 cv00300005248-1 Keepalived_vrrp[20262]: Registering Kernel netlink reflector?Mar? 3 18:09:00 cv00300005248-1 Keepalived_vrrp[20262]: Registering Kernel netlink command channel?Mar? 3 18:09:00 cv00300005248-1 Keepalived_vrrp[20262]: Registering gratuitous ARP shared channel?Mar? 3 18:09:00 cv00300005248-1 Keepalived_healthcheckers[20261]: Registering Kernel netlink reflector?Mar? 3 18:09:00 cv00300005248-1 Keepalived_healthcheckers[20261]: Registering Kernel netlink command channel?Mar? 3 18:09:00 cv00300005248-1 Keepalived_healthchecker
文档评论(0)