MHA报:[error][/usr/share/perl5/vendor_perl/MHA/SSHCheck.pm, ln63]
centos 6.5
mysql5.7
mha0.57
master:192.168.1.11 mha node
slave:192.168.1.12 mha manager
信任关系配完,作masterha_check_ssh --conf=/etc/masterha/app2.conf 时报[error][/usr/share/perl5/vendor_perl/MHA/SSHCheck.pm, ln63]
解决方法:
在/etc/masterha/app2.conf中 不能加mha manager 节点
[server default]
#mha manager工作目录
manager_workdir = /var/log/masterha/app2
manager_log = /var/log/masterha/app2/app2.log
remote_workdir = /var/log/masterha/app2
[server1]
hostname=192.168.1.11
master_binlog_dir = /data/mysql/mysql3306/logs
candidate_master = 1
check_repl_delay = 0 #用防止master故障时,切换时slave有延迟,卡在那里切不过来。
#[server2]
#hostname=192.168.9.244
#master_binlog_dir=/data/mysql/mysql3306/logs
#candidate_master=1
#check_repl_delay=0
#切换调用的脚本
master_ip_failover_script= /etc/masterha/master_ip_failover_app2