5.3. Installing and Configuring the History Database
Prerequisites:
Summary
Use of the history database is optional. To use the history or reporting capabilities of Red Hat Enterprise Virtualization Manager, you must install and configure the history database.
Procedure 5.1. Installing and Configuring the History Database
- Install the rhevm-dwh package. This package must be installed on the system on which the Red Hat Enterprise Virtualization Manager is installed.
# yum install rhevm-dwh
- Once the required packages have been downloaded, they are listed for review. You will be prompted to confirm continuing with the installation. Upon confirmation, the packages are installed. However, some further configuration is required before the reports functionality can be used.
- Configure the history database. Use the
rhevm-dwh-setupcommand to configure the Extract, Transform, Load (ETL) process and database scripts used to create and maintain a working history database.- Run the
rhevm-dwh-setupcommand on the system hosting the Red Hat Enterprise Virtualization Manager:# rhevm-dwh-setup
- For the history database installation to take effect, the
ovirt-engineservice must be restarted. Therhevm-dwh-setupcommand prompts you:In order to proceed the installer must stop the ovirt-engine service Would you like to stop the ovirt-engine service? (yes|no):
Typeyesand then press Enter to proceed. - The
rhevm-dwh-setuputility can optionally create a read-only user to allow remote access to the history database.This utility can configure a read only user for DB access. Would you like to do so? (yes|no): Provide a username for read-only user: Provide a password for read-only user:
If you choose to create a read-only user, therhevm-dwh-setuputility automatically opens the required firewall ports and configures the database to listen on externally facing network interface devices.Note
Therhevm-dwh-setuputility can configure read-only access to local databases only. If you chose to use a remote database duringengine-setup, you have to manually configure read-only access to the history database. See Connecting to the History Database in the Red Hat Enterprise Virtualization Administration Guide. - The
rhevm-dwh-setuputility can optionally configure the history database to use secure connectionsShould postgresql be setup with secure connection? (yes|no):
The command then creates and configures theovirt_engine_historydatabase and starts theovirt-engineservice.
Result
The ovirt_engine_history database has been created. Red Hat Enterprise Virtualization Manager is configured to log information to this database for reporting purposes.