Fri Jul 15 10:50:00 2016 - [warning] Got error on MySQL select ping: 2006 (MySQL server has gone away)
Fri Jul 15 10:50:00 2016 - [info] Executing secondary network check script: /usr/local/bin/masterha_secondary_check -s 222.26.224.237 -s 222.26.224.238
Fri Jul 15 10:50:00 2016 - [info] Executing SSH check script: exit 0
Fri Jul 15 10:50:00 2016 - [info] HealthCheck: SSH to 222.26.224.238 is reachable.
Monitoring server 222.26.224.237 is reachable, Master is not reachable from 222.26.224.237\. OK.
Monitoring server 222.26.224.238 is reachable, Master is not reachable from 222.26.224.238\. OK.
Fri Jul 15 10:50:00 2016 - [info] Master is not reachable from all other monitoring servers. Failover should start.
Fri Jul 15 10:50:01 2016 - [warning] Got error on MySQL connect: 2013 (Lost connection to MySQL server at 'reading initial communication packet', system error: 111)
Fri Jul 15 10:50:01 2016 - [warning] Connection failed 2 time(s)..
Fri Jul 15 10:50:02 2016 - [warning] Got error on MySQL connect: 2013 (Lost connection to MySQL server at 'reading initial communication packet', system error: 111)
Fri Jul 15 10:50:02 2016 - [warning] Connection failed 3 time(s)..
Fri Jul 15 10:50:03 2016 - [warning] Got error on MySQL connect: 2013 (Lost connection to MySQL server at 'reading initial communication packet', system error: 111)
Fri Jul 15 10:50:03 2016 - [warning] Connection failed 4 time(s)..
Fri Jul 15 10:50:03 2016 - [warning] Master is not reachable from health checker!
Fri Jul 15 10:50:03 2016 - [warning] Master 222.26.224.238(222.26.224.238:3306) is not reachable!
Fri Jul 15 10:50:03 2016 - [warning] SSH is reachable.
Fri Jul 15 10:50:03 2016 - [info] Connecting to a master server failed. Reading configuration file /etc/masterha_default.cnf and /etc/masterha/app1.cnf again, and trying to connect to all servers to check server status..
Fri Jul 15 10:50:03 2016 - [warning] Global configuration file /etc/masterha_default.cnf not found. Skipping.
Fri Jul 15 10:50:03 2016 - [info] Reading application default configuration from /etc/masterha/app1.cnf..
Fri Jul 15 10:50:03 2016 - [info] Reading server configuration from /etc/masterha/app1.cnf..
Fri Jul 15 10:50:04 2016 - [info] GTID failover mode = 1
Fri Jul 15 10:50:04 2016 - [info] Dead Servers:
Fri Jul 15 10:50:04 2016 - [info] 222.26.224.238(222.26.224.238:3306)
Fri Jul 15 10:50:04 2016 - [info] Alive Servers:
Fri Jul 15 10:50:04 2016 - [info] 222.26.224.237(222.26.224.237:3306)
Fri Jul 15 10:50:04 2016 - [info] 222.26.224.236(222.26.224.236:3306)
Fri Jul 15 10:50:04 2016 - [info] Alive Slaves:
Fri Jul 15 10:50:04 2016 - [info] 222.26.224.237(222.26.224.237:3306) Version=5.7.13-log (oldest major version between slaves) log-bin:enabled
Fri Jul 15 10:50:04 2016 - [info] GTID ON
Fri Jul 15 10:50:04 2016 - [info] Replicating from 222.26.224.238(222.26.224.238:3306)
Fri Jul 15 10:50:04 2016 - [info] Primary candidate for the new Master (candidate_master is set)
Fri Jul 15 10:50:04 2016 - [info] 222.26.224.236(222.26.224.236:3306) Version=5.7.13-log (oldest major version between slaves) log-bin:enabled
Fri Jul 15 10:50:04 2016 - [info] GTID ON
Fri Jul 15 10:50:04 2016 - [info] Replicating from 222.26.224.238(222.26.224.238:3306)
Fri Jul 15 10:50:04 2016 - [info] Checking slave configurations..
Fri Jul 15 10:50:04 2016 - [info] Checking replication filtering settings..
Fri Jul 15 10:50:04 2016 - [info] Replication filtering check ok.
Fri Jul 15 10:50:04 2016 - [info] Master is down!
Fri Jul 15 10:50:04 2016 - [info] Terminating monitoring script.
Fri Jul 15 10:50:04 2016 - [info] Got exit code 20 (Master dead).
Fri Jul 15 10:50:04 2016 - [info] MHA::MasterFailover version 0.56.
Fri Jul 15 10:50:04 2016 - [info] Starting master failover.
Fri Jul 15 10:50:04 2016 - [info]
Fri Jul 15 10:50:04 2016 - [info] * Phase 1: Configuration Check Phase..
Fri Jul 15 10:50:04 2016 - [info]
Fri Jul 15 10:50:05 2016 - [info] GTID failover mode = 1
Fri Jul 15 10:50:05 2016 - [info] Dead Servers:
Fri Jul 15 10:50:05 2016 - [info] 222.26.224.238(222.26.224.238:3306)
Fri Jul 15 10:50:05 2016 - [info] Checking master reachability via MySQL(double check)...
Fri Jul 15 10:50:05 2016 - [info] ok.
Fri Jul 15 10:50:05 2016 - [info] Alive Servers:
Fri Jul 15 10:50:05 2016 - [info] 222.26.224.237(222.26.224.237:3306)
Fri Jul 15 10:50:05 2016 - [info] 222.26.224.236(222.26.224.236:3306)
Fri Jul 15 10:50:05 2016 - [info] Alive Slaves:
Fri Jul 15 10:50:05 2016 - [info] 222.26.224.237(222.26.224.237:3306) Version=5.7.13-log (oldest major version between slaves) log-bin:enabled
Fri Jul 15 10:50:05 2016 - [info] GTID ON
Fri Jul 15 10:50:05 2016 - [info] Replicating from 222.26.224.238(222.26.224.238:3306)
Fri Jul 15 10:50:05 2016 - [info] Primary candidate for the new Master (candidate_master is set)
Fri Jul 15 10:50:05 2016 - [info] 222.26.224.236(222.26.224.236:3306) Version=5.7.13-log (oldest major version between slaves) log-bin:enabled
Fri Jul 15 10:50:05 2016 - [info] GTID ON
Fri Jul 15 10:50:05 2016 - [info] Replicating from 222.26.224.238(222.26.224.238:3306)
Fri Jul 15 10:50:05 2016 - [info] Starting GTID based failover.
Fri Jul 15 10:50:05 2016 - [info]
Fri Jul 15 10:50:05 2016 - [info] ** Phase 1: Configuration Check Phase completed.
Fri Jul 15 10:50:05 2016 - [info]
Fri Jul 15 10:50:05 2016 - [info] * Phase 2: Dead Master Shutdown Phase..
Fri Jul 15 10:50:05 2016 - [info]
Fri Jul 15 10:50:05 2016 - [info] Forcing shutdown so that applications never connect to the current master..
Fri Jul 15 10:50:05 2016 - [info] Executing master IP deactivation script:
Fri Jul 15 10:50:05 2016 - [info] /usr/local/bin/master_ip_failover
Disabling the VIP on old master: 222.26.224.238
bash: /etc/init.d/keepalived: 没有那个文件或目录
Fri Jul 15 10:50:05 2016 - [info] done.
Fri Jul 15 10:50:05 2016 - [warning] shutdown_script is not set. Skipping explicit shutting down of the dead master.
Fri Jul 15 10:50:05 2016 - [info] * Phase 2: Dead Master Shutdown Phase completed.
Fri Jul 15 10:50:05 2016 - [info]
Fri Jul 15 10:50:05 2016 - [info] * Phase 3: Master Recovery Phase..
Fri Jul 15 10:50:05 2016 - [info]
Fri Jul 15 10:50:05 2016 - [info] * Phase 3.1: Getting Latest Slaves Phase..
Fri Jul 15 10:50:05 2016 - [info]
Fri Jul 15 10:50:05 2016 - [info] The latest binary log file/position on all slaves is mysql-bin.000010:397675666
Fri Jul 15 10:50:05 2016 - [info] Retrieved Gtid Set: 71bbe17b-47fd-11e6-828f-005056be4afb:1-5577
Fri Jul 15 10:50:05 2016 - [info] Latest slaves (Slaves that received relay log files to the latest):
Fri Jul 15 10:50:05 2016 - [info] 222.26.224.236(222.26.224.236:3306) Version=5.7.13-log (oldest major version between slaves) log-bin:enabled
Fri Jul 15 10:50:05 2016 - [info] GTID ON
Fri Jul 15 10:50:05 2016 - [info] Replicating from 222.26.224.238(222.26.224.238:3306)
Fri Jul 15 10:50:05 2016 - [info] The oldest binary log file/position on all slaves is mysql-bin.000010:391361615
Fri Jul 15 10:50:05 2016 - [info] Retrieved Gtid Set: 71bbe17b-47fd-11e6-828f-005056be4afb:1-2785
Fri Jul 15 10:50:05 2016 - [info] Oldest slaves:
Fri Jul 15 10:50:05 2016 - [info] 222.26.224.237(222.26.224.237:3306) Version=5.7.13-log (oldest major version between slaves) log-bin:enabled
Fri Jul 15 10:50:05 2016 - [info] GTID ON
Fri Jul 15 10:50:05 2016 - [info] Replicating from 222.26.224.238(222.26.224.238:3306)
Fri Jul 15 10:50:05 2016 - [info] Primary candidate for the new Master (candidate_master is set)
Fri Jul 15 10:50:05 2016 - [info]
Fri Jul 15 10:50:05 2016 - [info] * Phase 3.3: Determining New Master Phase..
Fri Jul 15 10:50:05 2016 - [info]
Fri Jul 15 10:50:05 2016 - [info] Searching new master from slaves..
Fri Jul 15 10:50:05 2016 - [info] Candidate masters from the configuration file:
Fri Jul 15 10:50:05 2016 - [info] 222.26.224.237(222.26.224.237:3306) Version=5.7.13-log (oldest major version between slaves) log-bin:enabled
Fri Jul 15 10:50:05 2016 - [info] GTID ON
Fri Jul 15 10:50:05 2016 - [info] Replicating from 222.26.224.238(222.26.224.238:3306)
Fri Jul 15 10:50:05 2016 - [info] Primary candidate for the new Master (candidate_master is set)
Fri Jul 15 10:50:05 2016 - [info] Non-candidate masters:
Fri Jul 15 10:50:05 2016 - [info] Searching from candidate_master slaves which have received the latest relay log events..
Fri Jul 15 10:50:05 2016 - [info] Not found.
Fri Jul 15 10:50:05 2016 - [info] Searching from all candidate_master slaves..
Fri Jul 15 10:50:05 2016 - [info] New master is 222.26.224.237(222.26.224.237:3306)
Fri Jul 15 10:50:05 2016 - [info] Starting master failover..
Fri Jul 15 10:50:05 2016 - [info]
From:
222.26.224.238(222.26.224.238:3306) (current master)
+
+
To:
222.26.224.237(222.26.224.237:3306) (new master)
+
Fri Jul 15 10:50:05 2016 - [info]
Fri Jul 15 10:50:05 2016 - [info] * Phase 3.3: New Master Recovery Phase..
Fri Jul 15 10:50:05 2016 - [info]
Fri Jul 15 10:50:05 2016 - [info] Waiting all logs to be applied..
Fri Jul 15 10:50:07 2016 - [info] done.
Fri Jul 15 10:51:09 2016 - [info] Replicating from the latest slave 222.26.224.236(222.26.224.236:3306) and waiting to apply..
Fri Jul 15 10:51:09 2016 - [info] Waiting all logs to be applied on the latest slave..
Fri Jul 15 10:51:09 2016 - [info] Resetting slave 222.26.224.237(222.26.224.237:3306) and starting replication from the new master 222.26.224.236(222.26.224.236:3306)..
Fri Jul 15 10:51:09 2016 - [info] Executed CHANGE MASTER.
Fri Jul 15 10:51:10 2016 - [info] Slave started.
Fri Jul 15 10:51:10 2016 - [info] Waiting to execute all relay logs on 222.26.224.237(222.26.224.237:3306)..