Hey guys,
I'm trying to install keepalived 1.2.19 on a centos 6.5 machine. I did an install from source.
And when I start keepalived this is what I'm seeing in the logs. It's reporting that the VRRP_Instance(VI_1) Now in FAULT state.
Here's more of that log entry:
Sep 29 12:06:58 USECLSNDMNRDBA Keepalived_vrrp[44943]: VRRP Instance = VI_1 Sep 29 12:06:58 USECLSNDMNRDBA Keepalived_vrrp[44943]: Using VRRPv2 Sep 29 12:06:58 USECLSNDMNRDBA Keepalived_vrrp[44943]: Want State = MASTER Sep 29 12:06:58 USECLSNDMNRDBA Keepalived_vrrp[44943]: Runing on device = eth1 Sep 29 12:06:58 USECLSNDMNRDBA Keepalived_vrrp[44943]: Gratuitous ARP repeat = 5 Sep 29 12:06:58 USECLSNDMNRDBA Keepalived_vrrp[44943]: Gratuitous ARP refresh repeat = 1 Sep 29 12:06:58 USECLSNDMNRDBA Keepalived_vrrp[44943]: Virtual Router ID = 51 Sep 29 12:06:58 USECLSNDMNRDBA Keepalived_vrrp[44943]: Priority = 101 Sep 29 12:06:58 USECLSNDMNRDBA Keepalived_vrrp[44943]: Advert interval = 1 sec Sep 29 12:06:58 USECLSNDMNRDBA Keepalived_vrrp[44943]: Accept disabled Sep 29 12:06:58 USECLSNDMNRDBA Keepalived_vrrp[44943]: Virtual IP = 1 Sep 29 12:06:58 USECLSNDMNRDBA Keepalived_vrrp[44943]: 10.40.116.34/32 dev eth1 scope global Sep 29 12:06:58 USECLSNDMNRDBA Keepalived_vrrp[44943]: Using LinkWatch kernel netlink reflector... Sep 29 12:06:58 USECLSNDMNRDBA Keepalived_vrrp[44943]: VRRP sockpool: [ifindex(3), proto(112), unicast(0), fd(10,11)] Sep 29 12:06:58 USECLSNDMNRDBA Keepalived_healthcheckers[44942]: ------< Global definitions >------ Sep 29 12:06:58 USECLSNDMNRDBA Keepalived_healthcheckers[44942]: Router ID = USECLSNDMNRDBA Sep 29 12:06:58 USECLSNDMNRDBA Keepalived_healthcheckers[44942]: VRRP IPv4 mcast group = 224.0.0.18 Sep 29 12:06:58 USECLSNDMNRDBA Keepalived_healthcheckers[44942]: VRRP IPv6 mcast group = ff02::12 Sep 29 12:06:58 USECLSNDMNRDBA Keepalived_healthcheckers[44942]: ------< SSL definitions >------ Sep 29 12:06:58 USECLSNDMNRDBA Keepalived_healthcheckers[44942]: Using autogen SSL context Sep 29 12:06:58 USECLSNDMNRDBA Keepalived_healthcheckers[44942]: Using LinkWatch kernel netlink reflector... *Sep 29 12:06:59 USECLSNDMNRDBA Keepalived_vrrp[44943]: Kernel is reporting: interface eth1 DOWN* *Sep 29 12:06:59 USECLSNDMNRDBA Keepalived_vrrp[44943]: VRRP_Instance(VI_1) Now in FAULT state*
And if I do an ifconfig command I see no evidence of an eth1 existing. Also I can't ping the virtual address that I'm trying to create:
# ping -c 5 10.40.116.34 PING 10.40.116.34 (10.40.116.34) 56(84) bytes of data.
From 10.40.116.30 icmp_seq=2 Destination Host Unreachable From 10.40.116.30 icmp_seq=3 Destination Host Unreachable From 10.40.116.30 icmp_seq=4 Destination Host Unreachable From 10.40.116.30 icmp_seq=5 Destination Host Unreachable
--- 10.40.116.34 ping statistics --- 5 packets transmitted, 0 received, +4 errors, 100% packet loss, time 14001ms pipe 3
Here are my configs starting with the first machine:
# cat keepalived.conf vrrp_instance VI_1 { interface eth1 state MASTER virtual_router_id 51 priority 101 # 101 on master, 100 on backup
vrrp_unicast_bind 10.40.116.30 # Internal IP of this machine vrrp_unicast_peer 10.40.116.31 # Internal IP of peer virtual_ipaddress { 10.40.116.34 }
And here's the config on the second machine:
# cat /etc/keepalived/keepalived.conf vrrp_instance VI_1 { interface eth1 state MASTER virtual_router_id 51 priority 100 # 101 on master, 100 on backup vrrp_unicast_bind 10.40.116.31 # Internal IP of this machine vrrp_unicast_peer 10.40.116.30 # Internal IP of peer virtual_ipaddress { 10.40.116.34 }
Does anyone have any experience in solving this kind of problem? Any suggestions on how to resolve this would be great.
Thanks, Tim
Tim Dunphy wrote:
Hey guys,
I'm trying to install keepalived 1.2.19 on a centos 6.5 machine. I did an install from source.
And when I start keepalived this is what I'm seeing in the logs. It's reporting that the VRRP_Instance(VI_1) Now in FAULT state.
<snip> Two stupid questions: 1. Why are you running 6.5, rather than 6.7? 2. On the host, does it *have* an eth0, or is it, perhaps, em1?
mark "it's all emx on Dell R720's"
Em 29-09-2015 15:03, Gordon Messmer escreveu:
On 09/29/2015 09:14 AM, Tim Dunphy wrote:
And if I do an ifconfig command I see no evidence of an eth1 existing.
"ifconfig -a" will show you all of your interfaces.
Maybe there is a confusion here. Sounds like Tim thought keepalived would create that eth1, like a tunnel interface, but it won't. You have to specify an interface that actually exists so that the VIP address will be added as a secondary address to ip to that interface.
HTH
Marcelo
Guys,
I actually found a solution to this. After much googling I was able to come up with this:
vrrp_instance VI_1 { interface eth1 state MASTER virtual_router_id 51 priority 101 # 101 on master, 100 on backup *dont_track_primary* vrrp_unicast_bind 10.40.116.30 # Internal IP of this machine vrrp_unicast_peer 10.40.116.31 # Internal IP of peer virtual_ipaddress { 10.40.116.34 }
The key to getting this to work was to add the entry you see in bold above to the config. dont_track_primary. I'm not sure if that's the best way to solve this problem. But I know that adding that line allowed me to do what I needed to do. After that I could ping the virtual address.
Thanks for all the suggestions.
Tim
On Tue, Sep 29, 2015 at 4:24 PM, Marcelo Ricardo Leitner < marcelo.leitner@gmail.com> wrote:
Em 29-09-2015 15:03, Gordon Messmer escreveu:
On 09/29/2015 09:14 AM, Tim Dunphy wrote:
And if I do an ifconfig command I see no evidence of an eth1 existing.
"ifconfig -a" will show you all of your interfaces.
Maybe there is a confusion here. Sounds like Tim thought keepalived would create that eth1, like a tunnel interface, but it won't. You have to specify an interface that actually exists so that the VIP address will be added as a secondary address to ip to that interface.
HTH
Marcelo
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos