cubrid applyinfo

설명

CUBRID HA의 복제 상태를 모니터링한다.

구문

cubrid applyinfo [option] <database-name>

옵션

옵션

기본값

설명

-r

none

트랜잭션 로그를 복사하는 대상 노드의 이름을 설정한다. 이 옵션을 설정하면 대상 노드의 액티브 로그 정보(Active Info.)를 출력한다.

-a

 

cubrid applyinfo를 수행한 노드(localhost)의 복제 반영 정보(Applied Info.)를 출력한다. 이 옵션을 사용하기 위해서는 반드시 –L 옵션이 필요하다.

-L

none

상대 노드의 트랜잭션 로그를 복사해 온 위치를 설정한다. 이 옵션이 설정된 경우 상대 노드에서 복사해 온 트랜잭션 로그의 정보(Copied Active Info.)를 출력한다.

-p

0

–L 옵션을 설정한 경우 설정 가능한 것으로 복사해 온 로그의 특정 페이지 정보를 출력한다.

-v

 

더 자세한 내용을 출력한다.

예시

$ cubrid applyinfo -L /home/cubrid/DB/testdb01_masterdb.cub -r master_node_name -a testdb01

 

 *** Applied Info. ***

Committed page                 : 1913 | 2904

Insert count                   : 645

Update count                   : 0

Delete count                   : 0

Schema count                   : 60

Commit count                   : 15

Fail count                     : 0

 

 *** Copied Active Info. ***

DB name                        : testdb01

DB creation time               : 11:28:00.000 AM 12/17/2010  (1292552880)

EOF LSA                        : 1913 | 2976

Append LSA                     : 1913 | 2976

HA server state                : active

 

 ***  Active Info. ***

DB name                        : testdb01

DB creation time               : 11:28:00.000 AM 12/17/2010  (1292552880)

EOF LSA                        : 1913 | 2976

Append LSA                     : 1913 | 2976

HA server state                : active

$