* 질문 등록 시 다음의 내용을 꼭 기입하여 주세요.
|
Redhat 7.6 Enterprise |
|
10.1.5.7809 |
|
10.2.0.0001 |
|
JAVA |
* CUBRID 응용 오류, SQL 오류 또는 SQL 튜닝 관련된 문의는 반드시 다음의 내용을 추가해 주세요. 비밀글이나 비밀 댓글도 가능합니다.
* 저희가 상황을 이해하고, 재현이 가능해야 알 수 있는 문제들이 많습니다. 가능한 정보/정황들을 부탁합니다.
에러 내용 및 재현 방법 | 재현 가능한 Source와 SQL |
관련 테이블(인덱스, 키정보 포함) 정보 | CUBRID 홈 디렉토리 아래 log 디렉토리 압축 |
-------------- 아래에 질문 사항을 기입해 주세요. ------------------------------------------------------------------------
안녕하세요 Cubrid HA 오류에 대해 문의드립니다.
이중화 구성된 DB 서버에서 오류가 발생하였습니다.
Master DB 의 상태가 갑작스럽게 master 가 풀리고, Slave DB 가 Master로 변경되었습니다.
로그만 봤을때 정확한 원인 파악이 어려워 문의드립니다.
1. Master DB의 상태 변경 원인
아래 해당 서버에서 확인된 로그 입니다.
<copylogdb.err 로그>
Time: 03/25/22 14:54:53.554 - NOTIFICATION *** file /~~~
HA generic: change the state of HA server (mytestdb@db02) from 'standby' to 'to-be-active'.
<applylogdb.err 로그>
<로그내용>
Time: 03/24/22 20:31:17.094 - NOTIFICATION *** file /~~~
HA generic: change log apply state from 'recovering' to 'done'. last committed LSA: 2844559|0.
Time: 03/25/22 14:54:52.054 - ERROR *** file /~~~~
Cannot connect to server "mytestdb" on "localhost".
Time: 03/25/22 14:54:52.057 - ERROR *** file /~~~
Server no longer responding.... Invalid argument
Time: 03/25/22 14:54:52.057 - ERROR *** file /~~~
Your transaction has been aborted by the system due to server failure or mode change.
Time: 03/25/22 14:54:52.057 - ERROR *** file /~~~
Server no longer responding.
Time: 03/25/22 14:54:55.071 - SYNTAX ERROR *** file /~~~
Semantic: SELECT is not authorized on db_ha_apply_info. select db_ha_apply_info.db_creation_time, db_ha_apply_info.c...
Time: 03/25/22 14:54:55.071 - SYNTAX ERROR *** file /~~~
SELECT is not authorized on db_ha_apply_info.
Time: 03/25/22 14:54:55.071 - SYNTAX ERROR *** file /~~~
HA generic: Failed to initialize db_ha_apply_info.
Time: 03/25/22 14:54:55.084 - NOTIFICATION *** file /~~~
Program 'applylogdb' (pid 12782) connected to database server 'mytestdb@localhost' on the host 'localhost' (port 1523).
Time: 03/25/22 14:54:55.123 - ERROR *** file /~~~
log applier: log applier started. required LSA: 2844560|48. last commited ~~
Time: 03/25/22 14:54:55.123 - NOTIFICATION *** file /~~~
HA generic: change the state of HA server (mytestdb@db02) from 'idle' to 'to-be-active'.
Time: 03/25/22 14:54:55.147 - NOTIFICATION *** file /~~~
HA generic: change log aapply state from 'unregisted' to 'working'. last commited LSA ~~~
2. Message 로그에서 "hb_thread_check_disk_failure" 발생 원인
Master DB 서버의 /var/log/messges 로그를 확인해보니 아래와 같이 오류가 남아있었습니다.
오류내용 : cub_master: [Cubrid] hb_thread_check_disk_failure () at /home/jenkins~~~/src/executables/master_heartbeat.c:4471
어떠한 원인으로 해당 오류가 발생했는지 확인이 필요합니다.
감사합니다.