Skip to content

Commit

Permalink
[CUBRIDMAN-222] : RND-2194 : ha 복제 구축 시나리오 명령어 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
bagus-kim committed Aug 8, 2024
1 parent e9efb97 commit 5d418eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 25 deletions.
18 changes: 5 additions & 13 deletions en/ha.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3188,13 +3188,14 @@ Now let's see the case of rebuilding a existing slave node during a service in a
[nodeB]$ rm testdb/log/*
[nodeB]$ rm -rf testdb_nodeA
[nodeB]$ rm $CUBRID/var/APPLYLOGDB/testdb
* Stop log replication processes of *nodeB* on *nodeA* and *nodeC*.

::
[nodeA]$ cubrid heartbeat repl stop testdb nodeB
[nodeC]$ cubrid heartbeat repl stop testdb nodeB
[nodeA]$ cubrid heartbeat repl stop nodeB
[nodeC]$ cubrid heartbeat repl stop nodeB
* Remove replication logs for *nodeB* from *nodeA* and *nodeC*.

Expand All @@ -3203,18 +3204,9 @@ Now let's see the case of rebuilding a existing slave node during a service in a
[nodeA]$ rm -rf $CUBRID_DATABASES/testdb_nodeB
[nodeC]$ rm -rf $CUBRID_DATABASES/testdb_nodeB

2. Remove HA catalog table's data, restore *nodeB*'s database from *nodeA*'s backup, and add data to HA catalog table.
2. Restore *nodeB*'s database from *nodeA*'s backup, and add data to HA catalog table.

* Delete the HA catalog table, db_ha_apply_info's records.

Delete all records of db_ha_apply_info of *nodeB* to initialize.

::
[nodeB]$ csql --sysadm --write-on-standby -u dba -S testdb
csql> DELETE FROM db_ha_apply_info;
Delete db_ha_apply_info data for *nodeB* from *nodeA* and *nodeC*.
* Delete db_ha_apply_info data for *nodeB* from *nodeA* and *nodeC*.

::
Expand Down
16 changes: 4 additions & 12 deletions ko/ha.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3184,13 +3184,14 @@ HA 서비스 운영 중 슬레이브를 새로 추가하려면 기존의 마스
[nodeB]$ rm testdb/log/*
[nodeB]$ rm -rf testdb_nodeA
[nodeB]$ rm $CUBRID/var/APPLYLOGDB/testdb
* *nodeA*\, *nodeC*\에서 *nodeB*\의 로그 복제 정지

::
[nodeA]$ cubrid heartbeat repl stop testdb nodeB
[nodeC]$ cubrid heartbeat repl stop testdb nodeB
[nodeA]$ cubrid heartbeat repl stop nodeB
[nodeC]$ cubrid heartbeat repl stop nodeB
* *nodeA*\, *nodeC*\에서 *nodeB*\에 대한 복제 로그 삭제

Expand All @@ -3199,17 +3200,8 @@ HA 서비스 운영 중 슬레이브를 새로 추가하려면 기존의 마스
[nodeA]$ rm -rf $CUBRID_DATABASES/testdb_nodeB
[nodeC]$ rm -rf $CUBRID_DATABASES/testdb_nodeB

2. HA 카탈로그 테이블 삭제, *nodeA*\의 백업 및 *nodeB*\의 복구, HA 카탈로그 테이블에 정보 추가
2. *nodeA*\의 백업 및 *nodeB*\의 복구, HA 카탈로그 테이블에 정보 추가

* HA 카탈로그 테이블인 db_ha_apply_info의 레코드 삭제

*nodeB*\의 db_ha_apply_info 정보를 모두 삭제하여 초기화한다.

::
[nodeB]$ csql --sysadm -u dba -S testdb
csql> DELETE FROM db_ha_apply_info;
*nodeA*, *nodeC*\에서 *nodeB*\에 대한 db_ha_apply_info 정보를 삭제한다.

::
Expand Down

0 comments on commit 5d418eb

Please sign in to comment.