Hello,
I'm having a keepalived problem.
I have compiled a keepalived 1.2.2 on a ubuntu lucid
The configure final information gives :
Keepalived version : 1.2.2
Compiler : gcc
Compiler flags : -g -O2
Extra Lib : -lpopt -lssl -lcrypto
Use IPVS Framework : Yes
IPVS sync daemon support : Yes
IPVS use libnl : No
Use VRRP Framework : Yes
Use Debug flags : Yes
I have a simple configuration file :
vrrp_instance paulette {
virtual_router_id 1
interface eth0
lvs_sync_daemon_interface eth0
priority 200
authentication {
auth_type PASS
auth_pass xxx
}
state MASTER
virtual_ipaddress {
147.210.19.60/23
}
}
virtual_server 147.210.19.60 53 {
delay_loop 15
lb_algo rr
lb_kind DR
protocol UDP
real_server 147.210.18.190 53 {
MISC_CHECK {
misc_path "/etc/keepalived/check_dns.sh
marcel"
misc_timeout 1
}
}
real_server 147.210.18.189 53 {
MISC_CHECK {
misc_path "/etc/keepalived/check_dns.sh
paulette"
misc_timeout 1
}
}
}
When I start keepalived -D I have the following log
Mar 21 11:36:51 paulette Keepalived: Starting Keepalived v1.2.2 (03/21,2012)
Mar 21 11:36:51 paulette Keepalived: Remove a zombie pid file
/var/run/keepalived.pid
Mar 21 11:36:51 paulette Keepalived: Initializing ipvs 2.6
Mar 21 11:36:51 paulette Keepalived: Netlink reflector reports IP
147.210.182.107 added
Mar 21 11:36:51 paulette Keepalived: Netlink reflector reports IP
147.210.18.189 added
Mar 21 11:36:51 paulette Keepalived: Netlink reflector reports IP
fe80::215:58ff:fed3:3242 added
Mar 21 11:36:51 paulette Keepalived: Registering Kernel netlink reflector
Mar 21 11:36:51 paulette Keepalived: Registering Kernel netlink command channel
Mar 21 11:36:51 paulette Keepalived: Opening file
'/etc/keepalived/keepalived.conf'.
Mar 21 11:36:51 paulette Keepalived: Configuration is using : 14171 Bytes
Mar 21 11:36:51 paulette Keepalived: Using LinkWatch kernel netlink reflector...
Mar 21 11:36:51 paulette Keepalived: Activating healtchecker for service
[147.210.18.190]:53
Mar 21 11:36:51 paulette Keepalived: Activating healtchecker for service
[147.210.18.189]:53
Mar 21 11:36:53 paulette Keepalived: Misc check to [147.210.18.190] for
[/etc/keepalived/check_dns.sh marcel] timed out
Mar 21 11:36:53 paulette Keepalived: Removing service [147.210.18.190]:53 from
VS [147.210.19.60]:53
And no vrrp activiy, the VIP is not setup on the interface
(The misc check time out is normal)
When I start keepalived -D -P I have the following log
Mar 21 11:23:16 paulette Keepalived: Starting Keepalived v1.2.2 (03/21,2012)
Mar 21 11:23:16 paulette Keepalived: Netlink reflector reports IP
147.210.182.107 added
Mar 21 11:23:16 paulette Keepalived: Netlink reflector reports IP
147.210.18.189 added
Mar 21 11:23:16 paulette Keepalived: Netlink reflector reports IP
fe80::215:58ff:fed3:3242 added
Mar 21 11:23:16 paulette Keepalived: Registering Kernel netlink reflector
Mar 21 11:23:16 paulette Keepalived: Registering Kernel netlink command channel
Mar 21 11:23:16 paulette Keepalived: Registering gratutious ARP shared channel
Mar 21 11:23:16 paulette Keepalived: Initializing ipvs 2.6
Mar 21 11:23:16 paulette Keepalived: Opening file
'/etc/keepalived/keepalived.conf'.
Mar 21 11:23:16 paulette Keepalived: Configuration is using : 62780 Bytes
Mar 21 11:23:16 paulette Keepalived: Using LinkWatch kernel netlink reflector...
Mar 21 11:23:16 paulette Keepalived: VRRP sockpool: [ifindex(3), proto(112),
fd(12,13)]
Mar 21 11:23:17 paulette Keepalived: VRRP_Instance(paulette) Transition to
MASTER STATE
Mar 21 11:23:18 paulette Keepalived: VRRP_Instance(paulette) Entering MASTER
STATE
Mar 21 11:23:18 paulette Keepalived: VRRP_Instance(paulette) setting protocol
VIPs.
Mar 21 11:23:18 paulette Keepalived: VRRP_Instance(paulette) Sending gratuitous
ARPs on eth0 for 147.210.19.60
Mar 21 11:23:18 paulette Keepalived: IPVS: No daemon is running
Mar 21 11:23:18 paulette Keepalived: IPVS: Daemon has already run
Mar 21 11:23:23 paulette Keepalived: VRRP_Instance(paulette) Sending gratuitous
ARPs on eth0 for 147.210.19.60
In this case the VIP is set on the eth0 interface, but of course nothing is
done for the virtual servers.. (because of the -P) flag.
I guess I have missed something ?
Can somebody help
Thanks in advance
f.g.
--
Frédéric Goudal
Service Informatique
ENSEIRB-MATMECA / IPB
Tel : +33 556 84 23 11
Fax: +33 556 37 20 23
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
|