Questions tagged [keepalived]

an open source daemon that implements the VRRP standard.

The keepalived project is an open source implementation of the VRRP protocol as well as a configuration interface to the Linux ipvs framework. VRRP is based on Cisco's proprietary Hot Standby Router Protocol (HSRP) concepts. When these two portions of the application are used in concert, a pair of linux servers can be a stable, low-cost alternative to commercial load balancers.

Cisco has claimed that VRRP is protected under HSRP patents, so using keepalived is legally questionable.

239 questions
1
vote
1 answer

"nfsd peername failed" but NFSv4 service functions

My current setup: 2 NFS servers sharing the same directory with identical content, 1 keepalived server as SLB (or rather for failover in this scenario), and 1 NFSv4 client mounting through VIP. All systems run CentOS 6 (2.6.32-573.26.1.el6.x86_64).…
yongtw123
  • 121
  • 1
  • 3
1
vote
2 answers

keepalived registers failure but won't failover

I'm running 2 keepalived servers that share a common IP (Server1 and Server2). Server1 is the master, and whenever haproxy dies, Server2 should take over. If Server1 comes back up, Server2 should release the vIP and let Server1 take over again. I've…
MadsRC
  • 13
  • 1
  • 3
1
vote
2 answers

Keepalived notify script isn't executed

I just set up the notification script in /etc/keepalived/keepalived.conf /etc/keepalived/keepalived.conf global_defs { notification_email { admin@example.com } notification_email_from keepalived@example.com smtp_server 127.0.0.1 …
Peco
  • 153
  • 2
  • 2
  • 8
1
vote
0 answers

Keepalived cant find one of my interfaces

I have just installed a new server (Ubuntu 14.04) to start testing our keepalived configurations, which work fine on (Ubuntu 12.04) We do not assign the public IP on the eth1 interface, we allow keepalived to do that to preserve public IP's in our…
1
vote
1 answer

How to see keepalived priority number when it changed

I have used keepalived to archive high availability for nginx. I set initial priority 101 for MASTER, 100 for BACKUP and I can see /var/log/messages : Keepalived_vrrp[34483]: VRRP_Script(chk_nginx) failed Keepalived_vrrp[34483]: VRRP_Instance(VI_1)…
seanlook
  • 559
  • 2
  • 10
  • 18
1
vote
1 answer

HAProxy track_script + nopreempt not working

I have 2 nodes with Keepalived v1.2.13, in Amazon AWS VPC. I'm trying to achieve this scenario, assuming Node1 is MASTER: If I stop HAProxy or stop keepalived or stop the node, failover to Node2. If I start HAProxy back up on Node1 or start…
Bastien974
  • 1,896
  • 12
  • 44
  • 62
1
vote
1 answer

Postgresql keepalived gluster | FAULT state

I am trying to achieve a simple failover using Keeplalived, postgres and gluster. Using CentOs 7 I have mounted a replicated gluster volume on both nodes at '/var/lib/pgsql'. Shared ip(Keepalived): 192.168.1.20 node01: 192.168.1.11 node02:…
Dany
  • 133
  • 8
1
vote
1 answer

Softlayer HAProxy with failover

I have 2 virtual servers on Softlayer, both running HAProxy. I am trying to set up failover with keepalived. Each server has a private IP and public IP, and they are on the same VLAN. I've tried many different settings for keepalived, but stopping…
Franz Kafka
  • 32
  • 2
  • 12
1
vote
2 answers

keepalived multiple instances

I have two application servers running keepalived that are both using keepalived on the same network. I keep seeing Jan 8 11:49:01 Keepalived_vrrp[13764]: bogus VRRP packet received on eth0 !!! in syslog. The problem seemed to appear after…
jak119
  • 33
  • 2
  • 7
1
vote
1 answer

Keepalived configuration for VRRP

I am trying to understand if there is a relation between garp_master_delay and advert_int. In all the configurations I saw, advert_int was less than garp_master_delay. Is there any reason for this? Are those independent of each other or is there…
ACC
  • 249
  • 1
  • 4
  • 12
1
vote
0 answers

Keepliaved not loading IPv6 lvs rules on boot

When starting Keepalived manually, it correctly populates LVS tables as seen by: ipvsadm However, when I boot the machine - only IPv4 rules are added. If I restart the keepliaved server manually after the machine has booted, the IPv6 rules is added…
Jon Skarpeteig
  • 951
  • 2
  • 14
  • 29
1
vote
1 answer

Keepalived unwanted transition to master

I'm starting 2 EC2 intances in Amazon with Cloudformation, the second instance starts about 30 seconds after the first one. The configuration looks like this : Instance 2 state BACKUP interface eth0 virtual_router_id 51 priority 100 …
Bastien974
  • 1,896
  • 12
  • 44
  • 62
1
vote
1 answer

keepalived failover virtual ip parameters

I have two servers (A-master and B-backup) with one virtual ip. I need to assign the virtual ip to server B in case server A fails. For this I'm trying to configure keepalived. server A virtual ip is configured on eth0:1 server B virtual ip is…
ivcode
  • 1,062
  • 1
  • 9
  • 13
1
vote
1 answer

Multimaster Keepalived Configuration (Virtual IP with Load Balancing)

Here are requirements: 1. High Availability 2. Load Balancing First configuration 1. Two linux servers have been configured with one static IP for each: 10.17.243.11, 10.17.243.12 2. Keepalived has been installed and configured with one VRRP…
Rad
  • 195
  • 3
  • 10
1
vote
2 answers

Keepalived configurations

I installed keepalived on two firewalls to provide fail over. I'm not sure if the following configurations are correct (see configurations below). Sometimes I have problems to reach the websites which are behind the firewalls. I suspect that when…
Valentin Bajrami
  • 4,045
  • 1
  • 18
  • 26