Commit e6caec8c authored by JooHan Hong's avatar JooHan Hong
parents a4959d6a e5af306b
Pipeline #5734 passed with stages
in 1 minute and 4 seconds
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
```bash ```bash
# useradd -g mysql mhauser -d /MHA # useradd -g mysql mhauser -d /MHA
# echo ghdwngkstjqj |passwd --stdin mhauser # echo 패스워드 |passwd --stdin mhauser
* Debian/Ubuntu의 경우 --stdin 옵션이 지원되지않으므로, 다음과 같이 수행해야 한다. * Debian/Ubuntu의 경우 --stdin 옵션이 지원되지않으므로, 다음과 같이 수행해야 한다.
......
...@@ -454,7 +454,7 @@ mhauser@MHA:~/logs$ rm -rf mha.failover.complete ...@@ -454,7 +454,7 @@ mhauser@MHA:~/logs$ rm -rf mha.failover.complete
manager.log(위의 로그참조)에 보면, FailOver되면서 Latest의 CHANAGE MASTER~ 쿼리문을 기록한다. 이 쿼리를 시스템복구가 완료된 MASTER-Active 서버에 수행해서 데이터를 동기화한다. 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'; > 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='패스워드';
```bash ```bash
root@MHA-MASTER-ACTIVE:~# systemctl start mariadb root@MHA-MASTER-ACTIVE:~# systemctl start mariadb
...@@ -469,7 +469,7 @@ Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. ...@@ -469,7 +469,7 @@ Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> 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='ghdwngkselql'; MariaDB [(none)]> 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='패스워드';
Query OK, 0 rows affected (0.101 sec) Query OK, 0 rows affected (0.101 sec)
MariaDB [(none)]> start slave; MariaDB [(none)]> start slave;
...@@ -767,7 +767,7 @@ Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. ...@@ -767,7 +767,7 @@ Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> 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='ghdwngkselql'; MariaDB [(none)]> 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='패스워드';
Query OK, 0 rows affected (0.139 sec) Query OK, 0 rows affected (0.139 sec)
MariaDB [(none)]> start slave; MariaDB [(none)]> start slave;
......
...@@ -54,7 +54,7 @@ services: ...@@ -54,7 +54,7 @@ services:
- /GLUSTERFS/PROM/DATA/grafana/data:/var/lib/grafana - /GLUSTERFS/PROM/DATA/grafana/data:/var/lib/grafana
- /GLUSTERFS/PROM/DATA/grafana/grafana.ini:/etc/grafana/grafana.ini - /GLUSTERFS/PROM/DATA/grafana/grafana.ini:/etc/grafana/grafana.ini
environment: environment:
- GF_SECURITY_ADMIN_PASSWORD=ghdwngkstjqj - GF_SECURITY_ADMIN_PASSWORD=패스워드
depends_on: depends_on:
- prometheus - prometheus
ports: ports:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment