Background Image

FORUM

조회 수 204 추천 수 0 댓글 3
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄


* 질문 등록 시 다음의 내용을 꼭 기입하여 주세요.

OS
Window7 32bit, Linux 64bit 등
CUBRID Ver.
[cubrid_rel] 수행 결과
CUBRID TOOL Ver.
[도움말]-[버전정보] 확인
응용 환경(API)
java, php, odbc 등 입력


* CUBRID 응용 오류, SQL 오류 또는 SQL 튜닝 관련된 문의는 반드시 다음의 내용을 추가해 주세요. 비밀글이나 비밀 댓글도 가능합니다.
* 저희가 상황을 이해하고, 재현이 가능해야 알 수 있는 문제들이 많습니다. 가능한 정보/정황들을 부탁합니다.

 

에러 내용 및 재현 방법 재현 가능한 Source와 SQL
관련 테이블(인덱스, 키정보 포함) 정보 CUBRID 홈 디렉토리 아래 log 디렉토리 압축


-------------- 아래에 질문 사항을 기입해 주세요. ------------------------------------------------------------------------

안녕하세요.

HA slave applydblog 오류 관련 문의드립니다.

 

OS : Linux 64bit (Redhat)

CUBRID Ver. : 10.1.5.7809

 

HA 구성은 master 1,  slave 1  입니다.

 

1. cubrid heartbeat status  명령어 결과는 정상이며 다음과 같습니다.

 

  [nodemaster]  cubrid heartbeat status

    HA-Node Info (current nodemaster, state master)

      Node nodemaster (priority 1, state master)

      Node nodeslave (priority 2, state slave)

    HA-Process Info

      Applylogdb ... (state registered)

      Copylogdb ... (state registered)

      Server testdb ... (state registered and active)

 

  [nodeslave]  cubrid heartbeat status

    HA-Node Info (current nodeslave, state slave)

      Node nodeslave (priority 2, state slave)

      Node nodemaster (priority 1, state master)

    HA-Process Info

      Applylogdb ... (state registered)

      Copylogdb ... (state registered)

      Server testdb ... (state registered and standby)

 

 2. nodeslave 에서 Copylogdb 프로세스 실행 결과는 정상입니다.

   nodemaster 서버의 /Cubrid/databases/testdb 디렉토리 데이터와

   nodeslave 서버의 /Cubrid/databases/testdb_nodemaster 디렉토리 데이터가 동기화 되어있음을 확인하였습니다.

 

 3. nodeslave 에서 Applylogdb 프로세스 실행 결과는 실패입니다.

   nodeslave 서버의 /Cubrid/databases/testdb 디렉토리 데이터와

   nodeslave 서버의 /Cubrid/databases/testdb_nodemaster 디렉토리 데이터가 동기화 되어있지 않습니다.

   nodemaster 에서 csql "select count(*) from table01;" 결과는 10건,

   nodeslave 에서 csql "select count(*) from table01;" 결과는 5건입니다.

 

   관련 오류 로그는 /Cubrid/log/testdb@nodeslave_applylogdb_testdb_nodemaster.err 파일에서 확인하였으며 다음과 같습니다.

   -----

   nkins/workspace/cubrid_release_10.1/src/storage/file_io.c, line 1581 ERROR CODE = -11 Tran = 2, EID = 1129411

   Unable to mount disk volumn = "/Cubrid/var/APPLYLOGDB/testdb". The database "testdb", to which the disk volumn belongs, 

   is in use by user - on process 113354 of host

   -----

   process 113354 는 ps -ef | grep 113354 로 확인해보았지만 존재하지 않습니다.

 

4. slave 서버에서 cubrid applyinfo 실행결과는 다음과 같습니다.

   [nodeslave] $ cubrid applyinfo -L /Cubrid/databases/testdb_nodemaster -r nodemaster -a testdb

   *** Applied Info. ***

   Insert count : 0

   Update count : 0

   Delete count : 0

   Schema count : 0

   Commit count : 0

   Fail count : 0

 

   *** Copied Active Info. ***

   DB name : testdb

   DB creation time : 15:30:00.000 PM 05/23/2021

   EOF LSA : 5343 | 2232

   Append LSA : 5343 | 2232

   HA server state : active

 

   *** Active Info. ***

   DB name : testdb

   DB creation time : 15:30:00.000 PM 05/23/2021

   EOF LSA : 5343 | 2232

   Append LSA : 5343 | 2232

   HA server state : active

   

   *** Delay in Copying Active Log ***

   Delayed log page count : 0

   Estimated Delay :  - second(s)

 

   *** Delay in Applying Copied Log ***

   Delayed log page count : xxxxx

   Estimated Delay :  - second(s)

 

applydblog를 정상동작 할 수 있도록 도움 부탁드리겠습니다.

