Eu resolvi meu problema:
Eu tive um erro na minha sintaxe. O global_defs não deve passar por cima da outra configuração. O virtual_ipaddress {} deve estar na tag de configuração vrrp_instance.
Eu instalei keepalived em dois servidores Linux (Ubuntu 14.04) Arquivo Konifg:
! ConfigFile for keepalived
global_defs{
vrrp_instance VI_1 {
state MASTER
interface eth0
virtual_router_id 51
priority 110
advert_int 1
}
virtual_ipaddress {
192.168.178.16
}
}
Os dois servidores podem se comunicar uns com os outros, mas, no syslog, a fila da interface está vazia:
Jan 5 13:54:06 Linux01 Keepalived_healthcheckers[1016]: Interface queue is empty
Jan 5 13:54:06 Linux01 Keepalived_healthcheckers[1016]: Registering Kernel netl
ink reflector
Jan 5 13:54:06 Linux01 Keepalived_healthcheckers[1016]: Registering Kernel netl
ink command channel
Jan 5 13:54:06 Linux01 Keepalived_vrrp[1017]: Opening file '/etc/keepalived/kee
palived.conf'.
Jan 5 13:54:06 Linux01 Keepalived_vrrp[1017]: Configuration is using : 57962 By
tes
Jan 5 13:54:06 Linux01 Keepalived_vrrp[1017]: Using LinkWatch kernel netlink re
flector...
Jan 5 13:54:06 Linux01 Keepalived_healthcheckers[1016]: Opening file '/etc/keep
alived/keepalived.conf'.
Jan 5 13:54:06 Linux01 Keepalived_healthcheckers[1016]: Configuration is using
: 4421 Bytes
Jan 5 13:54:06 Linux01 Keepalived_healthcheckers[1016]: Using LinkWatch kernel
netlink reflector...
Jan 5 13:54:07 Linux01 Keepalived_vrrp[1017]: VRRP_Instance(VI_1) Transition to
MASTER STATE
Eu não consigo pingar para o IP virtual.
Obrigado
Eu resolvi meu problema:
Eu tive um erro na minha sintaxe. O global_defs não deve passar por cima da outra configuração. O virtual_ipaddress {} deve estar na tag de configuração vrrp_instance.