I installed on a ubuntu 12.10 server the keepalived package and configured it, but it complains later in the syslog, that a virtual id must be set
Keep alive configuration
# Define the script used to check if haproxy is still working
vrrp_script chk_haproxy {
script "killall -0 haproxy"
interval 2
weight 2
}
# Configuation for the virtual interface
vrrp_instance VI_1 {
state MASTER # set this to BACKUP on the other machine
virtual_router_id 1
priority 101 # set this to 100 on the other machine
interface eth0
authentication {
auth_type AH
auth_pass myPassw0rd # Set this to some secret phrase
}
# The virtual ip address shared between the two loadbalancers
virtual_ipaddress {
192.168.1.10/24
}
# Use the script above to check if we should fail over
track_script {
chk_haproxy
}
}
Network configuration
auto eth0
iface eth0 inet static
address 192.168.1.11
netmask 255.255.255.0
auto eth0:1
iface eth0:1 inet static
address 192.168.1.10
netmask 255.255.255.0
SysLog output that tells me that the virtual id must be set… cannot find anything related to that error in any documentations
Jan 17 06:48:41 haproxy Keepalived_vrrp: Opening file '/etc/keepalived/keepalived.conf'.
Jan 17 06:48:41 haproxy Keepalived_vrrp: VRRP_Instance(VI_1) the virtual id must be set!
Jan 17 06:48:41 haproxy Keepalived_vrrp: Registering Kernel netlink reflector
Jan 17 06:48:41 haproxy Keepalived_vrrp: Registering Kernel netlink command channel
Jan 17 06:48:41 haproxy Keepalived_vrrp: Registering gratutious ARP shared channel
Jan 17 06:48:41 haproxy Keepalived_vrrp: Initializing ipvs 2.6
Jan 17 06:48:41 haproxy Keepalived_vrrp: Opening file '/etc/keepalived/keepalived.conf'.
Jan 17 06:48:41 haproxy Keepalived_vrrp: VRRP_Instance(VI_1) the virtual id must be set!
Jan 17 06:48:41 haproxy Keepalived_vrrp: Registering Kernel netlink reflector
Jan 17 06:48:41 haproxy Keepalived_vrrp: Registering Kernel netlink command channel
Jan 17 06:48:41 haproxy Keepalived_vrrp: Registering gratutious ARP shared channel
Jan 17 06:48:41 haproxy Keepalived_vrrp: Initializing ipvs 2.6
Best Answer
(This is not a answer yet, but log file is too difficult read in comment)
Ubuntu 12.10
Again, no issue at all
Network
Install
syslog
Ubuntu 12.04
I use OP
keepalived.conf
as is and am able to start it without any syslog error, with or without eth0:1 (192.168.1.10).Installing keepalived
The package come with no
keepalive.conf
file, only a empty/etc/keepalived
directory.ifconfig
syslog
The syslog output seems to be different.