1.2. Installing and Configuring Data Warehouse on a Separate Machine
This section describes installing and configuring the Data Warehouse service on a separate machine from the Red Hat Virtualization Manager. Installing Data Warehouse on a separate machine helps to reduce the load on the Manager machine.
You can install the Data Warehouse database on a machine separate from the Data Warehouse service.
Prerequisites
- The Red Hat Virtualization Manager is installed on a separate machine.
- A physical server or virtual machine running Red Hat Enterprise Linux 7.
- The Manager database password.
- Access from the Data Warehouse machine to the Manager database machine’s TCP port 5432.
If you choose to install the Data Warehouse database separately from the Data Warehouse service, you must set up the database first. To install a remote Data Warehouse database manually, see Preparing a Remote PostgreSQL Database. You must have the following information about the database machine:
- The FQDN
- The port through which the database can be reached (5432 by default)
- The database name
- The database user
- The database password
You must manually grant access by editing the
postgresql.conffile. Edit the/var/opt/rh/rh-postgresql10/lib/pgsql/data/postgresql.conffile and modify thelisten_addressesline so that it matches the following:listen_addresses = '*'
listen_addresses = '*'Copy to Clipboard Copied! Toggle word wrap Toggle overflow If the line does not exist or has been commented out, add it manually.
Enabling the Red Hat Virtualization Manager Repositories
Register the system with Red Hat Subscription Manager, attach the Red Hat Virtualization Manager subscription, and enable Manager repositories.
Procedure
Register your system with the Content Delivery Network, entering your Customer Portal user name and password when prompted:
subscription-manager register
# subscription-manager registerCopy to Clipboard Copied! Toggle word wrap Toggle overflow NoteIf you are using an IPv6 network, use an IPv6 transition mechanism to access the Content Delivery Network and subscription manager.
Find the
Red Hat Virtualization Managersubscription pool and record the pool ID:subscription-manager list --available
# subscription-manager list --availableCopy to Clipboard Copied! Toggle word wrap Toggle overflow Use the pool ID to attach the subscription to the system:
subscription-manager attach --pool=pool_id
# subscription-manager attach --pool=pool_idCopy to Clipboard Copied! Toggle word wrap Toggle overflow NoteTo view currently attached subscriptions:
subscription-manager list --consumed
# subscription-manager list --consumedCopy to Clipboard Copied! Toggle word wrap Toggle overflow To list all enabled repositories:
yum repolist
# yum repolistCopy to Clipboard Copied! Toggle word wrap Toggle overflow Configure the repositories:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Installing Data Warehouse on a Separate Machine
- Log in to the machine where you want to install the database.
Ensure that all packages are up to date:
yum update
# yum updateCopy to Clipboard Copied! Toggle word wrap Toggle overflow Install the
ovirt-engine-dwh-setuppackage:yum install ovirt-engine-dwh-setup
# yum install ovirt-engine-dwh-setupCopy to Clipboard Copied! Toggle word wrap Toggle overflow Run the
engine-setupcommand to begin the installation:engine-setup
# engine-setupCopy to Clipboard Copied! Toggle word wrap Toggle overflow Ensure you answer
Nowhen asked whether to install the Manager on this machine:Configure Engine on this host (Yes, No) [Yes]: No
Configure Engine on this host (Yes, No) [Yes]: NoCopy to Clipboard Copied! Toggle word wrap Toggle overflow Answer
Yesto install Data Warehouse on this machine:Configure Data Warehouse on this host (Yes, No) [Yes]:
Configure Data Warehouse on this host (Yes, No) [Yes]:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Press
Enterto accept the automatically-detected host name, or enter an alternative host name and pressEnter:Host fully qualified DNS name of this server [autodetected hostname]:
Host fully qualified DNS name of this server [autodetected hostname]:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Press
Enterto automatically configure the firewall, or typeNoand pressEnterto maintain existing settings:Setup can automatically configure the firewall on this system. Note: automatic configuration of the firewall may overwrite current settings. Do you want Setup to configure the firewall? (Yes, No) [Yes]:
Setup can automatically configure the firewall on this system. Note: automatic configuration of the firewall may overwrite current settings. Do you want Setup to configure the firewall? (Yes, No) [Yes]:Copy to Clipboard Copied! Toggle word wrap Toggle overflow If you choose to automatically configure the firewall, and no firewall managers are active, you are prompted to select your chosen firewall manager from a list of supported options. Type the name of the firewall manager and press
Enter. This applies even in cases where only one option is listed.Enter the fully qualified domain name of the Manager machine, and then press
Enter:Host fully qualified DNS name of the engine server []:
Host fully qualified DNS name of the engine server []:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Press
Enterto allow setup to sign the certificate on the Manager via SSH:Setup will need to do some actions on the remote engine server. Either automatically, using ssh as root to access it, or you will be prompted to manually perform each such action. Please choose one of the following: 1 - Access remote engine server using ssh as root 2 - Perform each action manually, use files to copy content around (1, 2) [1]:
Setup will need to do some actions on the remote engine server. Either automatically, using ssh as root to access it, or you will be prompted to manually perform each such action. Please choose one of the following: 1 - Access remote engine server using ssh as root 2 - Perform each action manually, use files to copy content around (1, 2) [1]:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Press
Enterto accept the default SSH port, or enter an alternative port number and then pressEnter:ssh port on remote engine server [22]:
ssh port on remote engine server [22]:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enter the root password for the Manager machine:
root password on remote engine server manager.example.com:
root password on remote engine server manager.example.com:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Specify whether to host the Data Warehouse database on this machine (Local), or on another machine (Remote):
Where is the DWH database located? (Local, Remote) [Local]:
Where is the DWH database located? (Local, Remote) [Local]:Copy to Clipboard Copied! Toggle word wrap Toggle overflow If you select
Local, theengine-setupscript can configure your database automatically (including adding a user and a database), or it can connect to a preconfigured local database:Setup can configure the local postgresql server automatically for the DWH to run. This may conflict with existing applications. Would you like Setup to automatically configure postgresql and create DWH database, or prefer to perform that manually? (Automatic, Manual) [Automatic]:
Setup can configure the local postgresql server automatically for the DWH to run. This may conflict with existing applications. Would you like Setup to automatically configure postgresql and create DWH database, or prefer to perform that manually? (Automatic, Manual) [Automatic]:Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
If you select
Automaticby pressingEnter, no further action is required here. If you select
Manual, input the following values for the manually-configured local database:DWH database secured connection (Yes, No) [No]: DWH database name [ovirt_engine_history]: DWH database user [ovirt_engine_history]: DWH database password:
DWH database secured connection (Yes, No) [No]: DWH database name [ovirt_engine_history]: DWH database user [ovirt_engine_history]: DWH database password:Copy to Clipboard Copied! Toggle word wrap Toggle overflow
-
If you select
Enter the fully qualified domain name and password for the Manager database machine. If you are installing the Data Warehouse database on the same machine where the Manager database is installed, use the same FQDN. Press
Enterto accept the default values in each other field:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Choose how long Data Warehouse will retain collected data:
Please choose Data Warehouse sampling scale: (1) Basic (2) Full (1, 2)[1]:
Please choose Data Warehouse sampling scale: (1) Basic (2) Full (1, 2)[1]:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Fulluses the default values for the data storage settings listed in Application Settings for the Data Warehouse service in ovirt-engine-dwhd.conf (recommended when Data Warehouse is installed on a remote host).Basicreduces the values ofDWH_TABLES_KEEP_HOURLYto720andDWH_TABLES_KEEP_DAILYto0, easing the load on the Manager machine. UseBasicwhen the Manager and Data Warehouse are installed on the same machine.Confirm your installation settings:
Please confirm installation settings (OK, Cancel) [OK]:
Please confirm installation settings (OK, Cancel) [OK]:Copy to Clipboard Copied! Toggle word wrap Toggle overflow After the Data Warehouse configuration is complete, on the Red Hat Virtualization Manager, restart the
ovirt-engineservice:systemctl restart ovirt-engine
# systemctl restart ovirt-engineCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Optionally, set up SSL to secure database connections using the instructions at link: https://www.postgresql.org/docs/10/ssl-tcp.html#SSL-FILE-USAGE.