LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] LVS-DR problem.

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] LVS-DR problem.
From: Thomas Pedoussaut <thomas@xxxxxxxxxxxxxx>
Date: Tue, 24 Feb 2009 15:00:59 +0000
Meghanand Acharekar wrote:
> Revisiting my setup
>
> Hi,
>
> I having following setup for LVS-DR cluster.
> Having 3 machine ( 1 director & 2 real servers) with following settings
>
> Director
>
> IP    eth0   : 192.168.0.10  ( Netmask : 255.255.255.224 )
> VIP  eth0:1 : 192.168.0.110 ( Netmask : 255.255.255.224 )
>   
I have put a /32 for the VIP, not a /27.
And for the real IP, a /27 isn't big enough to reach .110 from .10
> Realserver 1
>
> IP    eth0   : 192.168.0.11  ( Netmask : 255.255.255.224 )
> lo:0   : 192.168.0.110 ( Netmask : 255.255.255.255 )
>
> Realserver 2
> IP    eth0   : 192.168.0.12   ( Netmask : 255.255.255.224 )
> lo:0   : 192.168.0.110    ( Netmask : 255.255.255.255 )
>
> * Enabled packet forwarding on Director
>
> net.ipv4.ip_forward = 1
>
>
> on both the real server I have disabled arp by making following entries in
> /etc/sysctl.conf
> ( Kindly let me know if anything is wrong here )
>
>
> 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
>   

Did you run sysctl -p (or rebooted the real servers since) ?
> When I do a telnet to port 25 to VIP.
> It did not get any response
>
> [root@client1 ~]# telnet 192.168.0.110 25
> Trying 192.168.0.110...
>
> But I observed that request is reaching Director but not getting passed to
> realservers from there.
> Checked following output
>
> [root@localhost ~]# ipvsadm -L -n --stats
> IP Virtual Server version 1.2.1 (size=4096)
> Prot LocalAddress:Port               Conns   InPkts  OutPkts  InBytes
> OutBytes
>   -> RemoteAddress:Port
> TCP  192.168.0.110:25                  36       56        0     3360
> 0
>   -> 192.168.0.11:25                      22       33        0
> 1980        0
>   -> 192.168.0.12:25                      14       23        0
> 1380        0
>
> Not able to find out whats wrong :-(
>
> I did LVS setup several time using LVS-NAT, but now facing lots of issues
> with LVS-DR
I'm pretty sure that you problem is linked with the network mask mismatch.

You can also tcpdump on the various machines  to find out if packet
arrive on the real servers or not.
-- 
Thomas

_______________________________________________
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

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