Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Keepalived v1.2.13
PostPosted: Thu Oct 15, 2015 10:51 am 
Offline

Joined: Thu Oct 15, 2015 10:16 am
Posts: 1
Hi!

I'm trying to build an IP failover service for our servers, but I cannot set up keepalived. I'm using version 1.2.13 (on ubuntu 14.04) from ppa:keepalived/stable. My current config is structured like this (it is generated for every host automatically with ansible):

Code:
vrrp_instance VI_1 {
  state {{ keepalived_state }}
  interface {{ keepalived_interface }}
  virtual_router_id {{ keepalived_router }}
  priority {{ keepalived_priority }}
  nopreemt
  advert_int {{ keepalived_advert_interval }}
  authentication {
    auth_type PASS
    auth_pass {{ keepalived_pass }}
  }
  unicast_src_ip {{ ip }}
  unicast_peer {
    {% for host in groups.proxies %}
    {% if hostvars[host].ip != ip %}{{ hostvars[host].ip }}{% endif %}
    {% endfor %}
  }
  virtual_ipaddress {
    {{ keepalived_ip }}
  }
}



If i try to start the keepalived service, it enters into an infinite loop, repeating this:

Code:
Oct 15 14:29:25 sophie-dee Keepalived_healthcheckers[14786]: Initializing ipvs 2.6
Oct 15 14:29:25 sophie-dee Keepalived_healthcheckers[14786]: IPVS: Can't initialize ipvs: Protocol not available
Oct 15 14:29:25 sophie-dee Keepalived[28774]: Healthcheck child process(14786) died: Respawning
Oct 15 14:29:25 sophie-dee Keepalived[28774]: Starting Healthcheck child process, pid=14790
Oct 14 14:40:57 sophie-dee modprobe: ERROR: ../libkmod/libkmod.c:556 kmod_search_moddep() could not open moddep file '/lib/modules/4.1.5-x86_64-linode61/modules.dep.bin'
Oct 15 14:29:25 sophie-dee Keepalived_healthcheckers[14790]: Initializing ipvs 2.6
Oct 15 14:29:25 sophie-dee Keepalived_healthcheckers[14790]: IPVS: Can't initialize ipvs: Protocol not available
Oct 15 14:29:25 sophie-dee Keepalived[28774]: Healthcheck child process(14790) died: Respawning
Oct 15 14:29:25 sophie-dee Keepalived[28774]: Starting Healthcheck child process, pid=14794
Oct 14 14:40:57 sophie-dee modprobe: ERROR: ../libkmod/libkmod.c:556 kmod_search_moddep() could not open moddep file '/lib/modules/4.1.5-x86_64-linode61/modules.dep.bin'
Oct 15 14:29:25 sophie-dee Keepalived_healthcheckers[14794]: Initializing ipvs 2.6
Oct 15 14:29:25 sophie-dee Keepalived_healthcheckers[14794]: IPVS: Can't initialize ipvs: Protocol not available
Oct 15 14:29:25 sophie-dee Keepalived[28774]: Healthcheck child process(14794) died: Respawning
Oct 15 14:29:25 sophie-dee Keepalived[28774]: Starting Healthcheck child process, pid=14798
Oct 14 14:40:57 sophie-dee modprobe: ERROR: ../libkmod/libkmod.c:556 kmod_search_moddep() could not open moddep file '/lib/modules/4.1.5-x86_64-linode61/modules.dep.bin'
Oct 15 14:29:25 sophie-dee Keepalived_healthcheckers[14798]: Initializing ipvs 2.6


It seems that the ip_vs module is not loaded (the loop is caused by this bug): lsmod | grep ip_vs shows nothing, modprobe ip_vs errors with this:

Code:
modprobe: ERROR: ../libkmod/libkmod.c:556 kmod_search_moddep() could not open moddep file '/lib/modules/4.1.5-x86_64-linode61/modules.dep.bin'


I've tried this:

Code:
$ sudo -s
# cd /lib/modules/`uname -r`
# depmod


but it does not resolves the issue... Any ideas?


Top
   
 Post subject: Re: Keepalived v1.2.13
PostPosted: Tue Oct 20, 2015 1:22 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
Looks like this is not built into the standard Linode kernel:
Code:
# zgrep IP_VS /proc/config.gz
# CONFIG_IP_VS is not set


I would suggest running a distribution-supplied kernel and loading the necessary module.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group