asfsd 发表于 2015-11-19 15:36:09

ubuntu下配置nginx+keepalived做HA(续)

  作者注:继上篇中没有测试,由于初涉及相关技术,下面测试中的问题记录一下,主要将通过/var/log/messages中的日志来。
  问题1:Sep 18 22:20:23 ubuntu Keepalived_vrrp: IPVS: Can't initialize ipvs: Permission denied (you must be root)
解决办法:直接su至root用户,启动keepalived,可快速解决问题。
  问题2:Sep 19 02:57:51 ubuntu Keepalived_healthcheckers: IPVS: Can't initialize ipvs: Protocol not available
解决办法:由于没有安装或没有启用ipvs功能,本人系统中没有启用ipvs。
  测试结果(部分日志):
Sep 19 04:01:55 ubuntu Keepalived_vrrp: Using MII-BMSR NIC polling thread...
Sep 19 04:01:55 ubuntu Keepalived_vrrp: Registering Kernel netlink reflector
Sep 19 04:01:55 ubuntu Keepalived_vrrp: Registering Kernel netlink command channel
Sep 19 04:01:55 ubuntu Keepalived_vrrp: Registering gratutious ARP shared channel
Sep 19 04:01:55 ubuntu Keepalived_vrrp: Opening file '/etc/keepalived/keepalived.conf'.
Sep 19 04:01:55 ubuntu Keepalived_vrrp: Configuration is using : 37980 Bytes
Sep 19 04:01:55 ubuntu Keepalived_vrrp: VRRP_Instance(VI_1) Entering BACKUP STATE
Sep 19 04:02:05 ubuntu Keepalived_vrrp: VRRP_Instance(VI_1) Transition to MASTER STATE
Sep 19 04:02:08 ubuntu Keepalived_vrrp: VRRP_Instance(VI_1) Entering MASTER STATE
Sep 19 04:02:08 ubuntu Keepalived_vrrp: Netlink: skipping nl_cmd msg...
Sep 19 04:03:13 ubuntu Keepalived_vrrp: VRRP_Instance(VI_1) Received higher prio advert
Sep 19 04:03:13 ubuntu Keepalived_vrrp: VRRP_Instance(VI_1) Entering BACKUP STATE

         版权声明:本文为博主原创文章,未经博主允许不得转载。
页: [1]
查看完整版本: ubuntu下配置nginx+keepalived做HA(续)