LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

LVS-TUN not working

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: LVS-TUN not working
From: "Mohammed A Ahmed" <kingmo@xxxxxxxxxxxxxxxx>
Date: Thu, 6 Apr 2006 16:09:41 +0100
Hello,

I have been trying for the past couple of days to setup a lvs mail cluster using lvs-tun. My configuration is as follows:

Network Config:
x2 Directors
Client & x2 LVS directors on the same public subnet (213.48.252.192/27 - eth0)
Directors have a private subnet connection on eth2 (172.x.x.x - eth2)
Directors have the gateway of real servers for internet access

Director1 eth0: 213.48.252.198
Director1 VIP address eth0:213.48.252.200
Director1 eth2: 172.25.240.35

Director2 as above but on next ip address.

x2 Real Servers
Real severs on public subnet of (213.48.252.48/28 - eth0)
Real servers also on same private subnet as directors (172.x.x.x - eth2)
Real servers directly route out to net.

Real server1 eth0: 213.48.252.52 / Real server2 eth0: 213.48.252.53
Real server2 eth2: 172.25.240.33 / Real server2 eth2: 172.25.240.34
Real server1 eth2:1 172.25.240.37 - shared + plus GW for Direcotrs

Software Config:

Directors
Directors & Real servers running Redhat ES4
Directors running "ipvsadm v1.24 2003/06/07 (compiled with popt and IPVS v1.2.0)"
Running Linux HA + ldirectord  for VS control

Real Servers
Real servers running Exim 4 & Linux HA for failover
tunl0 up with no arp & rp_filter set to 0
No IP Tables running

Every time i'm connecting from the client machine (telnet to vip:port) the connection just hangs and i'm not getting any connections through to the mail servers. ipvsadm reports the following:

/sbin/ipvsadm -L -c -n
IPVS connection entries
pro expire state       source             virtual            destination
TCP 00:49 SYN_RECV 213.48.252.196:43305 213.48.252.200:25 172.25.240.33:25 TCP 00:48 SYN_RECV 213.48.252.196:43303 213.48.252.200:25 172.25.240.33:25 TCP 00:47 SYN_RECV 213.48.252.196:43302 213.48.252.200:25 172.25.240.34:25 TCP 00:46 SYN_RECV 213.48.252.196:43301 213.48.252.200:25 172.25.240.33:25 TCP 00:15 SYN_RECV 213.48.252.196:43292 213.48.252.200:25 172.25.240.34:25 TCP 00:49 SYN_RECV 213.48.252.196:43304 213.48.252.200:25 172.25.240.34:25

ldirectord.cf
# Global Directives
checktimeout=10
checkinterval=10
#fallback=127.0.0.1:25
autoreload=yes
logfile="/var/log/ldirectord.log"|local0
#quiescent=yes

## Virtual Service for SMTP
virtual=213.48.252.200:25
#       fallback=127.0.0.1:25
       real=172.25.240.33:25 ipip
       real=172.25.240.34:25 ipip
       checktype=on
       service=smtp
       checkport=25
       scheduler=rr
       #persistent=600
       protocol=tcp

I've followed the docs but cannot work out why this is not working.

I have also tried LVS-NAT & LVS-DR with no joy, can someone please help.

Thanks,

Mohammed



<Prev in Thread] Current Thread [Next in Thread>
  • LVS-TUN not working, Mohammed A Ahmed <=