LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Trouble setting up LVS/TUN

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Trouble setting up LVS/TUN
From: redirecting decoy <redirectingdecoy@xxxxxxxxx>
Date: Wed, 2 Feb 2005 10:22:31 -0800 (PST)
Joe,

> Is their a connection at the realserver (with
> netstat -a)? - if so
> the packet has got to the realserver.

No, the connection never makes it to the real server. 
I have no idea why. I set everything up according to
documentation. 

> Does the director show a connection from the client
> (probably
> InActConn)? if so the packet has got to the ip_vs
> code.
Yes, it does now anyway.  I made a small change to the
host which the uml is running on.  Simply had to
change the default gw to correct device (i.e
uml-bridge).

> Is the routing from the realserver(s) to the client
> directly  to the client and not via the director? 
I am not sure.  What would the best way to check be ?

It appears that I am unable to connect to the Real
servers. It might be a routing problem, although all
the realservers can ping the DIP, and vice versa.

here is the routing tables for my Director (uml),
RealServers, Uml-Host

Director:
#####################################################3
Destination     Gateway         Genmask         Flags
Metric Ref    Use Iface
192.168.10.0    0.0.0.0         255.255.255.0   U    
0      0        0 eth0
10.1.2.0        0.0.0.0         255.255.255.0   U    
0      0        0 eth2
10.1.3.0        0.0.0.0         255.255.255.0   U    
0      0        0 eth3
0.0.0.0         192.168.10.1    0.0.0.0         UG   
0      0        0 eth0


Real Server:
#####################################################3
169.254.0.0     0.0.0.0         255.255.0.0     U    
0      0        0 eth0
10.0.0.0        0.0.0.0         255.0.0.0       U    
0      0        0 eth0
224.0.0.0       0.0.0.0         240.0.0.0       U    
0      0        0 eth0
0.0.0.0         10.1.2.1        0.0.0.0         UG   
0      0        0 eth0

UML-Host:
#####################################################3
192.168.10.0    0.0.0.0         255.255.255.0   U    
0      0        0 uml-bridge
10.0.0.0        0.0.0.0         255.0.0.0       U    
0      0        0 eth0
224.0.0.0       0.0.0.0         240.0.0.0       U    
0      0        0 eth0
0.0.0.0         192.168.10.1    0.0.0.0         UG   
0      0        0 uml-bridge


BTW: it appears the the load-balancing functionality
does work.  I tried making 2 connectings to the VIP 
(port 80),
and "IsActConn" had a "1" in each row, i.e. for each
of my real servers (2 of them). 

If only the connection would make it there.  Would
this be caused by incorrect routing on the director,
or the real server?

-R.D.


--- Joseph Mack <mack.joseph@xxxxxxx> wrote:

> redirecting decoy wrote:
> > 
> > Hello,
> > 
> > I am new to LVS and am having some trouble getting
> it
> > setup and running.
> > I am attempting to do Tunneling with 2 real
> machines,
> > and 1 director (running inside of a uml).
> 
> assuming you've handled the uml correctly...
> 
> > Now, according to documentation, everything I have
> > done should work.  However from an
> > external machine, (192.168.10.15), if I attempt to
> > connect to 192.168.10.111:80 (VIP),
> > my connection just hangs there and eventually
> times
> > out. 
> 
> Is their a connection at the realserver (with
> netstat -a)? - if so
> the packet has got to the realserver.
> 
> Does the director show a connection from the client
> (probably
> InActConn)? if so the packet has got to the ip_vs
> code.
> 
> Is the routing from the realserver(s) to the client
> directly
> to the client and not via the director? 
> 
> 
> Joe
> 
> 
> -- 
> Joseph Mack PhD, High Performance Computing &
> Scientific Visualization
> LMIT, Supporting the EPA Research Triangle Park, NC
> 919-541-0007
> Federal Contact - John B. Smith 919-541-1087 -
> smith.johnb@xxxxxxx
> _______________________________________________
> LinuxVirtualServer.org mailing list -
> lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> Send requests to
> lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
> or go to
> http://www.in-addr.de/mailman/listinfo/lvs-users
> 



                
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250

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