-
Notifications
You must be signed in to change notification settings - Fork 500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The mysqlmha online switch is not successful(masterha_master_switch --master_state=alive),ERROR:master_ip_online_change: error: no such option: --orig_master_ssh_user。MySQL-8.0.12,mha4mysql-manager-0.58 #126
Comments
The mysqlmha manual failover is a success。 [root@mysql-manager-23 support-files]# masterha_check_repl --conf=/usr/local/mha-helper-master/conf/manager.conf Tue Oct 29 19:52:16 2019 - [info] Checking replication health on 172.19.14.23.. MySQL Replication Health is OK. |
--orig_master_ssh_user=(from 0.56, current master's ssh user) |
Hi, The mysqlmha online switch is not successful(masterha_master_switch --master_state=alive)。
[root@mysql-manager-23 conf]# masterha_master_switch --master_state=alive --global_conf=/usr/local/mha-helper-master/conf/global.conf --conf=/usr/local/mha-helper-master/conf/manager.conf
Tue Oct 29 19:40:02 2019 - [info] MHA::MasterRotate version 0.58.
Tue Oct 29 19:40:02 2019 - [info] Starting online master switch..
Tue Oct 29 19:40:02 2019 - [info]
Tue Oct 29 19:40:02 2019 - [info] * Phase 1: Configuration Check Phase..
Tue Oct 29 19:40:02 2019 - [info]
Tue Oct 29 19:40:02 2019 - [info] Reading default configuration from /usr/local/mha-helper-master/conf/global.conf..
Tue Oct 29 19:40:02 2019 - [info] Reading application default configuration from /usr/local/mha-helper-master/conf/manager.conf..
Tue Oct 29 19:40:02 2019 - [info] Reading server configuration from /usr/local/mha-helper-master/conf/manager.conf..
Tue Oct 29 19:40:02 2019 - [debug] Connecting to servers..
Tue Oct 29 19:40:03 2019 - [debug] Connected to: 172.19.14.21(172.19.14.21:3306), user=root
Tue Oct 29 19:40:03 2019 - [debug] Number of slave worker threads on host 172.19.14.21(172.19.14.21:3306): 0
Tue Oct 29 19:40:03 2019 - [debug] Connected to: 172.19.14.23(172.19.14.23:3306), user=root
Tue Oct 29 19:40:03 2019 - [debug] Number of slave worker threads on host 172.19.14.23(172.19.14.23:3306): 0
Tue Oct 29 19:40:03 2019 - [debug] Connected to: 172.19.14.22(172.19.14.22:3306), user=root
Tue Oct 29 19:40:03 2019 - [debug] Number of slave worker threads on host 172.19.14.22(172.19.14.22:3306): 0
Tue Oct 29 19:40:03 2019 - [debug] Comparing MySQL versions..
Tue Oct 29 19:40:03 2019 - [debug] Comparing MySQL versions done.
Tue Oct 29 19:40:03 2019 - [debug] Connecting to servers done.
Tue Oct 29 19:40:03 2019 - [info] GTID failover mode = 0
Tue Oct 29 19:40:03 2019 - [info] Current Alive Master: 172.19.14.21(172.19.14.21:3306)
Tue Oct 29 19:40:03 2019 - [info] Alive Slaves:
Tue Oct 29 19:40:03 2019 - [info] 172.19.14.23(172.19.14.23:3306) Version=8.0.12 (oldest major version between slaves) log-bin:enabled
Tue Oct 29 19:40:03 2019 - [debug] Relay log info repository: TABLE
Tue Oct 29 19:40:03 2019 - [info] Replicating from 172.19.14.21(172.19.14.21:3306)
Tue Oct 29 19:40:03 2019 - [info] Primary candidate for the new Master (candidate_master is set)
Tue Oct 29 19:40:03 2019 - [info] 172.19.14.22(172.19.14.22:3306) Version=8.0.12 (oldest major version between slaves) log-bin:enabled
Tue Oct 29 19:40:03 2019 - [debug] Relay log info repository: TABLE
Tue Oct 29 19:40:03 2019 - [info] Replicating from 172.19.14.21(172.19.14.21:3306)
Tue Oct 29 19:40:03 2019 - [info] Not candidate for the new Master (no_master is set)
It is better to execute FLUSH NO_WRITE_TO_BINLOG TABLES on the master before switching. Is it ok to execute on 172.19.14.21(172.19.14.21:3306)? (YES/no): yes
Tue Oct 29 19:40:05 2019 - [info] Executing FLUSH NO_WRITE_TO_BINLOG TABLES. This may take long time..
Tue Oct 29 19:40:05 2019 - [info] ok.
Tue Oct 29 19:40:05 2019 - [info] Checking MHA is not monitoring or doing failover..
Tue Oct 29 19:40:05 2019 - [info] Checking replication health on 172.19.14.23..
Tue Oct 29 19:40:05 2019 - [info] ok.
Tue Oct 29 19:40:05 2019 - [info] Checking replication health on 172.19.14.22..
Tue Oct 29 19:40:05 2019 - [info] ok.
Tue Oct 29 19:40:05 2019 - [info] Searching new master from slaves..
Tue Oct 29 19:40:05 2019 - [info] Candidate masters from the configuration file:
Tue Oct 29 19:40:05 2019 - [info] 172.19.14.21(172.19.14.21:3306) Version=8.0.12 log-bin:enabled
Tue Oct 29 19:40:05 2019 - [info] 172.19.14.23(172.19.14.23:3306) Version=8.0.12 (oldest major version between slaves) log-bin:enabled
Tue Oct 29 19:40:05 2019 - [debug] Relay log info repository: TABLE
Tue Oct 29 19:40:05 2019 - [info] Replicating from 172.19.14.21(172.19.14.21:3306)
Tue Oct 29 19:40:05 2019 - [info] Primary candidate for the new Master (candidate_master is set)
Tue Oct 29 19:40:05 2019 - [info] Non-candidate masters:
Tue Oct 29 19:40:05 2019 - [info] 172.19.14.22(172.19.14.22:3306) Version=8.0.12 (oldest major version between slaves) log-bin:enabled
Tue Oct 29 19:40:05 2019 - [debug] Relay log info repository: TABLE
Tue Oct 29 19:40:05 2019 - [info] Replicating from 172.19.14.21(172.19.14.21:3306)
Tue Oct 29 19:40:05 2019 - [info] Not candidate for the new Master (no_master is set)
Tue Oct 29 19:40:05 2019 - [info] Searching from candidate_master slaves which have received the latest relay log events..
Tue Oct 29 19:40:05 2019 - [info]
From:
172.19.14.21(172.19.14.21:3306) (current master)
+--172.19.14.23(172.19.14.23:3306)
+--172.19.14.22(172.19.14.22:3306)
To:
172.19.14.23(172.19.14.23:3306) (new master)
+--172.19.14.22(172.19.14.22:3306)
Starting master switch from 172.19.14.21(172.19.14.21:3306) to 172.19.14.23(172.19.14.23:3306)? (yes/NO): yes
Tue Oct 29 19:40:07 2019 - [info] Checking whether 172.19.14.23(172.19.14.23:3306) is ok for the new master..
Tue Oct 29 19:40:07 2019 - [info] ok.
Tue Oct 29 19:40:07 2019 - [info] ** Phase 1: Configuration Check Phase completed.
Tue Oct 29 19:40:07 2019 - [info]
Tue Oct 29 19:40:07 2019 - [debug] Disconnected from 172.19.14.21(172.19.14.21:3306)
Tue Oct 29 19:40:07 2019 - [info] * Phase 2: Rejecting updates Phase..
Tue Oct 29 19:40:07 2019 - [info]
Tue Oct 29 19:40:07 2019 - [info] Executing master ip online change script to disable write on the current master:
Tue Oct 29 19:40:07 2019 - [info] /usr/local/mha-helper-master/scripts/master_ip_online_change --command=stop --orig_master_host=172.19.14.21 --orig_master_ip=172.19.14.21 --orig_master_port=3306 --orig_master_user='root' --new_master_host=172.19.14.23 --new_master_ip=172.19.14.23 --new_master_port=3306 --new_master_user='root' --orig_master_ssh_user=root --new_master_ssh_user=root --orig_master_ssh_port=11017 --ssh_options='-o ServerAliveInterval=60 -o ServerAliveCountMax=20 -o StrictHostKeyChecking=no -o ConnectionAttempts=5 -o PasswordAuthentication=no -o BatchMode=yes -i /root/.ssh/id_rsa' --new_master_ssh_port=11017 --orig_master_password=xxx --new_master_password=xxx
Usage: master_ip_online_change [options]
master_ip_online_change: error: no such option: --orig_master_ssh_user
Tue Oct 29 19:40:07 2019 - [error][/usr/share/perl5/vendor_perl/MHA/ManagerUtil.pm, ln177] Got ERROR: at /usr/bin/masterha_master_switch line 53.
Tue Oct 29 19:40:07 2019 - [debug] Already disconnected from 172.19.14.21(172.19.14.21:3306)
Tue Oct 29 19:40:07 2019 - [debug] Disconnected from 172.19.14.23(172.19.14.23:3306)
Tue Oct 29 19:40:07 2019 - [debug] Disconnected from 172.19.14.22(172.19.14.22:3306)
The text was updated successfully, but these errors were encountered: