Dear netters,
Can someone give me a pointer? I am new to this group and I am having
issue with my simple http virtual server operation:
I have two http realservers: ra and rb, both running on redhat kernel
2.6 2.6.9-42.0.10.EL and 'sysctl -p' shows:
[root@ra ~]# sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.conf.eth0.arp_ignore = 1
net.ipv4.conf.eth0.arp_announce = 2
net.ipv4.conf.all.arp_ignore = 1
net.ipv4.conf.all.arp_announce = 2
and ifconfig shows:
[root@ra ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:02:B3:EF:C8:BF
inet addr:10.1.0.170 Bcast:10.1.0.255 Mask:255.255.255.0
lo:1 Link encap:Local Loopback
inet addr:10.1.0.200 Mask:255.255.255.255
UP LOOPBACK RUNNING MTU:16436 Metric:1
And VIP is lo:1, same as the other realserver rb's.
On LVS server, I have simple setup:
[root@sv-vs2 tmp]# ipvsadm -L
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP sv-vs-virtual.sv.counterpane lblc
-> ra:http Route 100 0 4
-> rb:http Route 100 0 0
Everything works fine if I have both httpd servers up except when I
shutdown one of realservers, the http client
can not connect to the remaining good realserver via LVS:
bash-2.05# telnet sv-vs-virtual 80
Trying 10.1.0.200...
telnet: Unable to connect to remote host: Connection refused
The LVS is running on kernel version 2.6.20.
Any ideas on where I did wrong? Your shedding a light will be greatly
appreciated!!
Lufan
One
|