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
번호 제목 글쓴이 날짜 조회 수
공지 SQLGate for CUBRID 영구 무료 라이선스 제공 file admin 2020.04.09 4443
607 Failed to connect to database server, 에러관련 질문입니다. 4 석현진 2016.12.08 20823
606 Failed to connect to database server, 'projectname' , on the following host(s): localhost secret 럭키캡틴 2013.04.07 9
605 Failed to connect to database server, 'dbname', on the following host(s) 3 뽀다구 2013.12.06 15465
604 Failed to connect to database server, 'ID' , on the following host(s): localhost 1 secret 헬리 2010.07.13 12
603 Failed on handshake between client and server 에러가 계속 발생 합니다.. 3 file dwpark 2021.05.18 179
602 Failback 하는 방법 좀 알려 주세요. 1 Philip Park 2020.04.28 246
601 FOREIGN KEY 오류관련해서 문의 드립니다. 1 미샤클로렌 2021.03.23 423
600 FORAMT값 적용안됨 1 귀기기기 2022.10.14 61
599 FK삭제 문의 1 joke7 2015.12.15 5351
598 FK 인덱스 삭제 문의 입니다. 1 일휴 2019.09.18 1295
597 FATAL ERROR 발생으로 cubrid server start가 되지 않습니다. 6 복분자 2018.05.24 1265
596 Exception in thread "Thread-10" java.lang.NullPointerException 1 김동진81 2009.09.23 19818
595 Error: DBMS, -75 확인부탁합니다. 1 봉보로봉봉 2017.07.21 380
594 Error: DBMS, -72, Your transaction (index 46, DBA@db01|62150) has been unilaterally aborted by the system 5 봉보로봉봉 2017.08.08 515
593 Error extractiong support files 2 스카이 2011.05.17 8119
592 Error Number: -17 Internal error: fetching deallocated pageid 16777216 of volume 오류 1 나라디 2022.05.04 574
591 Error : [-596] The 1953 pages of total temporary space allowed have been exceeded. 2 리들러 2022.12.10 264
590 Error : [-1302] dblink - [HY000][1406][Oracle][ODBC][Ora]ORA-01406 : fetched column value was truncated 15 리들러 2022.07.13 1864
589 Error : [-1302] dblink - Cannot communicate with server[CAS INFO-00.000.00.000:53000, 2, 27657], [CAS INFO-00.000.00.000:30000,7,28322], 4 리들러 2022.07.06 191
588 Erd문의드립니다 1 천랑성 2020.07.17 457
Board Pagination Prev 1 ... 165 166 167 168 169 170 171 172 173 174 ... 200 Next
/ 200

Contact Cubrid

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