Background Image

FORUM

?

단축키

Prev이전 문서

Next다음 문서

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

큐브리드 매니저의 "작업자동화->백업자동화" 기능을 이용하여
dlife_auto_backup_lv0 , dlife_auto_backup_lv1 이 두개의 백업 파일을 생성하였습니다.

http://www.cubrid.com/zbxe/32215

위 게시글의 내용을 토대로 다른 서버에서 백업파일만으로 복구를 시도하려고 하는데
몇 가지 의문점이 들어 질문을 올립니다.

-------------------------------------------------------------------------------------------------------------------------------------------------------------
  4. 데이터베이스 백업화일을 임의의 위치에 복사한다. 이때 가장 마지막 백업본을 사용한다.
 단 마지막 백업이 풀(level 0) 백업이 아닌 경우 현재 레벨 이전의 모든 백업본이 필요하다.
 예를 들어 현재 백업본이 level 2 라면 level 0, level 1 모두 필요하다.
 디폴트로 백업시 백업화일명은 demodb_bk0v000 형식이며, 이때 bk 다음 v 앞의 숫자가 level 이다.
 0v 이면 level 0 백업 화일이다.
      /tmp 아래에 복사한 것으로 가정.
  5. 데이터베이스 복구 명령을 수행한다. 마지막 백업이 level 0 일 경우에는 아래와 같이 수행한다.
     % cubrid restoredb -B /tmp -p demodb
     만약 마지막 백업이 level 2 라면 아래와 같이 수행한다.
     % restoredb -l 2 -B /tmp -p demodb
--------------------------------------------------------------------------------------------------------------------------------------------------------------

위와 같이 설명이 되어 있어서 서버에 다음과 같은 명령을 주었습니다.

" D:cubrid_backup>cubrid restoredb -l 1 -B dlife_auto_backup_lv1 -p dlife "

그랬더니 다음과 같은 메세지가 나타났습니다.

** WARNING ** Incorrect backup volume mounted.
Backup volume dlife_auto_backup_lv1 is from another backup level
   (Level: 1, expecting 0).
*************************************************************************
The following database backup volume is needed to continue restoring:

Database Name: C:CUBRIDDATABA~1dlifedlife
     Volume Name: dlife_auto_backup_lv1
        Unit Num: 0
    Backup Level: 0 (FULL LEVEL)
Enter one of the following options:
Type
   -  0 to quit.
   -  1 to continue after the volume is mounted/loaded. (retry)
   -  2 to continue after changing the volume's directory or device.

*************************************************************************


여기서 0을 눌러서 멈췄습니다.

0
An error occurred during a database restore, while processing
     Backup Volume: dlife_auto_backup_lv1
          Unit Num: 0
   Database Volume: C:CUBRIDdatabasesdlifedlife_lgat_001_tmp
    Database Volid: -1
** WARNING: Do not use the database until an error-free restore is achieved.

--->>>
*** FATAL ERROR ***
Media recovery may be needed on volume "C:CUBRIDDATABA~1dlifedlife_bkvinf"
Please consult error_log file = cub_server.err for additional information
... ABORT/EXIT IMMEDIATELY ...<<<---



그 후 큐브리드 디렉토리(C:CUBRIDdatabasesdlife)를 살펴보니 몇몇 파일이 생성되기는 하였으나 데이타베이스가 정상적으로 동작하지 않았습니다.

그래서 데이타베이스 종료 후 큐브리드 디렉토리(C:CUBRIDdatabasesdlife)의 파일을 삭제하고
다시
" D:cubrid_backup>cubrid restoredb -l 0 -B dlife_auto_backup_lv0 -p dlife "
실행 그 후 다시
" D:cubrid_backup>cubrid restoredb -l 1 -B dlife_auto_backup_lv1 -p dlife "

명령을 실행하였더니 파일이 생성되고 데이타 베이스가 동작하였으나 위 명령어 실행도중 여전히 같은 에러 메세지가 발생하여 정상적으로 데이타베이스가 복구가 된 것인지 궁금하여 질문을 드립니다.


다음은 실행 도중 나타난 에러 메세지들 입니다.


 

D:cubrid_backup>cubrid restoredb -l 0 -B dlife_auto_backup_lv0 -p dlife
Unable to mount disk volume "C:CUBRIDDATABA~1dlifedlife_lgar011".... No such file or directory
Continue without present archive. (Partial recovery).

CUBRID 2008 R1.3


D:cubrid_backup>cubrid restoredb -l 1 -B dlife_auto_backup_lv1 -p dlife
** WARNING ** Incorrect backup volume mounted.
Backup volume dlife_auto_backup_lv1 is from another backup level
   (Level: 1, expecting 0).


*************************************************************************
The following database backup volume is needed to continue restoring:

Database Name: C:CUBRIDDATABA~1dlifedlife
     Volume Name: dlife_auto_backup_lv1
        Unit Num: 0
    Backup Level: 0 (FULL LEVEL)
Enter one of the following options:
Type
   -  0 to quit.
   -  1 to continue after the volume is mounted/loaded. (retry)
   -  2 to continue after changing the volume's directory or device.

*************************************************************************

여기서 0을 눌러서 멈췄습니다.
0

