Quoting Joseph Mack NA3T <jmack@xxxxxxxx>:
> On Wed, 25 Jun 2008, Stephen Amadei wrote:
>
>> Each Real Server runs HTTP and MySQL. Both have separate
>> VIP IPs, and I can use them fine from outside the LVS
>> cluster. I wanted to have the HTTP servers access the
>> MySQL VIP session... but this doesn't work.
>
> http://www.austintek.com/LVS/LVS-HOWTO/mini-HOWTO/LVS-mini-HOWTO.html#gotchas
>
> Joe
>
I've tried these methods as well and I can confirm that they do not
work - at least on my kernel version 2.6.24
# ipvsadm -Ln
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
<snip>
TCP 66.151.104.42:25 rr persistent 50
-> 66.151.104.45:25 Route 1 0 0
-> 66.151.104.43:25 Route 1 0 0
# iptables -L -t mangle -v
<snip>
Chain OUTPUT (policy ACCEPT 25679 packets, 2670K bytes)
pkts bytes target prot opt in out source
destination
6 360 MARK tcp -- any any anywhere
mailscanner.businessgrade.com tcp dpt:smtp MARK set 0x2
# ip rule show
0: from all lookup local
100: from all fwmark 0x2 lookup 100
32766: from all lookup main
32767: from all lookup default
# ip route show table 100
local default dev lo scope host
Have I done something wrong. 2.6.24 kernel ip_vs_core.c has the
mentioned patch applied..
--------------------------------------------------------------------------------
This email and any files transmitted with it are confidential and are
intended solely for the use of the individual or entity to whom they
are addressed. This communication may contain material protected by
the attorney-client privilege. If you are not the intended recipient,
be advised that any use, dissemination, forwarding, printing or
copying is strictly prohibited. If you have received this email in
error, please contact the sender and delete all copies.
|