mha manager启动的时候做的操作

来源:互联网 发布:千牛软件下载 编辑:程序博客网 时间:2024/04/27 19:27

Thu Apr 27 16:42:58 2017 - [info] MHA::MasterMonitor version 0.56.
Thu Apr 27 16:42:58 2017 - [info] GTID failover mode = 0
Thu Apr 27 16:42:58 2017 - [info] Dead Servers:
Thu Apr 27 16:42:58 2017 - [info] Alive Servers:
Thu Apr 27 16:42:58 2017 - [info] hz-xx.h.lmlc(xx:3333)
Thu Apr 27 16:42:58 2017 - [info] hz-xxxx(xxx:3333)
Thu Apr 27 16:42:58 2017 - [info] biee(xxx:3333)
Thu Apr 27 16:42:58 2017 - [info] Alive Slaves:
Thu Apr 27 16:42:58 2017 - [info] xx.h.lmlc(xx:3333) Version=5.6.25-log (oldest major version between slaves) log-bin:enabled
Thu Apr 27 16:42:58 2017 - [info] Replicating from xx(xx:3333)
Thu Apr 27 16:42:58 2017 - [info] Primary candidate for the new Master (candidate_master is set)
Thu Apr 27 16:42:58 2017 - [info] biee(xx:3333) Version=5.6.25-log (oldest major version between slaves) log-bin:enabled
Thu Apr 27 16:42:58 2017 - [info] Replicating from xx(xxx:3333)
Thu Apr 27 16:42:58 2017 - [info] Primary candidate for the new Master (candidate_master is set)
Thu Apr 27 16:42:58 2017 - [info] Current Alive Master: xxx(xxx:3333)
Thu Apr 27 16:42:58 2017 - [info] Checking slave configurations..
Thu Apr 27 16:42:58 2017 - [info] read_only=1 is not set on slave xxx.h.lmlc(xx3333).
Thu Apr 27 16:42:58 2017 - [warning] relay_log_purge=0 is not set on slave xx3.h.lmlc(xxx:3333).
Thu Apr 27 16:42:58 2017 - [info] read_only=1 is not set on slave biee(xxx:3333).
Thu Apr 27 16:42:58 2017 - [warning] relay_log_purge=0 is not set on slave biee(xx3333).
Thu Apr 27 16:42:58 2017 - [info] Checking replication filtering settings..
Thu Apr 27 16:42:58 2017 - [info] binlog_do_db= , binlog_ignore_db=
Thu Apr 27 16:42:58 2017 - [info] Replication filtering check ok.
Thu Apr 27 16:42:58 2017 - [info] GTID (with auto-pos) is not supported
Thu Apr 27 16:42:58 2017 - [info] Starting SSH connection tests..
Thu Apr 27 16:43:00 2017 - [info] All SSH connection tests passed successfully.
Thu Apr 27 16:43:00 2017 - [info] Checking MHA Node version..
Thu Apr 27 16:43:01 2017 - [info] Version check ok.
Thu Apr 27 16:43:01 2017 - [info] Checking SSH publickey authentication settings on the current master..
Thu Apr 27 16:43:01 2017 - [info] HealthCheck: SSH to xxxx is reachable.
Thu Apr 27 16:43:02 2017 - [info] Master MHA Node version is 0.56.
Thu Apr 27 16:43:02 2017 - [info] Checking recovery script configurations on xxx(xxx:3333)..
Thu Apr 27 16:43:02 2017 - [info] Executing command: save_binary_logs –command=test –start_pos=4 –binlog_dir=/data/mysql_3333 –output_file=/mha/workdir/3333/save_binary_logs_test –manager_version=0.56 –start_file=mysql-bin.000007
Thu Apr 27 16:43:02 2017 - [info] Connecting to concert@xx(xxxx:88)..
Creating /mha/workdir/3333 if not exists.. ok.
Checking output directory is accessible or not..
ok.
Binlog found at /data/mysql_3333, up to mysql-bin.000007
Thu Apr 27 16:43:02 2017 - [info] Binlog setting check done.
Thu Apr 27 16:43:02 2017 - [info] Checking SSH publickey authentication and checking recovery script configurations on all alive slave servers..
Thu Apr 27 16:43:02 2017 - [info] Executing command : apply_diff_relay_logs –command=test –slave_user=’masterha’ –slave_host=xxxx.h.lmlc –slave_ip=xxx –slave_port=3333 –workdir=/mha/workdir/3333 –target_version=5.6.25-log –manager_version=0.56 –relay_dir=/data/mysql_3333 –current_relay_log=xxx-relay-bin.000006 –slave_pass=xxx
Thu Apr 27 16:43:02 2017 - [info] Connecting to concert@xxx(xxx.h.lmlc:88)..
Checking slave recovery environment settings..
Relay log found at /data/mysql_3333, up to xxx-relay-bin.000007
Temporary relay log file is /data/mysql_3333/xxx-relay-bin.000007
Testing mysql connection and privileges..Warning: Using a password on the command line interface can be insecure.
done.
Testing mysqlbinlog output.. done.
Cleaning up test file(s).. done.
Thu Apr 27 16:43:03 2017 - [info] Executing command : apply_diff_relay_logs –command=test –slave_user=’masterha’ –slave_host=biee –slave_ip=xxx –slave_port=3333 –workdir=/mha/workdir/3333 –target_version=5.6.25-log –manager_version=0.56 –relay_dir=/data/mysql_3333 –current_relay_log=biee-relay-bin.000003 –slave_pass=xxx
Thu Apr 27 16:43:03 2017 - [info] Connecting to concert@xxxx(biee:88)..
Checking slave recovery environment settings..
Relay log found at /data/mysql_3333, up to biee-relay-bin.000004
Temporary relay log file is /data/mysql_3333/biee-relay-bin.000004
Testing mysql connection and privileges..Warning: Using a password on the command line interface can be insecure.
done.
Testing mysqlbinlog output.. done.
Cleaning up test file(s).. done.
Thu Apr 27 16:43:03 2017 - [info] Slaves settings check done.
Thu Apr 27 16:43:03 2017 - [info]
xx(xxx:3333) (current master)
+–xxxx.h.lmlc(xxx:3333)
+–biee(xxxx:3333)