An error occurred during a database restore, while processing
     Backup Volume: dlife_auto_backup_lv1
          Unit Num: 0
   Database Volume: C:CUBRIDdatabasesdlifedlife_lgat_001_tmp
    Database Volid: -1
** WARNING: Do not use the database until an error-free restore is achieved.

--->>>
*** FATAL ERROR ***
Media recovery may be needed on volume "C:CUBRIDDATABA~1dlifedlife_bkvinf"
Please consult error_log file = cub_server.err for additional information
... ABORT/EXIT IMMEDIATELY ...<<<---


 

  • ?
    Prototype 2009.03.19 03:59
    제품 사용에 불편을 드려 대단히 죄송합니다.
    해당 에러는, restore 에 필요한 파일이 모두 복사 되지 않아서 발생하는 문제입니다. 로그 볼륨을 복사 하지 않은 상태에서 restoredb -p 옵션을 주고 복구를 시도하면 해당 현상이 발생 할 수 있습니다.

    아래의 질문 글을 읽어보니, 모든 파일을 갖고 계는것으로 파악 되는 바, 다음의 절차를 따라 해 보시기 바랍니다.

    1. 데이터베이스 위치 정보 파일 편집
    dlife C:CUBRIDDATABA~1dlife XXXXXX C:CUBRIDDATABA~1dlife
    해당 라인을 복원한 서버의 databases.txt 파일에 추가합니다.

    2. log 볼륨 복사
    원 서버의 dlife_lgat 파일과  dlife_lgar로 시작하는 모든 파일을 C:CUBRIDDATABA~1dlife 에 복사 합니다.

    3. 복구
    다음의 명령을 사용하여 복구합니다.
    cubrid restoredb -l 0 -u -B "백업 파일 경로" "디비명"
    cubrid restoredb -l 1 -u -B "백업 파일 경로" "디비명"

    모든 작업이 끝나시면, unload 한 후, 새로 db를 생성하시고 load하시고, 다시 backupdb 로 새로운 복구 파일을 생성하는것을 권장합니다.



  1. CUBRID 사용자를 위한 DBeaver 도구 출시 안내

    Date2024.04.23 Byadmin Views48
    read more
  2. SQLGate for CUBRID 영구 무료 라이선스 제공

    Date2020.04.09 Byadmin Views4458
    read more
  3. cubrid에 적용가능한 sms 모듈이 어떤게 있을까요?

    Date2011.08.05 Bydpals80 Views10113
    Read More
  4. cubrid_connect() 가 정의 되어 있지 않다고 나옵니다.

    Date2011.08.03 By독고구검 Views10435
    Read More
  5. "DATABASE 검사" 도무지 끝날 기미가 안 보입니다

    Date2011.08.02 By한종희 Views8583
    Read More
  6. 데이터 등록에러 Sector/page table of file VFID

    Date2011.07.29 By스카이 Views8172
    Read More
  7. Attempt to call a method related to scrollability of non-scrollable ResultSet. 오류 문의

    Date2011.07.28 Bycuins Views12568
    Read More
  8. 서비스 관련

    Date2011.07.28 By브리즈 Views7516
    Read More
  9. [java] 두개의 PreparedStatement 할당후 close 시 문제

    Date2011.07.27 Bycuins Views10828
    Read More
  10. PHP + Apache + Cubrid 연동 질문 입니다.

    Date2011.07.27 By지누 Views11347
    Read More
  11. Oracle 사용자 팁 문의

    Date2011.07.26 By비형여자 Views9689
    Read More
  12. exception 문의

    Date2011.07.22 By비형여자 Views7839
    Read More
  13. CUBRID DB 호스팅 시 UTF-8 타입 사용.

    Date2011.07.19 Byezzone Views7656
    Read More
  14. 데이타베이스 또는 테이블스페이스 생성 시 자동증가 옵션이 어떻게 되는지??

    Date2011.07.19 By풀소리 Views9850
    Read More
  15. HA 복제시 매니저에서의 테이블 생성

    Date2011.07.15 By유니콘 Views18502
    Read More
  16. [급]Cubrid메니저에서 Unlod 후 load시 오류

    Date2011.07.15 By별솔아범 Views23907
    Read More
  17. HA관련 CUBRID Manager 에서 대시보드 문의드립니다...

    Date2011.07.13 By반짝이 Views25736
    Read More
  18. JSP에서 데이터베이스 연결 어떻게 해요?

    Date2011.07.12 ByJH Views12169
    Read More
  19. migration tool을 이용해 마이그레이션 작업 중 테이블의 데이터 적재 실패 문제

    Date2011.07.11 By엔하늘 Views10172
    Read More
  20. PDO가 지원되고 있는 건가요?

    Date2011.07.09 Bykkh Views10663
    Read More
  21. garbage_collection=yes 설정시 CM(테이블편집-SQL문 탭) 문제입니다...

    Date2011.07.09 By반짝이 Views8646
    Read More
  22. 3.1에서 4.0 업그레이드 후

    Date2011.07.08 By유겸아빠 Views8037
    Read More
Board Pagination Prev 1 ... 143 144 145 146 147 148 149 150 151 152 ... 200 Next
/ 200

Contact Cubrid

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