15.2.2. Restoring Red Hat Enterprise Virtualization Manager Configuration Files

Taking regular backups of Red Hat Enterprise Virtualization Manager configuration files allows you to quickly return a broken Manager installation to a working state. With all of the files in Table 15.1, “Configuration files and directories requiring backup.” backed up, you can re-install the same version of the Manager, and restore the backed up files over top of the new installation.
All commands in the Manager restoration procedure are entered as the root user.

Procedure 15.3. To Restore the Red Hat Enterprise Virtualization Manager

  1. Stop the JBoss service:
    # service jbossas stop
  2. Completely remove all previous installations of the Red Hat Enterprise Virtualization Manager:
    # yum remove rhevm
  3. Remove the rhevm-slimmed profile:
    # rm -rf /var/lib/jbossas/server/rhevm-slimmed
    
  4. Delete the old configuration for rhevm-slimmed profile:
    # rm -rf /etc/jbossas/rhevm-slimmed
    
  5. Remove /etc/pki/rhevm:
    # rm -rf /etc/pki/rhevm
    
  6. Install the Red Hat Enterprise Virtualization Manager:
    # yum install -y rhevm
  7. Restore the files listed in Table 15.1, “Configuration files and directories requiring backup.” to their original locations.
  8. Make sure the ownership of the .keystore file is correct:
    # chown jboss:jboss /etc/pki/rhevm/.keystore
    
  9. Make sure the permissions of the notifier.conf file is correct:
    # chmod 644 /etc/rhevm/notifier/notifier.conf
    
  10. Start the JBoss service:
    # service jbossas start
You have now recovered from an unforeseen event that adversely affected your installation of the Red Hat Enterprise Virtualization Manager.