drogic6
2008-08-20, 03:43 PM CDT
I'm playing with this for more then 15 hours now and I'm stuck. according to the log files heartbeat is up, ldirectord too, ipvsadm displays virtual->real mapping correctly but I CAN'T SEE virtual ip address with ip addr sh eth2 and hence, can't connect with mysql client to that ip. Connection to mysql cluster nodes works perfectly
here is my cf:
ha.cf
debugfile /var/log/ha-debug
logfile /var/log/ha-log
logfacility local0
keepalive 2
deadtime 30
mcast eth2 225.0.0.1 694 1 0
bcast eth2
auto_failback on
node sk1.running-dogs.hr
respawn hacluster /usr/lib/heartbeat/ipfail
haresources
sk1.running-dogs.hr ldirectord::ldirectord.cf LVSSyncDaemonSwap::master IPaddr2::192.168.3.128/24/eth2/192.168.3.255
ldirectord.cf
# Global Directives
checktimeout=10
checkinterval=2
autoreload=yes
logfile="local0"
quiescent=yes
virtual = 192.168.3.128:3306
service = mysql
real = 192.168.2.107:3306 gate
real = 192.168.3.108:3306 gate
checktype = negotiate
login = "xxxxxxx"
passwd = "xxxxxxxxx"
database = "xxxxxxx"
request = "SELECT * FROM connectioncheck"
scheduler = wrr
What confuses me that everything is up, but no VIP to connect to.
Please help.
here is my cf:
ha.cf
debugfile /var/log/ha-debug
logfile /var/log/ha-log
logfacility local0
keepalive 2
deadtime 30
mcast eth2 225.0.0.1 694 1 0
bcast eth2
auto_failback on
node sk1.running-dogs.hr
respawn hacluster /usr/lib/heartbeat/ipfail
haresources
sk1.running-dogs.hr ldirectord::ldirectord.cf LVSSyncDaemonSwap::master IPaddr2::192.168.3.128/24/eth2/192.168.3.255
ldirectord.cf
# Global Directives
checktimeout=10
checkinterval=2
autoreload=yes
logfile="local0"
quiescent=yes
virtual = 192.168.3.128:3306
service = mysql
real = 192.168.2.107:3306 gate
real = 192.168.3.108:3306 gate
checktype = negotiate
login = "xxxxxxx"
passwd = "xxxxxxxxx"
database = "xxxxxxx"
request = "SELECT * FROM connectioncheck"
scheduler = wrr
What confuses me that everything is up, but no VIP to connect to.
Please help.