Re: Keepalived backup failed to become master

"Ryan O'Hara" <[email protected]>
Newsgroups gmane.linux.keepalived.devel
Message-ID <[email protected]>
Hi.

On Fri, Jan 31, 2014 at 03:07:47PM -0200, Tiago Cruz wrote:
> Hello,
> 
> I have 2 machines running Centos6 and keepalived-1.2.7-3.el6.x86_64.
> 
> My masters dies today, and my Backup does not got the IP, even with a
> network restart and even with a keepalived restart.
> 
> Follow my configuration:
> 
> Master:
> ========================
> vrrp_instance CLUSTER {
>     smtp_alert
>     interface eth0
>     state MASTER
>     virtual_router_id 152
>     priority 101
>     authentication {
>         auth_type PASS
>         auth_pass blablabla
>     }
>     virtual_ipaddress {
>         2xx.2xx.2xx.1xx/2x dev eth0
>     }
> 
>     notify_master "/etc/keepalived/notify.sh master"
>     notify_backup "/etc/keepalived/notify.sh backup"
>     notify_fault  "/etc/keepalived/notify.sh fault"
> }
> 
> 
> Backup:
> ========================
> vrrp_instance CLUSTER {
>     smtp_alert
>     interface eth0
>     state SLAVE

Not sure if this will solve your problem, but SLAVE is not valid. You
want 'state BACKUP'. Try that first.

Ryan

>     virtual_router_id 152
>     priority 100
>     authentication {
>         auth_type PASS
>         auth_pass blablabla
>     }
>     virtual_ipaddress {
>         2xx.2xx.2xx.1xx/2x dev eth0
>     }
> 
>     notify_master "/etc/keepalived/notify.sh master"
>     notify_backup "/etc/keepalived/notify.sh backup"
>     notify_fault  "/etc/keepalived/notify.sh fault"
> }
> 
> tcpdump:
> ====================
> 
> # tcpdump -vvv -n -i eth0 host 224.0.0.18
> tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535
> bytes
> 17:03:53.409903 IP (tos 0xc0, ttl 255, id 32557, offset 0, flags [none],
> proto VRRP (112), length 40)
>     2xx.2xx.2xx.9x > 224.0.0.18: VRRPv2, Advertisement, vrid 152, prio 101,
> authtype simple, intvl 1s, length 20, addrs: 200.219.220.152 auth
> "blablabla"
> 17:03:54.410375 IP (tos 0xc0, ttl 255, id 32558, offset 0, flags [none],
> proto VRRP (112), length 40)
>     2xx.2xx.2xx.9x > 224.0.0.18: VRRPv2, Advertisement, vrid 152, prio 101,
> authtype simple, intvl 1s, length 20, addrs: 200.219.220.152
> auth "blablabla"
> 17:03:55.410842 IP (tos 0xc0, ttl 255, id 32559, offset 0, flags [none],
> proto VRRP (112), length 40)
>     2xx.2xx.2xx.9x > 224.0.0.18: VRRPv2, Advertisement, vrid 152, prio 101,
> authtype simple, intvl 1s, length 20, addrs: 200.219.220.152
> auth "blablabla"
> 17:03:56.411311 IP (tos 0xc0, ttl 255, id 32560, offset 0, flags [none],
> proto VRRP (112), length 40)
>     2xx.2xx.2xx.9x > 224.0.0.18: VRRPv2, Advertisement, vrid 152, prio 101,
> authtype simple, intvl 1s, length 20, addrs: 200.219.220.152
> auth "blablabla"
> 17:03:57.411788 IP (tos 0xc0, ttl 255, id 32561, offset 0, flags [none],
> proto VRRP (112), length 40)
>     2xx.2xx.2xx.9x > 224.0.0.18: VRRPv2, Advertisement, vrid 152, prio 101,
> authtype simple, intvl 1s, length 20, addrs: 200.219.220.152
> auth "blablabla"
> 
> # ping master:
> =============
> # ping 10.65.13.95
> PING 10.65.13.95 (10.65.13.95) 56(84) bytes of data.
> >From 10.65.13.96 icmp_seq=2 Destination Host Unreachable
> >From 10.65.13.96 icmp_seq=3 Destination Host Unreachable
> >From 10.65.13.96 icmp_seq=4 Destination Host Unreachable
> ^C
> 
> What can I do to debug? I'm pretty sure that this configuration worked
> before.
> 
> Thanks a lot.
> -- 
> -- Tiago Cruz

> ------------------------------------------------------------------------------
> WatchGuard Dimension instantly turns raw network data into actionable 
> security intelligence. It gives you real-time visual feedback on key
> security issues and trends.  Skip the complicated setup - simply import
> a virtual appliance and go from zero to informed in seconds.
> http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk

> _______________________________________________
> Keepalived-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/keepalived-devel


------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.