[lvs-users] Real Servers receive nothing

2009-05-26 Thread Guillaume Charhon
Hello,

I am trying to configure LVS on CentOS 5.3.
I have followed the tuturial LVS-NAT on
http://www.ultramonkey.org/papers/lvs_tutorial/html/


I have typed on the load balancer :
ifconfig eth0:0 10.8.8.85 netmask 255.255.255.0 
ipvsadm -A -t 10.8.8.85:80
ipvsadm -a -t 10.8.8.85:80 -r 10.8.10.2:80 -m
ipvsadm -a -t 10.8.8.85:80 -r 10.8.10.3:80 -m

the ip forwarding is correctlt activated.

The network mask for every ip is 255.255.255.0.

Virtual IP = 10.8.8.85



|---|-
|eth0=10.8.9.1 
| 
  --|--   
  |  loadbalancer  |   
  |  router| 
  ||  
  --|--  
|eth1=10.8.10.1   
|  
|---|-|--|---
  |eth0=10.8.10.2|eth0=10.8.10.3
  |gateway=10.8.8.85 |gateway=10.8.8.85 
  |-||-|  
  |   rs1   ||   rs2   |   
  |_||_|  


It does not work and I don't have any ideas how to debug that.

Thank you very much for your help.

 


___
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-requ...@linuxvirtualserver.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


Re: [lvs-users] Real Servers receive nothing

2009-05-26 Thread Graeme Fowler
On Tue, 2009-05-26 at 14:04 +0800, Guillaume Charhon wrote:
 It does not work and I don't have any ideas how to debug that.

The default gateway for the realservers should be 10.8.10.1.

If the netmask for everything is 255.255.255.0 (/24) then they'll have
no idea how to route back to 10.8.8.85.

Graeme


___
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-requ...@linuxvirtualserver.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


Re: [lvs-users] Real Servers receive nothing

2009-05-26 Thread Thomas Pedoussaut
poiuytrez wrote:
 Hello,

 Ok, but the packets does not seems to go to the realservers. There is no log
 entry in apache. So the gateway is not the main problem.

   
IP 101 is your friend. I mean, SYN packets probably reach the RS, but
because the ACK arrive out of context on the client, the TCP connection
is never fully established, even less the HTTP connection, hence no
entries in your apache logs. You can probably confirm my theory in
running tcpdump on the RS, and you'll see the SYN packets arriving.

-- 
Thomas

___
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-requ...@linuxvirtualserver.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


Re: [lvs-users] cluster setup

2009-05-26 Thread Kaushal Shriyan
On Mon, May 25, 2009 at 10:38 PM, Graeme Fowler gra...@graemef.net wrote:

 On Mon, 2009-05-25 at 20:49 +0530, Kaushal Shriyan wrote:
  I have heartbeat 2.99 and ldirectord running on mthost04 and mthost03.
 when
  i stop apache on either of mthost05/02 it works as expected. when i stop
  primary node (mthost04) the failover does not happen. means to say that
  mthost03 does not take over. I am using /var/lib/heartbeat/crm/cib.xml
 file
  for resources

 You need to ask this over on the Linux-HA lists - that's where support
 for Heartbeat lives.

 Graeme


 ___
 Please read the documentation before posting - it's available at:
 http://www.linuxvirtualserver.org/

 LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
 Send requests to lvs-users-requ...@linuxvirtualserver.org
 or go to http://lists.graemef.net/mailman/listinfo/lvs-users


Hi Graeme

Thanks for the quick reply. is my setup correct ? or am i missing something
?.

Thanks and Regards

Kaushal
___
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-requ...@linuxvirtualserver.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


Re: [lvs-users] ldirectord: same port number used with NAT and Direct Routing + monitoring = problem

2009-05-26 Thread Daniel Lemay
Hi Simon,

apt-get install ldirectord

ii ldirectord 1.2.5-3 Monitors virtual services provided by LVS

Simon Horman wrote:
 Hi Daniel,

 This looks like a bug in ldirectord whereby it thinks
 192.168.58.56:/Route and 192.168.58.55:/Masq are the same
 thing and is using the same data structure to handle them internally.
 I'll look into this.

 Could you let me know how you installed ldirectord.
 Was it using the Debian ldirectord package for etch, if so, which version?


 ___
 Please read the documentation before posting - it's available at:
 http://www.linuxvirtualserver.org/

 LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
 Send requests to lvs-users-requ...@linuxvirtualserver.org
 or go to http://lists.graemef.net/mailman/listinfo/lvs-users
   

___
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-requ...@linuxvirtualserver.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


Re: [lvs-users] cluster setup

2009-05-26 Thread Graeme Fowler
On Tue, 2009-05-26 at 20:11 +0530, Kaushal Shriyan wrote:
 Thanks for the quick reply. is my setup correct ? or am i missing something
 ?.

I don't know; your question is not related to LVS itself but to
Heartbeat, which has its own support mailing list. You'll find it here:

http://lists.linux-ha.org/mailman/listinfo/linux-ha

Graeme


___
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-requ...@linuxvirtualserver.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


