免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2225 | 回复: 4
打印 上一主题 下一主题

keepalived问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-16 22:52 |只看该作者 |倒序浏览
在测试环境配置的keepalived没有问题,但正部署后.死活不生成VIP
ipvsadm可以看到real服务器,并且可以进行健康检查.就是不生成VIP

急,请问各位这什么情况

论坛徽章:
0
2 [报告]
发表于 2009-05-16 22:53 |只看该作者
以下是配置文件

! Configuration File for keepalived

global_defs {
   notification_email {
     admin@example.com
   }
   notification_email_from admin@example.com
   router_id lvs01
}

vrrp_instance VI_1 {
    state MASTER
    interface eth0
   
    garp_master_delay 10
    virtual_router_id 51
    priority 150
    advert_int 1

    authentication {
        auth_type PASS
        auth_pass 1111
    }
    virtual_ipaddress {
        10.10.10.1
}
}


virtual_server 10.10.10.1 9700 {
    delay_loop 3
    lb_algo wlc
    lb_kind DR
    persistence_timeout 5
    protocol TCP
   
    real_server 10.10.10.2 9700 {
        weight 3
        TCP_CHECK {
        connect_port 9700
        connect_timeout 5
        }
    }
    real_server 10.10.10.3 9700 {
        weight 3
        TCP_CHECK {
        connect_port 9700
        connect_timeout 5
        }
     }
}

论坛徽章:
0
3 [报告]
发表于 2009-05-16 23:00 |只看该作者
这是开启后的日志

May 16 22:43:02 21V-BJ-1-CA_LVS01 Keepalived: Starting Keepalived v1.1.16 (05/14,2009)
May 16 22:43:02 21V-BJ-1-CA_LVS01 Keepalived_healthcheckers: Using MII-BMSR NIC polling thread...
May 16 22:43:02 21V-BJ-1-CA_LVS01 Keepalived: Starting Healthcheck child process, pid=24459
May 16 22:43:02 21V-BJ-1-CA_LVS01 Keepalived: Starting VRRP child process, pid=24461
May 16 22:43:02 21V-BJ-1-CA_LVS01 Keepalived_vrrp: Using MII-BMSR NIC polling thread...
May 16 22:43:02 21V-BJ-1-CA_LVS01 Keepalived_vrrp: Netlink reflector reports IP .12121.1511.115 added
May 16 22:43:02 21V-BJ-1-CA_LVS01 Keepalived_vrrp: Netlink reflector reports IP 192.168.1.14 added
May 16 22:43:02 21V-BJ-1-CA_LVS01 Keepalived_vrrp: Registering Kernel netlink reflector
May 16 22:43:02 21V-BJ-1-CA_LVS01 Keepalived_vrrp: Registering Kernel netlink command channel
May 16 22:43:02 21V-BJ-1-CA_LVS01 Keepalived_vrrp: Registering gratutious ARP shared channel
May 16 22:43:02 21V-BJ-1-CA_LVS01 Keepalived_healthcheckers: Netlink reflector reports IP 12121.1511.115 added
May 16 22:43:02 21V-BJ-1-CA_LVS01 Keepalived_healthcheckers: Netlink reflector reports IP 192.168.1.14 added
May 16 22:43:02 21V-BJ-1-CA_LVS01 Keepalived_healthcheckers: Registering Kernel netlink reflector
May 16 22:43:02 21V-BJ-1-CA_LVS01 Keepalived_healthcheckers: Registering Kernel netlink command channel
May 16 22:43:02 21V-BJ-1-CA_LVS01 Keepalived_vrrp: Opening file '/etc/keepalived/keepalived.conf'.
May 16 22:43:02 21V-BJ-1-CA_LVS01 Keepalived_vrrp: Configuration is using : 36280 Bytes
May 16 22:43:02 21V-BJ-1-CA_LVS01 Keepalived_healthcheckers: Opening file '/etc/keepalived/keepalived.conf'.
May 16 22:43:02 21V-BJ-1-CA_LVS01 Keepalived_healthcheckers: Configuration is using : 11949 Bytes
May 16 22:43:02 21V-BJ-1-CA_LVS01 Keepalived_vrrp: VRRP sockpool: [ifindex(2), proto(112), fd(10,11)]
May 16 22:43:02 21V-BJ-1-CA_LVS01 Keepalived_healthcheckers: Activating healtchecker for service [10.10.10.2:9700]
May 16 22:43:02 21V-BJ-1-CA_LVS01 Keepalived_healthcheckers: Activating healtchecker for service [10.10.10.3:9700]

[ 本帖最后由 tech_linux 于 2009-5-16 23:02 编辑 ]

论坛徽章:
0
4 [报告]
发表于 2009-05-16 23:02 |只看该作者

回复 #1 tech_linux 的帖子

用 ip add list dev eth0
查看

论坛徽章:
0
5 [报告]
发表于 2009-05-16 23:15 |只看该作者
查看了,确实没有生成VIP
比对了没问题服务器的日志

好像VRRP就没有生成.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP