LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] DR : real server unable to reach VIP

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [lvs-users] DR : real server unable to reach VIP
From: support@xxxxxxxxxx
Date: Thu, 28 May 2015 19:23:58 +0200
Dear Florent,

> 
> I'm using LVS with keepalived on Debian Wheezy.
> 
> I have 3 Real Servers:
> 10.111.17.170
> 10.111.17.171
> 10.111.17.172
> 
> And One VIP:
> 10.111.17.202
> 
> My service is running on port 3306.
>

OK .. looks  like an Mysql-NDB or MariaDB-Galea Cluster...

 
> VIP is not configured on RS (because I had others problems), so I use
> the iptables strategy on RS : iptables -t nat -A PREROUTING -p tcp -d
> 10.111.17.202 -j REDIRECT

you configured  NAT - but expected funtions of DR - and from that mixed up.

if you want LVS-NAT , then the realservers must BEHIND the LVS LoadBalancer at 
an second network connected to the LB1/LB1 in LVS-NAT Mode.


See LVS  docus : 
- 
http://www.austintek.com/LVS/LVS-HOWTO/mini-HOWTO/LVS-mini-HOWTO.html#example_LVS-NAT
- 
http://www.austintek.com/LVS/LVS-HOWTO/mini-HOWTO/LVS-mini-HOWTO.html#example_lvs_dr

see keepalive docu 
- 
http://www.hbyconsultancy.com/blog/two-nodes-load-balance-and-failover-with-keepalived-and-ubuntu-server-10-04-x64.html


Hope this helps.

--
Mit freundlichen Grüßen / Best Regards

Horst Venzke ; PGP NET : 1024G/082F2E6D ;  http://www.remsnet.de - 1995 - 2015 
-  20 Jahre Linux/Unix Support.

Legal Notice: This transmittal and/or attachments may be privileged or 
confidential. It is intended solely for the addressee named above. Any review, 
dissemination, or copying is strictly prohibited. If you received this 
transmittal in error, please notify us immediately by reply and immediately 
delete this message and all


> Gesendet: Mittwoch, 20. Mai 2015 um 11:25 Uhr
> Von: "Florent B" <florent@xxxxxxxxxxx>
> An: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> Betreff: [lvs-users] DR : real server unable to reach VIP
>
> Hi everyone,
> 
> I'm using LVS with keepalived on Debian Wheezy.
> 
> I have 3 Real Servers:
> 10.111.17.170
> 10.111.17.171
> 10.111.17.172
> 
> And One VIP:
> 10.111.17.202
> 
> My service is running on port 3306.
> 
> VIP is not configured on RS (because I had others problems), so I use
> the iptables strategy on RS : iptables -t nat -A PREROUTING -p tcp -d
> 10.111.17.202 -j REDIRECT
> 
> LVS is configured to send all connections to VIP in priority on
> 10.111.17.170 if it's alive.
> 
> My problem is that I can't connect to VIP:3306 from this real server !
> 
> Packets are sent, received by LVS but it seems to ignore them when
> source mac address is the same as (computed) destination mac address.
> 
> I really need to go through LVS and not REDIRECT OUTPUT packets on each RS.
> 
> Has anyone an idea of what's wrong with my setup and to fix it ?
> 
> Thank you a lot.
> 
> Florent
> 
> _______________________________________________
> 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
>

Attachment: addressbook.vcf
Description: Vcard

_______________________________________________
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>