LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] debian lenny-lvs virtual IP

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: [lvs-users] debian lenny-lvs virtual IP
From: Marek Soha <marek@xxxxxxx>
Date: Sat, 14 Feb 2009 13:58:49 +0100
Hello all.

I followed "loadbalancing tutorial for mysql" at
http://www.howtoforge.com/loadbalanced_mysql_cluster_debian.
When I follow all steps, it didnt work for me.
The problem is, that ldirectord dont add virtual IP address to
interface from config. I tested a lot of scenarios to get it work, but
nothing happened.

Im using debian lenny, my configuration files is:

--
ha.cf

debugfile /var/log/ha-debug
logfile /var/log/ha-log
logfacility daemon
bcast        eth0
mcast eth0 225.0.0.1 694 1 0
auto_failback off
node        loadb1
respawn hacluster /usr/lib/heartbeat/ipfail
apiauth ipfail gid=haclient uid=hacluster

--
haresources

loadb1 \
ldirectord::ldirectord.cf \
LVSSyncDaemonSwap::master \
IPaddr2::197.232.181.29/23/eth0/197.232.181.255

--
ldirectord.cf

autoreload=no
logfile="/var/log/ldirectord.log"
quiescent=yes

virtual = 197.232.181.29:3306
        service = mysql
        real = 197.232.180.242:3306 gate
        real = 197.232.181.242:3306 gate
        checktype = negotiate
        login = "ldirector"
        passwd = "ldirectorpassword"
        database = "ldirectordb"
        request = "SELECT * FROM connectioncheck"
        scheduler = wrr
        protocol = tcp


--
interface configuration

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP 
qlen 100
    link/ether 11:11:43:0d:e5:78 brd ff:ff:ff:ff:ff:ff
    inet 197.232.181.243/23 brd 197.232.181.255 scope global eth0
    inet6 fe80::211:43ff:fe0d:e578/64 scope link
       valid_lft forever preferred_lft forever


The question is, why ldirector dont add virtual ip to interface...
Have you any idea?
Thanks in advance.

---------------=[**]=----------------- 

S prianim pekneho dna

             \\\\|//// 
             \\ _ _ // 
              ( o o ) 
+==========oOOo-(_)-oOOo==========+ 
             Marek Soha 
           marek@xxxxxxx
    snet.sk network administrator
          ICQ 146-284-791
          MSN spam@xxxxxxx
+==================Oooo===========+ 
             oooO  (  ) 
             (  )  ) / 
              \ ( (_/ 
               \_) 


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