Wed Dec 30 01:47:16 2020 - [warning] Master is not reachable from health checker!
Wed Dec 30 01:47:16 2020 - [warning] Master 220.220.220.228(220.220.220.228:3306) is not reachable!
Wed Dec 30 01:47:16 2020 - [warning] SSH is reachable.
Wed Dec 30 01:47:16 2020 - [info] Connecting to a master server failed. Reading configuration file /etc/masterha_default.cnf and /MHA/conf/mha.cnf again, and trying to connect to all servers to check server status..
Wed Dec 30 01:47:16 2020 - [warning] Global configuration file /etc/masterha_default.cnf not found. Skipping.
Wed Dec 30 01:47:16 2020 - [info] Reading application default configuration from /MHA/conf/mha.cnf..
Wed Dec 30 01:47:16 2020 - [info] Reading server configuration from /MHA/conf/mha.cnf..
Wed Dec 30 01:47:17 2020 - [info] 220.220.220.228(220.220.220.228:3306)
Wed Dec 30 01:47:17 2020 - [info] Alive Servers:
Wed Dec 30 01:47:17 2020 - [info] 220.220.220.229(220.220.220.229:3306)
Wed Dec 30 01:47:17 2020 - [info] 220.220.220.230(220.220.220.230:3306)
Wed Dec 30 01:47:17 2020 - [info] Alive Slaves:
Wed Dec 30 01:47:17 2020 - [info] 220.220.220.229(220.220.220.229:3306) Version=10.3.27-MariaDB-1:10.3.27+maria~stretch-log (oldest major version between slaves) log-bin:enabled
Wed Dec 30 01:47:17 2020 - [info] Replicating from 220.220.220.228(220.220.220.228:3306)
Wed Dec 30 01:47:17 2020 - [info] Primary candidate for the new Master (candidate_master is set)
Wed Dec 30 01:47:17 2020 - [info] 220.220.220.230(220.220.220.230:3306) Version=10.3.27-MariaDB-1:10.3.27+maria~stretch-log (oldest major version between slaves) log-bin:enabled
Wed Dec 30 01:47:17 2020 - [info] Replicating from 220.220.220.228(220.220.220.228:3306)
Wed Dec 30 01:47:17 2020 - [info] Not candidate for the new Master (no_master is set)
Wed Dec 30 01:47:17 2020 - [info] Checking slave configurations..
Wed Dec 30 01:47:17 2020 - [warning] relay_log_purge=0 is not set on slave 220.220.220.229(220.220.220.229:3306).
Wed Dec 30 01:47:17 2020 - [warning] relay_log_purge=0 is not set on slave 220.220.220.230(220.220.220.230:3306).
Wed Dec 30 01:47:18 2020 - [info] 220.220.220.228(220.220.220.228:3306)
Wed Dec 30 01:47:18 2020 - [info] Checking master reachability via MySQL(double check)...
Wed Dec 30 01:47:18 2020 - [info] ok.
Wed Dec 30 01:47:18 2020 - [info] Alive Servers:
Wed Dec 30 01:47:18 2020 - [info] 220.220.220.229(220.220.220.229:3306)
Wed Dec 30 01:47:18 2020 - [info] 220.220.220.230(220.220.220.230:3306)
Wed Dec 30 01:47:18 2020 - [info] Alive Slaves:
Wed Dec 30 01:47:18 2020 - [info] 220.220.220.229(220.220.220.229:3306)Version=10.3.27-MariaDB-1:10.3.27+maria~stretch-log (oldest major version between slaves) log-bin:enabled
Wed Dec 30 01:47:18 2020 - [info] Replicating from 220.220.220.228(220.220.220.228:3306)
Wed Dec 30 01:47:18 2020 - [info] Primary candidate for the new Master (candidate_master is set)
Wed Dec 30 01:47:18 2020 - [info] 220.220.220.230(220.220.220.230:3306)Version=10.3.27-MariaDB-1:10.3.27+maria~stretch-log (oldest major version between slaves) log-bin:enabled
Wed Dec 30 01:47:18 2020 - [info] Replicating from 220.220.220.228(220.220.220.228:3306)
Wed Dec 30 01:47:18 2020 - [info] Not candidate for the new Master (no_master is set)
Wed Dec 30 01:47:18 2020 - [info] Starting Non-GTID based failover.
Wed Dec 30 01:47:18 2020 - [info] The latest binary log file/position on all slaves is mysql-bin.000004:12079
Wed Dec 30 01:47:18 2020 - [info] Latest slaves (Slaves that received relay log files to the latest):
Wed Dec 30 01:47:18 2020 - [info] 220.220.220.229(220.220.220.229:3306)Version=10.3.27-MariaDB-1:10.3.27+maria~stretch-log (oldest major version between slaves) log-bin:enabled
Wed Dec 30 01:47:18 2020 - [info] Replicating from 220.220.220.228(220.220.220.228:3306)
Wed Dec 30 01:47:18 2020 - [info] Primary candidate for the new Master (candidate_master is set)
Wed Dec 30 01:47:18 2020 - [info] 220.220.220.230(220.220.220.230:3306)Version=10.3.27-MariaDB-1:10.3.27+maria~stretch-log (oldest major version between slaves) log-bin:enabled
Wed Dec 30 01:47:18 2020 - [info] Replicating from 220.220.220.228(220.220.220.228:3306)
Wed Dec 30 01:47:18 2020 - [info] Not candidate for the new Master (no_master is set)
Wed Dec 30 01:47:18 2020 - [info] The oldest binary log file/position on all slaves is mysql-bin.000004:12079
Wed Dec 30 01:47:18 2020 - [info] Oldest slaves:
Wed Dec 30 01:47:18 2020 - [info] 220.220.220.229(220.220.220.229:3306)Version=10.3.27-MariaDB-1:10.3.27+maria~stretch-log (oldest major version between slaves) log-bin:enabled
Wed Dec 30 01:47:18 2020 - [info] Replicating from 220.220.220.228(220.220.220.228:3306)
Wed Dec 30 01:47:18 2020 - [info] Primary candidate for the new Master (candidate_master is set)
Wed Dec 30 01:47:18 2020 - [info] 220.220.220.230(220.220.220.230:3306)Version=10.3.27-MariaDB-1:10.3.27+maria~stretch-log (oldest major version between slaves) log-bin:enabled
Wed Dec 30 01:47:18 2020 - [info] Replicating from 220.220.220.228(220.220.220.228:3306)
Wed Dec 30 01:47:18 2020 - [info] Not candidate for the new Master (no_master is set)
Wed Dec 30 01:47:18 2020 - [info]
Wed Dec 30 01:47:18 2020 - [info] * Phase 3.2: Saving Dead Master's Binlog Phase..
Wed Dec 30 01:47:18 2020 - [info]
Wed Dec 30 01:47:18 2020 - [info] Fetching dead master's binary logs..
Wed Dec 30 01:47:18 2020 - [info] Executing command on the dead master 220.220.220.228(220.220.220.228:3306): save_binary_logs --command=save --start_file=mysql-bin.000004 --start_pos=12079 --binlog_dir=/var/lib/mysql --output_file=/var/tmp/saved_master_binlog_from_220.220.220.228_3306_20201230014717.binlog --handle_raw_binlog=1 --disable_log_bin=0 --manager_version=0.57
Creating /var/tmp if not exists.. ok.
Concat binary/relay logs from mysql-bin.000004 pos 12079 to mysql-bin.000004 EOF into /var/tmp/saved_master_binlog_from_220.220.220.228_3306_20201230014717.binlog ..
Failed to save binary log: Redundant argument in sprintf at /usr/local/share/perl/5.24.1/MHA/NodeUtil.pm line 184.
Wed Dec 30 01:47:19 2020 - [error][/usr/local/share/perl/5.24.1/MHA/MasterFailover.pm, ln760] Failed to save binary log events from the orig master. Maybe disks on binary logs are not accessible or binary log itself is corrupt?
Wed Dec 30 01:47:19 2020 - [info]
Wed Dec 30 01:47:19 2020 - [info] * Phase 3.3: Determining New Master Phase..
Wed Dec 30 01:47:19 2020 - [info]
Wed Dec 30 01:47:19 2020 - [info] Finding the latest slave that has all relay logs for recovering other slaves..
Wed Dec 30 01:47:19 2020 - [info] All slaves received relay logs to the same position. No need to resync each other.
Wed Dec 30 01:47:19 2020 - [info] Searching new master from slaves..
Wed Dec 30 01:47:19 2020 - [info] Candidate masters from the configuration file:
Wed Dec 30 01:47:19 2020 - [info] 220.220.220.229(220.220.220.229:3306)Version=10.3.27-MariaDB-1:10.3.27+maria~stretch-log (oldest major version between slaves) log-bin:enabled
Wed Dec 30 01:47:19 2020 - [info] Replicating from 220.220.220.228(220.220.220.228:3306)
Wed Dec 30 01:47:19 2020 - [info] Primary candidate for the new Master (candidate_master is set)
Wed Dec 30 01:47:19 2020 - [info] Non-candidate masters:
Wed Dec 30 01:47:19 2020 - [info] 220.220.220.230(220.220.220.230:3306)Version=10.3.27-MariaDB-1:10.3.27+maria~stretch-log (oldest major version between slaves) log-bin:enabled
Wed Dec 30 01:47:19 2020 - [info] Replicating from 220.220.220.228(220.220.220.228:3306)
Wed Dec 30 01:47:19 2020 - [info] Not candidate for the new Master (no_master is set)
Wed Dec 30 01:47:19 2020 - [info] Searching from candidate_master slaves which have received the latest relay log events..
Wed Dec 30 01:47:19 2020 - [info] New master is 220.220.220.229(220.220.220.229:3306)
Wed Dec 30 01:47:19 2020 - [info] Starting master failover..
Wed Dec 30 01:47:19 2020 - [info] *NOTICE: If any error happens from this phase, manual recovery is needed.
Wed Dec 30 01:47:19 2020 - [info] Starting recovery on 220.220.220.229(220.220.220.229:3306)..
Wed Dec 30 01:47:19 2020 - [info] This server has all relay logs. Waiting all logs to be applied..
Wed Dec 30 01:47:19 2020 - [info] done.
Wed Dec 30 01:47:19 2020 - [info] All relay logs were successfully applied.
Wed Dec 30 01:47:19 2020 - [info] Getting new master's binlog name and position..
Wed Dec 30 01:47:19 2020 - [info] mysql-bin.000002:328
Wed Dec 30 01:47:19 2020 - [info] All other slaves should start replication from here. Statement should be: CHANGE MASTER TO MASTER_HOST='220.220.220.229', MASTER_PORT=3306, MASTER_LOG_FILE='mysql-bin.000002', MASTER_LOG_POS=328, MASTER_USER='mhauser', MASTER_PASSWORD='xxx';
Wed Dec 30 01:47:19 2020 - [info] Executing master IP activate script:
Wed Dec 30 01:47:24 2020 - [info] -- Slave recovery on host 220.220.220.230(220.220.220.230:3306) started, pid: 28586. Check tmp log /MHA/logs/220.220.220.230_3306_20201230014717.log if it takes time..
Wed Dec 30 01:47:25 2020 - [info]
Wed Dec 30 01:47:25 2020 - [info] Log messages from 220.220.220.230 ...
Wed Dec 30 01:47:25 2020 - [info]
Wed Dec 30 01:47:24 2020 - [info] Starting recovery on 220.220.220.230(220.220.220.230:3306)..
Wed Dec 30 01:47:24 2020 - [info] This server has all relay logs. Waiting all logs to be applied..
Wed Dec 30 01:47:24 2020 - [info] done.
Wed Dec 30 01:47:24 2020 - [info] All relay logs were successfully applied.
Wed Dec 30 01:47:24 2020 - [info] Resetting slave 220.220.220.230(220.220.220.230:3306) and starting replication from the new master 220.220.220.229(220.220.220.229:3306)..
Wed Dec 30 01:47:25 2020 - [info] Executed CHANGE MASTER.
Wed Dec 30 01:47:25 2020 - [info] Slave started.
Wed Dec 30 01:47:25 2020 - [info] End of log messages from 220.220.220.230.
Wed Dec 30 01:47:25 2020 - [info] -- Slave recovery on host 220.220.220.230(220.220.220.230:3306) succeeded.
Wed Dec 30 01:47:25 2020 - [info] All new slave servers recovered successfully.
Wed Dec 30 01:47:25 2020 - [info]
```
*[ **Phase 5** ] : New Master Cleanup
```bash
Wed Dec 30 01:47:25 2020 - [info] * Phase 5: New master cleanup phase..
Wed Dec 30 01:47:25 2020 - [info]
Wed Dec 30 01:47:25 2020 - [info] Resetting slave info on the new master..
Wed Dec 30 01:47:25 2020 - [info] 220.220.220.229: Resetting slave info succeeded.
Wed Dec 30 01:47:25 2020 - [info] Master failover to 220.220.220.229(220.220.220.229:3306) completed successfully.
Wed Dec 30 01:47:25 2020 - [info]
```
*[ **summary** ] : Failover Reporting
```bash
mha: MySQL Master failover 220.220.220.228(220.220.220.228:3306) to 220.220.220.229(220.220.220.229:3306) succeeded
Master 220.220.220.228(220.220.220.228:3306) is down!
Check MHA Manager logs at MHA:/MHA/logs/manager.log for details.
Started automated(non-interactive) failover.
Invalidated master IP address on 220.220.220.228(220.220.220.228:3306)
The latest slave 220.220.220.229(220.220.220.229:3306) has all relay logs for recovery.
Selected 220.220.220.229(220.220.220.229:3306) as a new master.
220.220.220.229(220.220.220.229:3306): OK: Applying all logs succeeded.
220.220.220.229(220.220.220.229:3306): OK: Activated master IP address.
220.220.220.230(220.220.220.230:3306): This host has the latest relay log events.
Generating relay diff files from the latest slave succeeded.
220.220.220.230(220.220.220.230:3306): OK: Applying all logs succeeded. Slave started, replicating from 220.220.220.229(220.220.220.229:3306)
220.220.220.229(220.220.220.229:3306): Resetting slave info succeeded.
Master failover to 220.220.220.229(220.220.220.229:3306) completed successfully.
```
여기까지 완료되면, MASTER-Active 서버의 장애에 대한 FailOver가 완료된 과정(위의 내역은 220.220.220.228 -> 220.220.220.229으로의 이관완료) 이다. 그리고 SLAVE01번 서버의 Replication 상태를 확인해보면, FailOver된(220.220.220.229) 서버로 MASTER를 바라보고 있다.
Slave_SQL_Running_State: Slave has read all relay log; waiting for the slave I/O thread to update it
Slave_DDL_Groups: 16
Slave_Non_Transactional_Groups: 0
Slave_Transactional_Groups: 294
1 row in set(0.002 sec)
```
# MHA Fail-Back 검증
이젠 장애가 발생한 MASTER-Active 서버가 복구되었다고 가정한다. 그럼 원래의 MASTER-Active로 FailBack을 해야하는데, 다음의 절차를 통해 가능하다.
`!중요` : Fail-Back 순서 및 주의사항
- /MHA/logs/`mha.failover.complete` 파일을 반드시 제거해야한다.
- 장애가 발생한 MASTER-Active를 현재 MASTER 시스템과 동기화하여, `최신의 데이터를 유지하는 작업을 진행`한다.
-`masterha_master_switch` 명령을 통해 원래의 MASTER-Active로 FailBack을 수행한다.
-**MHA Manager 데몬을 시작**하여, 모니터링을 시작한다.
*[ **STEP 1** ] mha.failover.complete 파일을 제거한다.
```bash
mhauser@MHA:~/logs$ rm-rf mha.failover.complete
```
*[ **STEP 2** ] 장애가 발생한 MASTER-Active 서버에 현재 MASTER의 데이터를 최신으로 동기화 한다.
manager.log(위의 로그참조)에 보면, FailOver되면서 Latest의 CHANAGE MASTER~ 쿼리문을 기록한다. 이 쿼리를 시스템복구가 완료된 MASTER-Active 서버에 수행해서 데이터를 동기화한다.
> Wed Dec 30 01:47:19 2020 - [info] All other slaves should start replication from here. Statement should be: CHANGE MASTER TO MASTER_HOST='220.220.220.229', MASTER_PORT=3306, MASTER_LOG_FILE='mysql-bin.000002', MASTER_LOG_POS=328, MASTER_USER='mhauser', MASTER_PASSWORD='xxx';
```bash
root@MHA-MASTER-ACTIVE:~# systemctl start mariadb
root@MHA-MASTER-ACTIVE:~# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 9
Server version: 10.3.27-MariaDB-1:10.3.27+maria~stretch-log mariadb.org binary distribution
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h'for help. Type '\c' to clear the current input statement.
Wed Dec 30 02:18:16 2020 - [info] Current Alive Master: 220.220.220.229(220.220.220.229:3306)
Wed Dec 30 02:18:16 2020 - [info] Alive Slaves:
Wed Dec 30 02:18:16 2020 - [info] 220.220.220.228(220.220.220.228:3306)Version=10.3.27-MariaDB-1:10.3.27+maria~stretch-log (oldest major version between slaves) log-bin:enabled
Wed Dec 30 02:18:16 2020 - [info] Replicating from 220.220.220.229(220.220.220.229:3306)
Wed Dec 30 02:18:16 2020 - [info] Primary candidate for the new Master (candidate_master is set)
Wed Dec 30 02:18:16 2020 - [info] 220.220.220.230(220.220.220.230:3306)Version=10.3.27-MariaDB-1:10.3.27+maria~stretch-log (oldest major version between slaves) log-bin:enabled
Wed Dec 30 02:18:16 2020 - [info] Replicating from 220.220.220.229(220.220.220.229:3306)
Wed Dec 30 02:18:16 2020 - [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 220.220.220.229(220.220.220.229:3306)? (YES/no): YES
Wed Dec 30 02:18:19 2020 - [info] Executing FLUSH NO_WRITE_TO_BINLOG TABLES. This may take long time..
Wed Dec 30 02:18:19 2020 - [info] ok.
Wed Dec 30 02:18:19 2020 - [info] Checking MHA is not monitoring or doing failover..
Wed Dec 30 02:18:19 2020 - [info] Checking replication health on 220.220.220.228..
Wed Dec 30 02:18:19 2020 - [info] ok.
Wed Dec 30 02:18:19 2020 - [info] Checking replication health on 220.220.220.230..
Wed Dec 30 02:18:19 2020 - [info] ok.
Wed Dec 30 02:18:19 2020 - [info] Searching new master from slaves..
Wed Dec 30 02:18:19 2020 - [info] Candidate masters from the configuration file:
Wed Dec 30 02:18:19 2020 - [info] 220.220.220.228(220.220.220.228:3306)Version=10.3.27-MariaDB-1:10.3.27+maria~stretch-log (oldest major version between slaves) log-bin:enabled
Wed Dec 30 02:18:19 2020 - [info] Replicating from 220.220.220.229(220.220.220.229:3306)
Wed Dec 30 02:18:19 2020 - [info] Primary candidate for the new Master (candidate_master is set)
Wed Dec 30 02:18:19 2020 - [info] 220.220.220.229(220.220.220.229:3306)Version=10.3.27-MariaDB-1:10.3.27+maria~stretch-log log-bin:enabled
Wed Dec 30 02:18:19 2020 - [info] Non-candidate masters:
Wed Dec 30 02:18:19 2020 - [info] 220.220.220.230(220.220.220.230:3306)Version=10.3.27-MariaDB-1:10.3.27+maria~stretch-log (oldest major version between slaves) log-bin:enabled
Wed Dec 30 02:18:19 2020 - [info] Replicating from 220.220.220.229(220.220.220.229:3306)
Wed Dec 30 02:18:19 2020 - [info] Not candidate for the new Master (no_master is set)
Wed Dec 30 02:18:19 2020 - [info] Searching from candidate_master slaves which have received the latest relay log events..
Wed Dec 30 02:18:22 2020 079293 Set read_only on the new master.. ok.
Wed Dec 30 02:18:22 2020 086265 Drpping app user on the orig master..
Wed Dec 30 02:18:22 2020 087206 Set read_only=1 on the orig master.. ok.
Wed Dec 30 02:18:22 2020 090144 Killing all application threads..
Wed Dec 30 02:18:22 2020 090233 done.
Wed Dec 30 02:18:22 2020 - [info] ok.
Wed Dec 30 02:18:22 2020 - [info] Locking all tables on the orig master to reject updates from everybody (including root):
Wed Dec 30 02:18:22 2020 - [info] Executing FLUSH TABLES WITH READ LOCK..
Wed Dec 30 02:18:22 2020 - [info] ok.
Wed Dec 30 02:18:22 2020 - [info] Orig master binlog:pos is mysql-bin.000002:328.
Wed Dec 30 02:18:22 2020 - [info] Waiting to execute all relay logs on 220.220.220.228(220.220.220.228:3306)..
Wed Dec 30 02:18:22 2020 - [info] master_pos_wait(mysql-bin.000002:328) completed on 220.220.220.228(220.220.220.228:3306). Executed 0 events.
Wed Dec 30 02:18:22 2020 - [info] done.
Wed Dec 30 02:18:22 2020 - [info] Getting new master's binlog name and position..
Wed Dec 30 02:18:22 2020 - [info] mysql-bin.000005:342
Wed Dec 30 02:18:22 2020 - [info] All other slaves should start replication from here. Statement should be: CHANGE MASTER TO MASTER_HOST='220.220.220.228', MASTER_PORT=3306, MASTER_LOG_FILE='mysql-bin.000005', MASTER_LOG_POS=342, MASTER_USER='mhauser', MASTER_PASSWORD='xxx';
Wed Dec 30 02:18:22 2020 - [info] Executing master ip online change script to allow write on the new master:
Wed Dec 30 02:18:22 2020 508146 Set read_only=0 on the new master.
Wed Dec 30 02:18:22 2020 509683 Creating app user on the new master..
Wed Dec 30 02:18:27 2020 - [info] ok.
Wed Dec 30 02:18:27 2020 - [info]
Wed Dec 30 02:18:27 2020 - [info] * Switching slaves in parallel..
Wed Dec 30 02:18:27 2020 - [info]
Wed Dec 30 02:18:27 2020 - [info] -- Slave switch on host 220.220.220.230(220.220.220.230:3306) started, pid: 29168
Wed Dec 30 02:18:27 2020 - [info]
Wed Dec 30 02:18:28 2020 - [info] Log messages from 220.220.220.230 ...
Wed Dec 30 02:18:28 2020 - [info]
Wed Dec 30 02:18:27 2020 - [info] Waiting to execute all relay logs on 220.220.220.230(220.220.220.230:3306)..
Wed Dec 30 02:18:27 2020 - [info] master_pos_wait(mysql-bin.000002:328) completed on 220.220.220.230(220.220.220.230:3306). Executed 0 events.
Wed Dec 30 02:18:27 2020 - [info] done.
Wed Dec 30 02:18:27 2020 - [info] Resetting slave 220.220.220.230(220.220.220.230:3306) and starting replication from the new master 220.220.220.228(220.220.220.228:3306)..
Wed Dec 30 02:18:27 2020 - [info] Executed CHANGE MASTER.
Wed Dec 30 02:18:27 2020 - [info] Slave started.
Wed Dec 30 02:18:28 2020 - [info] End of log messages from 220.220.220.230 ...
Wed Dec 30 02:18:28 2020 - [info]
Wed Dec 30 02:18:28 2020 - [info] -- Slave switch on host 220.220.220.230(220.220.220.230:3306) succeeded.
Wed Dec 30 02:18:28 2020 - [info] Unlocking all tables on the orig master:
Wed Dec 30 02:18:28 2020 - [info] Executing UNLOCK TABLES..
Wed Dec 30 02:18:28 2020 - [info] ok.
Wed Dec 30 02:18:28 2020 - [info] All new slave servers switched successfully.
Wed Dec 30 02:18:28 2020 - [info]
```
-**Phase 5: New master cleanup phase..**
```bash
Wed Dec 30 02:18:28 2020 - [info] * Phase 5: New master cleanup phase..
Wed Dec 30 02:18:28 2020 - [info]
Wed Dec 30 02:18:28 2020 - [info] 220.220.220.228: Resetting slave info succeeded.
Wed Dec 30 02:18:28 2020 - [info] Switching master to 220.220.220.228(220.220.220.228:3306) completed successfully.
```
그럼 먼저 VIP가 제대로 FailBack 되었는지를 확인해보자.
```bash
- MASTER-Active
root@MHA-MASTER-ACTIVE:~# ip addr |grep 180.180.180.240
inet 180.180.180.240/24 brd 180.180.180.255 scope global secondary eth1:0
- MASTER-Backup
root@MHA-MASTER-BACKUP:~# ip addr |grep 180.180.180.240
root@MHA-MASTER-BACKUP:~#
```
위와 같이 VIP 이관 및 서비스도 정상적으로 이뤄지고 있다. 그럼 위에서 살펴본 SLVAE01 서버가 원래 기존의 MASTER인 220.220.220.228번으로 Replication을 바라보고 있는지 확인해보자.