View Single Post
  #4  
Old 16th November 2011, 15:35
maykel535 maykel535 is offline
Member
 
Join Date: May 2009
Posts: 33
Thanks: 5
Thanked 3 Times in 2 Posts
Default I have th same problem

I have installed two loadbalanced and two webserver and it running OK very good. But i have installed two loadbalanced with two mysql server master/master with follow configuration in ldirectord.conf and in two nodes:


# Global Directives
checktimeout=10
checkinterval=2
autoreload=no
logfile="local0"
quiescent=yes

virtual=10.100.100.150:3306
real=10.100.100.151:3306 gate
real=10.100.100.152:3306 gate
fallback=127.0.0.1:3306 gate
service=mysql
checktype=negotiate
login="root"
passwd="comnet"
database="mysql"
request="SELECT * FROM user"
scheduler=wrr
protocol=tcp

I follow the tutorial as two webserver and I work fine but with two mysql server not found...No packet forwarding...

And the log /var/log/messages:

ResourceManager[3328]: 2011/11/16_14:25:54 info: Running /etc/ha.d/resource.d/ldirectord ldirectord.cf start
ResourceManager[3328]: 2011/11/16_14:25:55 info: Running /etc/ha.d/resource.d/LVSSyncDaemonSwap master start
LVSSyncDaemonSwap[3429]: 2011/11/16_14:25:55 info: ipvs_syncbackup down
LVSSyncDaemonSwap[3429]: 2011/11/16_14:25:55 info: ipvs_syncmaster up
LVSSyncDaemonSwap[3429]: 2011/11/16_14:25:55 info: ipvs_syncmaster obtained
IPaddr2[3476]: 2011/11/16_14:25:55 INFO: Resource is stopped
ResourceManager[3328]: 2011/11/16_14:25:55 info: Running /etc/ha.d/resource.d/IPaddr2 10.100.100.150/24/eth0/10.100.100.255 start
IPaddr2[3577]: 2011/11/16_14:25:55 INFO: ip -f inet addr add 10.100.100.150/24 brd 10.100.100.255 dev eth0
IPaddr2[3577]: 2011/11/16_14:25:55 INFO: ip link set eth0 up
IPaddr2[3577]: 2011/11/16_14:25:56 INFO: /usr/lib/heartbeat/send_arp -i 200 -r 5 -p /var/run/heartbeat/rsctmp/send_arp/send_arp-10.100.100.150 eth0 10.100.100.150 auto not_used not_used
IPaddr2[3553]: 2011/11/16_14:25:56 INFO: Success



I execute:

IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 10.100.100.150:3306 wrr
-> 10.100.100.151:3306 Route 0 0 0
-> 10.100.100.152:3306 Route 0 0 0
-> 127.0.0.1:3306 Local 1 0 0

But I think failed the ldirectord, because not running with mysql:

root@loadb1:/etc/ha.d# /etc/init.d/ldirectord status
* Running ldirectord status ldirectord stale pid file /var/run/ldirectord.ldirectord.cf.pid for /etc/ha.d/ldirectord.cf
ldirectord is stopped for /etc/ha.d/ldirectord.cf

Can I help me Falko, thanks in advanced.
Reply With Quote