미리 감사합니다.

 

 

  • ?
    엄기호 2021.10.13 12:51
    큐브리드를 이용해주셔서 감사드립니다.

    데이터 동기화가 안되어 있는 경우
    nodemaster 에서 table01이라는 테이블에 pk(primary key) 반드시 있어야만 데이터 동기화가 이루어집니다.
    확인 해보시기 바랍니다.
  • ?
    오명환 2021.10.13 16:27
    먼저, nodemaster의 table01에 PK가 있는 확인해주세요. (레코드 복제는 PK를 기반으로 복제하게 되어 있습니다.)
    PK가 제대로 되어 있다는 가정기반으로 올려주신 applyinfo 값을 보면 applied info가 전부 0이고 "Delay in Applying Copied Log"의 Delayed log page가 XXXX로 표현되어 있는데, delayed log page 가 값이 있으면 applylogdb의 반영이 느려진 경우나 해당 프로세스에 문제가 있는 것처럼 보이네요.
    우선, nodeslave에서 ps -ef | grep applylogdb 를 통해 applylogdb가 제대로 구동되어 있는지 확인해보세요.
    그리고 csql -u dba -l -c "select * from db_ha_apply_info" db명으로 apply info 정보를 확인후 applyinfo 값의 copied active info의 eof lsa와 차이가 나는지 확인부탁드립니다.
  • ?
    아리별 2021.10.14 18:21

    빠른 답변 감사드립니다.

    1. nodemaster의 table01에 PK가 있습니다.
    2. nodeslave의 applylogdb 정상 구동되어 있습니다.
    3. csql -u dba -l -c "select * from db_ha_apply_info" db명 조회결과의 eof lsa 와
    copied active info의 eof lsa 가 차이 납니다.
    (1) db_ha_apply_info 테이블의 db명의 eof lsa = 2442718
    (2) cubrid applyinfo 명령어 실행 결과 중 copied active info의 eof lsa = 4630508
    4. "Delay in Applying Copied Log"의 Delayed log page가 XXXX로 표현했던 정확한 값은 2187790 입니다.

     

    추가 정보드립니다.

    - 9월 3일에 nodemaster서버의 디스크용량 full 문제가 있었고,

      nodemaster 와 nodeslave 서버 모두 디스크용량 확보를 한 후 서비스 재기동 작업이 있었습니다. 

    - 지금 두 서버에서 csql 로 table01 테이블의 가장 최근데이터를 조회해보면, 

      nodemaster 서버는 10월 14일

      nodeslave 서버는 8월 26일입니다.


    확인 부탁드리겠습니다. 감사합니다.


  1. SQLGate for CUBRID 영구 무료 라이선스 제공

    Date2020.04.09 Byadmin Views4283
    read more
  2. schema 파일 loaddb - 스키마 정보 중복오류 문의

    Date2024.03.21 Bydaay Views57
    Read More
  3. object to string

    Date2024.03.20 By네오랜덤 Views47
    Read More
  4. mysql로 DB연동 문의

    Date2024.03.20 By연동테스트용 Views43
    Read More
  5. 특정DB만 접근 시간이 현저하게 오래 걸리는 문제

    Date2024.03.20 By그로구 Views35
    Read More
  6. jdbc 연동시의 charset 강제 변경 방법

    Date2024.03.14 Bygwak Views34
    Read More
  7. 도커로 HA환경 구성 테스트중 hb start..

    Date2024.03.12 Bywodud0170 Views44
    Read More
  8. 이중화 관련 문의드립니다.

    Date2024.03.12 Byadqwdqwd123412 Views44
    Read More
  9. 큐브리드 마스터 복제 관련 문의 드립니다.

    Date2024.03.11 By이지혜 Views41
    Read More
  10. 큐브리드 다운로드 에러

    Date2024.03.08 By나래아빠 Views63
    Read More
  11. CUBRID Migration Toolkit "orai18n.jar" 추가 방법

    Date2024.03.07 By가을이아빠 Views43
    Read More
  12. CUBRID 에러 로그 관련 확인 요청

    Date2024.03.07 Byjnj570244 Views79
    Read More
  13. DB링크로 조회시 문자타입이 조회되지 않고 있습니다.

    Date2024.03.06 By원샷 Views69
    Read More
  14. 다른 사용자 계정에서 csql로 localhost 접근 문제

    Date2024.03.05 By가을이아빠 Views67
    Read More
  15. [성능이슈] 큐브리드 함수 사용으로 인한 성능이슈

    Date2024.03.04 By레고 Views95
    Read More
  16. CUBRID 11.2 rpm 설치시 cubrid 계정 패스워드

    Date2024.03.04 By가을이아빠 Views46
    Read More
  17. Cubrid JDBC 버전에 따라 출력되는 결과가 다릅니다.

    Date2024.02.28 By엘L Views75
    Read More
  18. select 질의문 문의

    Date2024.02.26 By태리 Views103
    Read More
  19. cubrid statdump 기술 문의드립니다.

    Date2024.02.19 By이건우 Views11
    Read More
  20. 날짜 형식 변환에 대해서 궁금해서 올립니다.

    Date2024.02.14 By김용용 Views47
    Read More
  21. 컬럼의 Enum DataType 가져오는것 문의

    Date2024.01.30 By엘L Views67
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 199 Next
/ 199

Contact Cubrid

대표전화 070-4077-2110 / 기술문의 070-4077-2113 / 영업문의 070-4077-2112 / Email. contact_at_cubrid.com
Contact Sales