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 로 새로운 복구 파일을 생성하는것을 권장합니다.



List of Articles
번호 제목 글쓴이 날짜 조회 수
공지 CUBRID 사용자를 위한 DBeaver 도구 출시 안내 admin 2024.04.23 51
공지 SQLGate for CUBRID 영구 무료 라이선스 제공 file admin 2020.04.09 4458
1214 bit형 데이터타입 관련 2 소라게 2012.01.27 10671
1213 bin 폴더 안에 PDB 확장자 파일들 문의 3 file 종이 2014.09.01 8031
1212 backupdb 실행 문의 2 file JB 2021.03.02 205
1211 backupdb 문의드립니다, 1 동동 2020.02.05 175
1210 autoset 631 에서 창에서 큐브리드 매니저 실행시 다음과같은 에러창이 뜸 file 아프리카 2014.02.03 7756
1209 autoexecquery.conf 파일 수정문의 1 대청 2021.04.29 133
1208 autoexecquery.conf 매시간 실행 스케쥴 문의 1 Roy 2022.04.06 55
1207 autocommit 설정 2 바람바람 2013.01.03 5357
1206 autocommit 관련 5 깨진질그릇조각인형 2011.12.15 15590
1205 autocommit off 방법 문의 9 소라게 2010.06.08 15702
1204 auto_increment 추가 방법 문의 1 부패방지운영팀 2023.04.14 265
1203 auto_increment 가 7.1 에서는 사용이 되지 않나요? 4 메이커스 2009.08.03 9727
1202 auto_increament 추가와 브로커관련 문의드립니다. 1 카이군 2016.03.23 8189
1201 auto increment 사용시 Insert 문제 1 지니보이 2009.11.11 14220
1200 auto commit 이 되어있어서 잘못 update 처리한 데이터가 commit 되었을 때 대처법 부탁드립니다 1 rollback 2023.07.21 86
1199 auto commit 2 airporti 2022.01.20 130
1198 audit 기능에 대해 질문 드립니다. 1 캬캬캬 2014.02.27 7420
1197 attribute가 AUTO_INCREMENT로 생성됐는지 확인할 수 있는 딕셔너리는 무엇인가요? 3 새옹지마 2023.01.08 365
1196 attempt to exceed the maximum allowed nesting level(400) 에러 문의 finkle 2016.11.24 20342
1195 attempt to divide by zero .. 조회문제 도와주세요 1 file 아프월 2023.02.07 270
Board Pagination Prev 1 ... 135 136 137 138 139 140 141 142 143 144 ... 200 Next
/ 200

Contact Cubrid

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