차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 | |||
rhev_self-hosted_backup_restore [2017/02/15 10:40] – koov | rhev_self-hosted_backup_restore [2017/02/16 06:40] (현재) – koov | ||
---|---|---|---|
줄 7: | 줄 7: | ||
----------------------------------------------- | ----------------------------------------------- | ||
Self hosted engine 복구 방법 | Self hosted engine 복구 방법 | ||
+ | * 단독형 Self-Hosted 구성에서도 복구 가능 (Self-Hosted host 1대인 경우) | ||
+ | * RHEV-M Backup Data만 있으면 복구 가능 | ||
+ | * 동일 서버에 복구 가능 | ||
- | Self Host로 만드는 과정중간에 복구과정이 들어간다. | + | < |
+ | 0. Global Maintenance mode (상관 없음, 장애시의 경우도 고려) | ||
- | Physical Host에서 진행하는 부분 | + | 1. rhevm backup |
- | * rhevm backup | + | engine-backup --scope=all --mode=backup --file=BACKUP_FILE --log=LOG_FILE |
- | * 새로운 selfhost | + | 2. hosted-engine shutdown |
+ | hosted-engine --vm-shutdown | ||
+ | 3. host 재설치 | ||
- | RHEV-M VM 에서 진행해야 하는 부분 | ||
- | * rhevm VM 설치 | ||
- | * install rhevm | ||
- | * engine-setup | ||
- | * service ovirt-engine stop | ||
- | * engine-cleanup | ||
- | * restore db | ||
- | * delete hosted_engine VM from db | ||
- | * engine-setup | ||
- | * manager UI에서 hosted_engine host 리부팅 확인 -> 유지보수 -> 제거 | ||
- | 다시 Physical Host에서 | + | 2. 새로운 selfhost 설치 (여기서부터 RHEVM VM에서 |
- | * self-hosted engine 등록 및 설치 | + | 3. rhevm VM 설치 |
+ | 4. install rhevm | ||
+ | 5. engine-setup | ||
+ | 6. service ovirt-engine stop | ||
+ | 7. engine-cleanup | ||
+ | 8. restore db | ||
+ | su - postgres -c psql | ||
+ | alter role engine encrypted password ' | ||
+ | engine-backup --mode=restore --scope=all --file=rhev3.6.backup --log=restore.log --change-db-credentials --db-host=localhost --db-name=engine --db-user=engine --db-password --restore-permissions | ||
+ | |||
+ | 9. engine-setup | ||
+ | |||
+ | 10. delete hosted_engine VM from db | ||
+ | delete from snapshots where snapshot_id=(select snapshot_id from snapshots where vm_id=(select vm_guid from vm_static where vm_name like ' | ||
+ | delete from vm_static where vm_guid=(select vm_guid from vm_static where vm_name like ' | ||
+ | |||
+ | 11. manager UI에서 hosted_engine host 리부팅 확인 -> 유지보수 -> 제거 | ||
+ | |||
+ | 12. selfhost 에서 종료 | ||
+ | |||
+ | </ | ||