MHA自动切换步骤及过程剖析(四)

2015-11-21 01:45:19 · 作者: · 浏览: 26
2 2015 - [info] Current Alive Master: vdbsrv1(192.168.1.6:3306) Mon Apr 20 14:27:42 2015 - [info] Checking slave configurations.. Mon Apr 20 14:27:42 2015 - [info] read_only=1 is not set on slave vdbsrv2(192.168.1.7:3306). Mon Apr 20 14:27:42 2015 - [info] Checking replication filtering settings.. Mon Apr 20 14:27:42 2015 - [info] binlog_do_db= , binlog_ignore_db= Mon Apr 20 14:27:42 2015 - [info] Replication filtering check ok. Mon Apr 20 14:27:42 2015 - [info] GTID (with auto-pos) is not supported Mon Apr 20 14:27:42 2015 - [info] Starting SSH connection tests.. Mon Apr 20 14:27:43 2015 - [info] All SSH connection tests passed successfully. Mon Apr 20 14:27:43 2015 - [info] Checking MHA Node version.. Mon Apr 20 14:27:44 2015 - [info] Version check ok. Mon Apr 20 14:27:44 2015 - [info] Checking SSH publickey authentication settings on the current master.. Mon Apr 20 14:27:44 2015 - [info] HealthCheck: SSH to vdbsrv1 is reachable. Mon Apr 20 14:27:44 2015 - [info] Master MHA Node version is 0.56. Mon Apr 20 14:27:44 2015 - [info] Checking recovery script configurations on vdbsrv1(192.168.1.6:3306).. Mon Apr 20 14:27:44 2015 - [info] Executing command: save_binary_logs --command=test --start_pos=4 --binlog_dir=/data/mysqldata --output_file=/var/tmp/save_binary_logs_test --manager_version=0.56 --start_file=mysql-bin.000020 Mon Apr 20 14:27:44 2015 - [info] Connecting to root@192.168.1.6(vdbsrv1:22).. Creating /var/tmp if not exists.. ok. Checking output directory is accessible or not.. ok. Binlog found at /data/mysqldata, up to mysql-bin.000020 Mon Apr 20 14:27:44 2015 - [info] Binlog setting check done. Mon Apr 20 14:27:44 2
015 - [info] Checking SSH publickey authentication and checking recovery script configurations on all alive slave servers.. Mon Apr 20 14:27:44 2015 - [info] Executing command : apply_diff_relay_logs --command=test --slave_user='mha' --slave_host=vdbsrv2 --slave_ip=192.168.1.7 --slave_port=3306 --workdir=/var/tmp --target_version=5.6.22-log --manager_version=0.56 --relay_log_info=/data/mysqldata/relay-log.info --relay_dir=/data/mysqldata/ --slave_pass=xxx Mon Apr 20 14:27:44 2015 - [info] Connecting to root@192.168.1.7(vdbsrv2:22).. Checking slave recovery environment settings.. Opening /data/mysqldata/relay-log.info ... ok. Relay log found at /data/mysqldata, up to vdbsrv2-relay-bin.000002 Temporary relay log file is /data/mysqldata/vdbsrv2-relay-bin.000002 Testing mysql connection and privileges.. done. Testing mysqlbinlog output.. done. Cleaning up test file(s).. done. Mon Apr 20 14:27:45 2015 - [info] Executing command : apply_diff_relay_logs --command=test --slave_user='mha' --slave_host=vdbsrv3 --slave_ip=192.168.1.8 --slave_port=3306 --workdir=/var/tmp --target_version=5.6.22-log --manager_version=0.56 --relay_log_info=/data/mysqldata/relay-log.info --relay_dir=/data/mysqldata/ --slave_pass=xxx Mon Apr 20 14:27:45 2015 - [info] Connecting to root@192.168.1.8(vdbsrv3:22).. Checking slave recovery environment settings.. Opening /data/mysqldata/relay-log.info ... ok. Relay log found at /data/mysqldata, up to vdbsrv3-relay-bin.000002 Temporary relay log file is /data/mysqldata/vdbsrv3-relay-bin.000002 Testing mysql connection and privileges.. done. Testing mysqlbinlog output.. done. Cleaning up test file(s).. done. Mon Apr