Thu Apr 27 16:43:03 2017 - [info] Checking master_ip_failover_script status:
Thu Apr 27 16:43:03 2017 - [info] /home/dba_scripts/masterha/master_ip_failover.sh –command=status –ssh_user=xx –orig_master_host=xxx –orig_master_ip=xxx –orig_master_port=3333 –orig_master_ssh_port=88
2017-04-27 16:43:03 master_ip_failover.sh [info]: ————-start check————
Thu Apr 27 16:43:03 2017 - [info] OK.
Thu Apr 27 16:43:03 2017 - [info] Checking shutdown script status:
Thu Apr 27 16:43:03 2017 - [info] /home/dba_scripts/masterha/power_manager.sh –command=status –ssh_user=xx –host=xxx –ip=xx –ssh_port=88
————-power off script do not power off machine————-
Thu Apr 27 16:43:03 2017 - [info] OK.
Thu Apr 27 16:43:03 2017 - [info] Set master ping interval 3 seconds.
Thu Apr 27 16:43:03 2017 - [warning] secondary_check_script is not defined. It is highly recommended setting it to check master reachability from two or more routes.
Thu Apr 27 16:43:03 2017 - [info] Starting ping health check on xxx(xxx:3333)..
Thu Apr 27 16:43:03 2017 - [info] Ping(SELECT) succeeded, waiting until MySQL doesn’t respond..

在master宕掉后,manager会连续ping3次,都不同就开始转移

0 0
原创粉丝点击