LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: The problem of LVS/NAT

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: The problem of LVS/NAT
From: Horms <horms@xxxxxxxxxxxx>
Date: Sun, 16 Nov 2003 14:18:26 +0900
On Sat, Nov 15, 2003 at 05:49:19PM +0900, Kai wrote:
> Hi, list
>  I am using LVS/NAT on my system.
>  I set the Virutal Server by the following command.
> 
> iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o eth1 -j MASQUERADE
> /sbin/ipvsadm -A -t :80 -s wlc
> /sbin/ipvsadm -a -t 111.111.111.111:80 -r 192.168.1.11:80 -m
> /sbin/ipvsadm -a -t 111.111.111.111:80 -r 192.168.1.12:80 -m -w 2
> /sbin/ipvsadm -a -t 111.111.111.111:80 -r 192.168.1.13:80 -m
> /sbin/ipvsadm -a -t 111.111.111.111:80 -r 192.168.1.14:80 -m
> and it works fine.
> 
>  Today,the real server1(192.168.1.11) was down.I found the virtual server
> continued  delivering the request to server1 but didn't deliver the request
> to any other server again! So the whole system seems was down from the
> client .How can I resolve the problem ?

You really need to use a third-party application to monitor
the real servers and insert and remove them from the LVS kernel
table accordingly. ldirectord and keepalived are two 
good choices for this. There are others.

http://www.vergenet.net/linux/ldirectord/
http://keepalived.sourceforge.net/

-- 
Horms
<Prev in Thread] Current Thread [Next in Thread>