리눅스
MHA master_ip_failover 오류
변군이글루
2023. 9. 12. 10:31
반응형
MHA master_ip_failover 오류
테스트 환경
$ lsb_release -d
Description: Ubuntu 22.04.3 LTS
$ masterha_manager --version
masterha_manager version 0.58.
master_ip_failover 오류
$ replcheck
Tue Sep 12 10:16:07 2023 - [info] /home/mhauser/mha/scripts/master_ip_failover --command=status --ssh_user=mhauser --orig_master_host=192.168.56.211 --orig_master_ip=192.168.56.211 --orig_master_port=3306
Bareword "FIXME_xxx" not allowed while "strict subs" in use at /home/mhauser/mha/scripts/master_ip_failover line 93.
Execution of /home/mhauser/mha/scripts/master_ip_failover aborted due to compilation errors.
Bareword "FIXME_xxx" not allowed while "strict subs" in use at /home/mhauser/mha/scripts/master_ip_failover line 93.
해결 방법
93번째 줄에 #FIXME_xxx; 를 주석 처리합니다.
vim /home/mhauser/mha/scripts/master_ip_failover
86 ## Creating an app user on the new master
87 print "Creating app user on the new master..\n";
88 FIXME_xxx_create_user( $new_master_handler->{dbh} );
89 $new_master_handler->enable_log_bin_local();
90 $new_master_handler->disconnect();
91
92 ## Update master ip on the catalog database, etc
93 #FIXME_xxx;
94
95 $exit_code = 0;
96 };
$ diff -Nur /home/mhauser/mha/scripts/master_ip_failover.bk /home/mhauser/mha/scripts/master_ip_failover
--- /home/mhauser/mha/scripts/master_ip_failover.bk 2023-09-12 10:29:13.779288721 +0900
+++ /home/mhauser/mha/scripts/master_ip_failover 2023-09-12 10:29:29.827475122 +0900
@@ -90,7 +90,7 @@
$new_master_handler->disconnect();
## Update master ip on the catalog database, etc
- FIXME_xxx;
+ #FIXME_xxx;
$exit_code = 0;
};
728x90
반응형