Prerequisites:
Summary
The history database is optional. If you wish to use the history or reporting capabilities of Red Hat Enterprise Virtualization Manager then you must install and configure the history database.
Procedure 4.1. Installing and Configuring the History Database
Install Required Packages
Useyumto initiate installation of the rhevm-reports-dwh package, or the rhevm-reports package if you also intend to install Red Hat Enterprise Virtualization Manager Reports. You must run this command as therootuser on the system hosting the Red Hat Enterprise Virtualization Manager.- To install only the data warehouse package:
#
yuminstallrhevm-reports-dwh - To install both the data warehouse package and the Red Hat Enterprise Virtualization Manager Reports package:
#
yuminstallrhevm-reports
Confirm Package Installation
The required packages are downloaded. Once all packages have been downloaded they are listed for review. You will be prompted to confirm that you wish to continue with the installation. Once you have confirmed the operationyuminstalls the packages. Some further configuration is, however, required before the reports functionality can be used.Configure History Database
You need to use therhevm-dwh-setupcommand to configure the Extract, Transform, Load (ETL) process and database scripts used to create and maintain a working history database.- You must run this command as the
rootuser on the system hosting the Red Hat Enterprise Virtualization Manager.#
rhevm-dwh-setup - For the history database installation to take effect it is necessary to restart the
ovirt-engineservice. Therhevm-dwh-setupcommand asks you:Would you like to stop the ovirt-engine service? (yes|no):
Typeyesand then press Enter to proceed. The command then:- Stops the
ovirt-engineservice. - Creates and configures the
rhevm_historydatabase. - Starts the
ovirt-engineservice.
Result
The rhevm_history database has been created. Red Hat Enterprise Virtualization Manager is configured to log information to this database for reporting purposes.