[Keepalived-announce] Force transition to SLAVE if interface fails?
Status: Beta
Brought to you by:
acassen
|
From: MURTARI, J. <jm...@at...> - 2017-06-08 17:35:38
|
Folks,
Wasn't sure where to go for help. Saw a few questions posted to the announce list so thought I'd give it a try.
We're new to keepalived. Have a very simple lab setup with two servers and we are able to move a floating IP (10.10.140.100) between the servers (but only if we stop the keepalived process on the MASTER). If an admin command is used to bring the interface down (ip addr del 10.10.140.100/27 dev eth1) - we see a log entry the address is removed, but no action from the SLAVE? Added the 'track_interface' option, but didn't seem to help.
Config below, any help is much appreciated!
global_defs {
notification_email {
root@localhost
}
notification_email_from root@localhost
smtp_server localhost
smtp_connect_timeout 30
}
vrrp_instance VRRP1 {
state MASTER
# Specify the network interface to which the virtual address is assigned
interface eth1
# Watch the interface
track_interface {
eth1
}
# The virtual router ID must be unique to each VRRP instance that you define
virtual_router_id 41
# Set the value of priority higher on the master server than on a backup server
priority 200
advert_int 1
authentication {
auth_type PASS
auth_pass 1066
}
virtual_ipaddress {
10.10.140.100/27
}
}
----------------
John Murtari - jm...@at...<mailto:jm...@at...>
Ciberspring
office: 315-944-0998
cell: 315-430-2702
|