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" <flor...@coppint.com> > An: lvs-users@linuxvirtualserver.org > 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@LinuxVirtualServer.org > Send requests to lvs-users-requ...@linuxvirtualserver.org > or go to http://lists.graemef.net/mailman/listinfo/lvs-users >
<<attachment: addressbook.vcf>>
_______________________________________________ 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