Re: [lvs-users] ldirectord: failed check doesn't remove a machine from the pool

2009-05-26 Thread Daniel Lemay
Hi Graeme,

I found that it was not because OK is an HTTP keyword that the check was 
not working,
but because OK is a substring of BR*OK*EN.

Daniel

Daniel Lemay wrote:
 Hi Graeme,

 You were correct. It is now working.

 Thank you

 Daniel

 Graeme Fowler wrote:
 On Mon, 2009-05-25 at 16:19 +, Daniel Lemay wrote:
   
 T 192.168.58.56:7778 - 192.168.58.2:60760 [AP]
   HTTP/1.1 200 OK..Date: Mon, 25 May 2009 16:06:14 GMT..Server: 
 

 Spot the OK above? ldirectord is matching on that.

 If you make your string something which isn't defined as a response code
 in the HTTP protocol, you'll probably make it work :)

 Try:

 SERVER_OK_RIGHT_NOW for OK
 SERVER_BUSTED for BROKEN

 Graeme


 ___
 Please read the documentation before posting - it's available at:
 http://www.linuxvirtualserver.org/

 LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
 Send requests to lvs-users-requ...@linuxvirtualserver.org
 or go to http://lists.graemef.net/mailman/listinfo/lvs-users
   
___
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-requ...@linuxvirtualserver.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


[lvs-users] List connections on server backup

2009-05-26 Thread Leandro Ferreira
Hello,

We having a problem where we use two servers as balancers LVS, one
master and other backup. However, my backup LVS server yet received
connections list. In the doc i saw a question about this and the answer
was that he could not list these connections.

(http://www.austintek.com/LVS/LVS-HOWTO/HOWTO/LVS-HOWTO.server_state_sync_demon.html)
 

1) Should the backup server list connections its received? 
  Horms 

  No 


 I did something wrong?

Note: 
This only occurs using TCP. Using realservers udp protocol with this
problem does not occur.


Leandro Ferreira


___
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-requ...@linuxvirtualserver.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


Re: [lvs-users] Real Servers receive nothing

2009-05-26 Thread poiuytrez

I have inverstigated deeper with filtering only the port 80. Packets now go
to 

The request is going to the real server, then go back to the load balancer
but never go back to the workstation. No output on eth0 to go out... (only
10.8.8.111  10.8.8.85)
Do I have to add a route or something like that ?

Thank you.


poiuytrez wrote:
 
 I have tried the tcp dump but it gives to much info, I don't really
 understand it, but it does not seems to have any http request.
 Here is a screen shoot at time of the request. The workstation that tries
 to retrive the page is 10.8.8.111.
  http://www.nabble.com/file/p23734830/screen.jpg 
 
 Thank you.
 
 
 
 
 Thomas Pedoussaut-2 wrote:
 
 poiuytrez wrote:
 Hello,

 Ok, but the packets does not seems to go to the realservers. There is no
 log
 entry in apache. So the gateway is not the main problem.

   
 IP 101 is your friend. I mean, SYN packets probably reach the RS, but
 because the ACK arrive out of context on the client, the TCP connection
 is never fully established, even less the HTTP connection, hence no
 entries in your apache logs. You can probably confirm my theory in
 running tcpdump on the RS, and you'll see the SYN packets arriving.
 
 -- 
 Thomas
 
 ___
 Please read the documentation before posting - it's available at:
 http://www.linuxvirtualserver.org/
 
 LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
 Send requests to lvs-users-requ...@linuxvirtualserver.org
 or go to http://lists.graemef.net/mailman/listinfo/lvs-users
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-lvs-users--Real-Servers-receive-nothing-tp23717632p23735056.html
Sent from the LVS mailing list archive at Nabble.com.


___
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-requ...@linuxvirtualserver.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


Re: [lvs-users] ldirectord feature patch - add abilility to signal system maintenance

2009-05-26 Thread Christian Balzer

Hello Simon,

On Tue, 26 May 2009 16:27:45 +1000 Simon Horman wrote:
 On Fri, May 22, 2009 at 06:08:18PM +0900, Christian Balzer wrote:
  
  Hello,
  
  One more thing I just noticed (must be part of the newer kernel since I
  never saw it before is that it states this in the kernel log when
  trying to (falsely) route packets to the dead RS:
  ---
  May 22 18:04:45 engtest02 kernel: [282126.815844] IPVS: SH: no
  destination available
 
 Is this causing trouble?
 
Err, come again? It is the first time that I see the scheduler actually
logging that it is falling flat on it's face despite the fact that it very
much has a working realserver and thus a destination available.
It is indication/acknowledgment of the problems with SH and quiescent=yes
I pointed out earlier in this thread.

Regards,

Christian
-- 
Christian BalzerNetwork/Systems EngineerNOC
ch...@gol.com   Global OnLine Japan/Fusion Network Services
http://www.gol.com/
https://secure3.gol.com/mod-pl/ols/index.cgi/?intr_id=F-2ECXvzcr6656

___
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-requ...@linuxvirtualserver.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users