> You have to determine *why* it's setting the weight to 0. Some sort of
> healthcheck is failing, by the look of it.
>
> How about you let us see your ldirectord config?
>
I WAS RUNNING LDIRECTORD IN DEBUG MODE:
[root@mysqlha1 run]# /usr/sbin/ldirectord -d /etc/ha.d/ldirectord.cf start
DEBUG2: Running exec(/usr/sbin/ldirectord -d /etc/ha.d/ldirectord.cf start)
Running exec(/usr/sbin/ldirectord -d /etc/ha.d/ldirectord.cf start)
DEBUG2: Starting Linux Director v1.77.2.32 with pid: 4086
Starting Linux Director v1.77.2.32 with pid: 4086
DEBUG2: Running system(/sbin/ipvsadm -E -t 192.168.0.240:3306 -s wrr )
Running system(/sbin/ipvsadm -E -t 192.168.0.240:3306 -s wrr )
DEBUG2: Changed virtual server: 192.168.0.240:3306
Changed virtual server: 192.168.0.240:3306
DEBUG2: Disabled server=192.168.0.4
DEBUG2: Disabled server=192.168.0.5
DEBUG2: Checking negotiate: real
server=negotiate:mysql:tcp:192.168.0.4:3306:::\/SELECT\ \*\ FROM\
connectioncheck: (virtual=tcp:192.168.0.240:3306)
Can't locate DBI.pm in @INC (@INC contains:
Found out that I needed the extra perl modules for mysql connection
check, done by ldirectord:
yum install perl-DBI perl-DBD-MySQL
|