차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
rhev_3.6_backup_restore [2017/02/08 10:24] – [새로 구성된 RHEVM에 복원하기] koovrhev_3.6_backup_restore [2020/06/17 06:04] (현재) – [참고사항 - Memory Size] koov
줄 11: 줄 11:
 </code> </code>
 </WRAP> </WRAP>
 +
 +<WRAP center round info 60%>
 +RHEV Backup / Restore 는 동일 버전에서만 가능하다. 즉, 3.5 백업데이터는 3.6에서 복구가 되지 않는다.
 +</WRAP>
 +
  
 ===== 백업 절차 ===== ===== 백업 절차 =====
줄 92: 줄 97:
 [ INFO  ] Stage: Termination [ INFO  ] Stage: Termination
 [ INFO  ] Execution of cleanup completed successfully [ INFO  ] Execution of cleanup completed successfully
 +</code>
 +</WRAP>
  
 +다음은 설치된 DB암호를 변경하도록 한다. 기존 패스워드가 뭔지 알수 없는경우도 있으므로 무조건 변경하는것이 편하다.
  
 +<WRAP prewrap>
 +<code bash>
 +[root@manager ~]# su - postgres -c psql
 +psql (8.4.20)
 +Type "help" for help.
  
-[root@host]# su - postgres -c psql +postgres=# alter role engine encrypted password 'PASSWORD'; 
-alter role engine encrypted password 'PASSWORD';+ALTER ROLE 
 +postgres-# \q 
 +</code> 
 +</WRAP> 
 + 
 +백업받은 데이터를 복원한다. 
 +<WRAP prewrap> 
 +<code bash>
  
 [root@host]# engine-backup --mode=restore --scope=all --file=BACKUP_FILE --log=LOG_FILE --change-db-credentials --db-host=localhost --db-name=engine --db-user=engine --db-password --restore-permissions [root@host]# engine-backup --mode=restore --scope=all --file=BACKUP_FILE --log=LOG_FILE --change-db-credentials --db-host=localhost --db-name=engine --db-user=engine --db-password --restore-permissions
 +
 +# RHEV 3.5 의 경우 --restore-permissions 옵션은 제외하도록 한다.
 +
 +Enter Engine database password: 
 +Preparing to restore:
 +- Setting credentials for Engine database 'engine'
 +- Unpacking file 'rhevm_backup'
 +Restoring:
 +- Files
 +- Engine database 'engine'
 +Rewriting /etc/ovirt-engine/engine.conf.d/10-setup-database.conf
 +You should now run engine-setup.
 +Done.
 +
  
 [root@host]# engine-setup  [root@host]# engine-setup 
 +
 +
 +[root@host1 ~]# service ovirt-engine restart
 </code> </code>
 </WRAP> </WRAP>
  
 +정상적으로 복구가 되었고 Manager UI에서 모든 하이퍼바이저와 가상머신의 상태가 정상적으로 수집 / 출력 된다면 완료된것이다.
 +
 +마지막으로 self-hosted engine을 다시 활성화 시켜주도록 한다.
 +
 +<WRAP prewrap>
 +<code bash>
 +[root@host1 ~]# hosted-engine --set-maintenance --mode=none
 +</code>
 +</WRAP>
  
 ===== script ===== ===== script =====
줄 224: 줄 270:
 </code> </code>
  
-해결하는 방법은 복구과정중 **engine-setup 하기 전** 아래의 파일을 열어 메모리 사이즈를 조정해주면 해결 된다.+해결하는 방법은 복구과정중 **engine-setup 하기 전** 아래의 ''/etc/ovirt-engine/engine.conf.d/10-setup-java.conf''파일을 열어 메모리 사이즈를 조정해주면 해결 된다.
  
 +<WRAP prewrap>
 <code vim /etc/ovirt-engine/engine.conf.d/10-setup-java.conf> <code vim /etc/ovirt-engine/engine.conf.d/10-setup-java.conf>
 ENGINE_HEAP_MIN="4096M"  # 시스템 메모리 크기에 맞게 적당히 조절해준다. ENGINE_HEAP_MIN="4096M"  # 시스템 메모리 크기에 맞게 적당히 조절해준다.
 ENGINE_HEAP_MAX="4096M" ENGINE_HEAP_MAX="4096M"
 </code> </code>
 +</WRAP>
  
 아래는 기본적으로 oVirt에서 자동으로 잡아주는 힙 사이즈 크기이다. 아래는 기본적으로 oVirt에서 자동으로 잡아주는 힙 사이즈 크기이다.
  • rhev_3.6_backup_restore.1486549486.txt.gz
  • 마지막으로 수정됨: 2017/02/08 10:24
  • 저자 koov