• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to Backup And Restore The RHEV Manager Engine

by admin

Backup

Use the engine-backup command to create a backup. The usage and mandatory arguments with the command are listed below:
1. –mode=MODE
where MODE -> for collecting backup it should be set to “backup”

2. –scope=SCOPE
where SCOPE -> can be set to “all” or “files” or “db” or “dwhdb”
if set to “all” everything below will be collected
if set to “files” product files only will be collected
if set to “db” Engine database only will be collected
if set to “dwhdb” Data Warehouse database only will be collected
The option –scope can be passed more than once, with different scopes.

3. –file=FILE
where FILE -> the path and filename for the backup

4. –log=FILE
where FILE -> the path and filename for the backup logs

For more options run:

# engine-backup --help

Example:

# engine-backup --mode=backup --scope=all --file=/enginebackups/enginebackup200419 --log=/enginebackup200419.log
Backing up:
Notifying engine
- Files
- Engine database 'engine'
- DWH database 'ovirt_engine_history'
Packing into file '/enginebackups/enginebackup200419'
Notifying engine
Done.

Restore

Before restoring from a backup make sure to cleanup the engine and reinstall:

1. Clean up the existing engine setup:

# engine-cleanup --log=FILE

where FILE -> the path and filename for the cleanup logs.

2. Uninstall ovirt-engine package:

# yum remove ovirt-engine

3. Using ovirt-provide-ovn requires the below additional steps to reset the certificate authority (CA) file. If ovirt-provider-ovn is not used then skip this step:

# systemctl restart ovn-northd.service
# ovn-sbctl del-ssl

4. Reinstall ovirt-engine package:

# yum install ovirt-engine

5. Restore the engine from backup:

# engine-backup --mode=restore --file=FILE --log=FILE --restore-permissions

Usage:

1. –mode=MODE
where MODE -> for collecting backup it should be set to “restore”

2. –file=FILE
where FILE -> the path and filename for the backup file from which to restore

3. –log=FILE
where FILE -> the path and filename for the restore logs

4. –restore-permissions
Either –no-restore-permissions or –restore-permissions option is required when the backup is a custom dump

6. Then run below command to setup the engine:

# engine-setup

Filed Under: CentOS/RHEL, RHV

Some more articles you might also be interested in …

  1. “Server refused to allocate pty” – Unable to login to CentOS/RHEL
  2. How to Configure an NFSv4-only Client using nfsconf in CentOS/RHEL 8
  3. How to set “max_report_luns” and “max_luns” on CentOS/RHEL 6 to scan more than 512 LUNs
  4. How to Create a MySQL Docker Container for Testing
  5. How to Increase KVM Guest vCPU Resources
  6. Understanding Cluster Fencing Policy in RedHat Virtualization (RHV)
  7. Couldn’t find device with uuid [UUID] – LVM Not Active on Reboot
  8. How to Recover Deleted rpm Package Files(libraries, configuration files) in CentOS/RHEL 7
  9. How to remove the noatime mount option from root mount point without reboot (CentOS/RHEL)
  10. How to Disable IPv6 in CentOS/RHEL 8

You May Also Like

Primary Sidebar

Recent Posts

  • vgextend Command Examples in Linux
  • setpci command – configure PCI device
  • db_load command – generate db database
  • bsdtar command – Read and write tape archive files

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright