Hi,
I am running RHEL4 ( 2.6.9-42.0.3.ELsmp), ipvsadm v1.24, keepalived v1.1.13.
I can get virtual ip addresses to fail-over but when I add a virtual service
nothing gets added to LVS, ipvsadm -L shows nothing. I compiled both ipvsadm
and keepalived from source. During the compliation I did make sure IPVS
framework/sync daemon support were enabled. Yet no virtual services show up
in ipvsadm. I am trying to setup a streamlined ha/load balancer i.e. the LVS
router and real servers are the same.
VIP: 10.1.1.100
LVS routers/real servers :10.1.1.20, 10.1.1.30
Any help or suggestions would be greatly appreciated.
Thanks,
Navid
In /var/log/messages I see this:
Dec 6 04:45:20 rhel4_2 Keepalived: Starting Keepalived v1.1.13 (12/06,2006)
Dec 6 04:45:20 rhel4_2 Keepalived: Starting VRRP child process, pid=11272
Dec 6 04:45:20 rhel4_2 Keepalived_vrrp: Using MII-BMSR NIC polling
thread...
Dec 6 04:45:20 rhel4_2 Keepalived_vrrp: Registering Kernel netlink
reflector
Dec 6 04:45:20 rhel4_2 Keepalived_vrrp: Registering Kernel netlink command
channel
Dec 6 04:45:20 rhel4_2 Keepalived_vrrp: Registering gratutious ARP shared
channel
Dec 6 04:45:20 rhel4_2 Keepalived_vrrp: Configuration is using : 33370
Bytes
Dec 6 04:45:20 rhel4_2 Keepalived_vrrp: VRRP sockpool: [ifindex(2),
proto(112), fd(7,8)]
Dec 6 04:45:21 rhel4_2 Keepalived_vrrp: VRRP_Instance(VI_1) Transition to
MASTER STATE
Dec 6 04:45:22 rhel4_2 Keepalived_vrrp: VRRP_Instance(VI_1) Entering MASTER
STATE
Dec 6 04:45:22 rhel4_2 Keepalived_vrrp: VRRP_Instance(VI_1) setting
protocol VIPs.
Dec 6 04:45:22 rhel4_2 Keepalived_vrrp: VRRP_Instance(VI_1) Sending
gratuitous ARPs on eth0 for 10.1.1.100
my keepalived.conf for master server, backup is the same with exception to
state=BACKUP and priority=50
vrrp_instance VI_1 {
state MASTER
interface eth0
virtual_router_id 1
priority 100
authentication {
auth_type PASS
auth_pass pass!
}
virtual_ipaddress {
10.1.1.100/24 brd 10.1.1.255 dev eth0
}
}
virtual_server 10.1.1.100 80 {
delay_loop 30
lb_algo wrr
lb_kind NAT
persistence_timeout 50
protocol TCP
real_server 10.1.1.20 80 {
weight 10
HTTP_GET {
url {
path test.html
digest 46cfdd158b0cebd418a1770ab2841aa7
}
connect_port 80
connect_timeout 3
nb_get_retry 3
delay_before_retry 1
}
}
real_server 10.1.1.30 80 {
weight 10
HTTP_GET {
url {
path test.html
digest fd26b1d1c75fff7184241b0a4b0dccb7
}
connect_port 80
connect_timeout 2
nb_get_retry 3
delay_before_retry 1
}
}
}
output from configure:
Keepalived configuration
------------------------
Keepalived version : 1.1.13
Compiler : gcc
Compiler flags : -g -O2
Extra Lib : -lpopt -lssl -lcrypto
Use IPVS Framework : Yes
IPVS sync daemon support : Yes
Use VRRP Framework : Yes
Use LinkWatch : No
Use Debug flags : No
--
"We make a living by what we get, we make a life by what we give."
-Sir Winston Churchill (1874 - 1965)
|