Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
1.4. Migrating Data Warehouse and Reports to Separate Machines
ovirt_engine_history
database, or optionally migrate the ovirt_engine_history
database to a new database machine before migrating the Data Warehouse service. If the ovirt_engine_history
database is hosted on the Manager, migrating the database in addition to the Data Warehouse service further reduces the competition for resources on the Manager machine. You can migrate the database to the same machine onto which you will migrate the Data Warehouse service, or to a machine that is separate from both the Manager machine and the new Data Warehouse service machine.
1.4.1. Migrating the Data Warehouse Database to a Separate Machine Link kopierenLink in die Zwischenablage kopiert!
ovirt_engine_history
database before you migrate the Data Warehouse service. This procedure uses pg_dump
to create a database backup, and psql
to restore the backup on the new database machine. The pg_dump
command provides flexible options for backing up and restoring databases; for more information on options that may be suitable for your system, see the pg_dump
manual page.
Important
engine-setup
and entering the details of the new Data Warehouse database when prompted. If you do not do this, the Reports service is still connected to the old database, and does not receive any new data.
Procedure 1.9. Migrating the Data Warehouse Database to a Separate Machine
- On the existing database machine, dump the
ovirt_engine_history
database into a SQL script file:pg_dump ovirt_engine_history > ovirt_engine_history.sql
# pg_dump ovirt_engine_history > ovirt_engine_history.sql
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Copy the script file from the existing database machine to the new database machine.
- Restore the
ovirt_engine_history
database on the new database machine:psql -d ovirt_engine_history -f ovirt_engine_history.sql
# psql -d ovirt_engine_history -f ovirt_engine_history.sql
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The command above assumes that the database on the new machine is also namedovirt_engine_history
.
1.4.2. Migrating the Data Warehouse Service to a Separate Machine Link kopierenLink in die Zwischenablage kopiert!
ovirt_engine_history
database) prior to migrating the Data Warehouse service, see Section 1.4.1, “Migrating the Data Warehouse Database to a Separate Machine”.
- Set up the new Data Warehouse machine.
- Stop the Data Warehouse service on the Manager machine.
- Configure the new Data Warehouse machine.
- Remove the Data Warehouse package from the Manager machine.
Ensure that you have completed the following prerequisites:
- You must have installed and configured the Manager and Data Warehouse on the same machine.
- To set up the new Data Warehouse machine, you must have the following:
- A virtual or physical machine with Red Hat Enterprise Linux 6.6 or later versions of Red Hat Enterprise Linux 6 installed.
- A subscription to the
Red Hat Enterprise Linux Server
andRed Hat Enterprise Virtualization
entitlement pools. - The password from the Manager's
/etc/ovirt-engine/engine.conf.d/10-setup-database.conf
file. - Allowed access from the Data Warehouse machine to the Manager database machine's TCP port 5432.
- The
ovirt_engine_history
database credentials from the Manager's/etc/ovirt-engine-dwh/ovirt-engine-dwhd.conf.d/10-setup-database.conf
file. If you migrated theovirt_engine_history
database using Section 1.4.1, “Migrating the Data Warehouse Database to a Separate Machine”, retrieve the credentials you defined during the database setup on that machine.
Procedure 1.10. Step 1: Setting up the New Data Warehouse Machine
- Register your system with the Content Delivery Network, entering your Customer Portal user name and password when prompted:
subscription-manager register
# subscription-manager register
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Find the
Red Hat Enterprise Linux Server
andRed Hat Enterprise Virtualization
subscription pools and note down the pool IDs.subscription-manager list --available
# subscription-manager list --available
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Use the pool IDs located in the previous step to attach the entitlements to the system:
subscription-manager attach --pool=pool_id
# subscription-manager attach --pool=pool_id
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Disable all existing repositories:
subscription-manager repos --disable=*
# subscription-manager repos --disable=*
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Enable the required channels:
subscription-manager repos --enable=rhel-6-server-rpms subscription-manager repos --enable=rhel-6-server-supplementary-rpms subscription-manager repos --enable=rhel-6-server-rhevm-3.6-rpms subscription-manager repos --enable=jb-eap-6-for-rhel-6-server-rpms
# subscription-manager repos --enable=rhel-6-server-rpms # subscription-manager repos --enable=rhel-6-server-supplementary-rpms # subscription-manager repos --enable=rhel-6-server-rhevm-3.6-rpms # subscription-manager repos --enable=jb-eap-6-for-rhel-6-server-rpms
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Ensure that all packages currently installed are up to date:
yum update
# yum update
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Install the rhevm-dwh-setup package:
yum install rhevm-dwh-setup
# yum install rhevm-dwh-setup
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure 1.11. Step 2: Stopping the Data Warehouse Service on the Manager Machine
- Stop the Data Warehouse service:
service ovirt-engine-dwhd stop
# service ovirt-engine-dwhd stop
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - If the
ovirt_engine_history
database, the Manager database, or both are hosted on the Manager machine and were configured by a previous version (Red Hat Enterprise Virtualization 3.4 or prior) that was then upgraded, you must allow the new Data Warehouse machine to access them. Edit the/var/lib/pgsql/data/postgresql.conf
file and modify thelisten_addresses
line 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.If one or both databases are hosted on a remote machine, you must manually grant access by editing thepostgres.conf
file on each machine, and adding thelisten_addresses
line, as above. If both databases are hosted on the Manager machine and were configured during a clean setup of Red Hat Enterprise Virtualization Manager 3.5, access is granted by default. - Restart the postgresql service:
service postgresql restart
# service postgresql restart
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure 1.12. Step 3: Configuring the New Data Warehouse Machine
- Run the
engine-setup
command to begin configuration of Data Warehouse on the machine:engine-setup
# engine-setup
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Press Enter to configure Data Warehouse:
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 Enter to automatically configure the firewall, or type
No
and press Enter to 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. - Press Enter to accept the automatically detected hostname, or enter an alternative hostname and press Enter:
Host fully qualified DNS name of this server [autodetected host name]:
Host fully qualified DNS name of this server [autodetected host name]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Answer the following question about the location of the
ovirt_engine_history
database:Where is the DWH database located? (Local, Remote) [Local]: Remote
Where is the DWH database located? (Local, Remote) [Local]: Remote
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Type the alternative option as shown above and then press Enter. - Enter the fully qualified domain name and password for your
ovirt_engine_history
database host. Press Enter to accept the default values in each other field:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Enter the fully qualified domain name and password for the Manager database machine. Press Enter to accept the default values in each other field:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Press Enter to create a backup of the existing Data Warehouse database:
Would you like to backup the existing database before upgrading it? (Yes, No) [Yes]:
Would you like to backup the existing database before upgrading it? (Yes, No) [Yes]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The time and space required for the database backup depends on the size of the database. It may take several hours to complete. If you choose not to back up the database here, andengine-setup
fails for any reason, you will not be able to restore the database or any of the data within it. The location of the backup file appears at the end of the setup script. - Confirm that you want to permanently disconnect the existing Data Warehouse service from the Manager:
Do you want to permanently disconnect this DWH from the engine? (Yes, No) [No]:
Do you want to permanently disconnect this DWH from the engine? (Yes, No) [No]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 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
Procedure 1.13. Step 4: Removing the Data Warehouse Package from the Manager Machine
- Remove the Data Warehouse package:
yum remove rhevm-dwh
# yum remove rhevm-dwh
Copy to Clipboard Copied! Toggle word wrap Toggle overflow This step prevents the Data Warehouse service from attempting to automatically restart after an hour. - Remove the Data Warehouse files:
rm -rf /etc/ovirt-engine-dwh /var/lib/ovirt-engine-dwh
# rm -rf /etc/ovirt-engine-dwh /var/lib/ovirt-engine-dwh
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
1.4.3. Migrating the Reports Service to a Separate Machine Link kopierenLink in die Zwischenablage kopiert!
ovirt_engine_reports
database) cannot be migrated; you must create a new ovirt_engine_reports
database when you configure Reports on the new machine. Saved ad hoc reports can be migrated from the Manager machine to the new Reports machine. Migrate the Reports service only after the Manager and Data Warehouse have been configured.
- Configure the new Reports machine.
- Migrate any saved reports to the new Reports machine.
- Remove the Reports service from the Manager machine.
Ensure that you have completed the following prerequisites:
- You must have installed and configured the Manager and Reports on the same machine.
- You must have installed and configured Data Warehouse, either on the Manager machine or on a separate machine.
- To set up the new Reports machine, you must have the following:
- A virtual or physical machine with Red Hat Enterprise Linux 6.6 or later versions of Red Hat Enterprise Linux 6 installed
- A subscription to the
Red Hat Enterprise Linux Server
andRed Hat Enterprise Virtualization
entitlement pools - The password from the Data Warehouse machine's
/etc/ovirt-engine-dwh/ovirt-engine-dwhd.conf.d/10-setup-database.conf
file - Allowed access from the Reports machine to the Manager database machine's TCP port 5432
Procedure 1.14. Step 1: Configuring the New Reports Machine
- Register your system with the Content Delivery Network, entering your Customer Portal user name and password when prompted:
subscription-manager register
# subscription-manager register
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Find the
Red Hat Enterprise Linux Server
andRed Hat Enterprise Virtualization
subscription pools and note down the pool IDs.subscription-manager list --available
# subscription-manager list --available
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Use the pool IDs located in the previous step to attach the entitlements to the system:
subscription-manager attach --pool=pool_id
# subscription-manager attach --pool=pool_id
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Disable all existing repositories:
subscription-manager repos --disable=*
# subscription-manager repos --disable=*
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Enable the required channels:
subscription-manager repos --enable=rhel-6-server-rpms subscription-manager repos --enable=rhel-6-server-supplementary-rpms subscription-manager repos --enable=rhel-6-server-rhevm-3.6-rpms subscription-manager repos --enable=jb-eap-6-for-rhel-6-server-rpms
# subscription-manager repos --enable=rhel-6-server-rpms # subscription-manager repos --enable=rhel-6-server-supplementary-rpms # subscription-manager repos --enable=rhel-6-server-rhevm-3.6-rpms # subscription-manager repos --enable=jb-eap-6-for-rhel-6-server-rpms
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Ensure that all packages currently installed are up to date:
yum update
# yum update
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Install the rhevm-reports-setup package:
yum install rhevm-reports-setup
# yum install rhevm-reports-setup
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Run the
engine-setup
command to begin configuration of Reports on the machine:engine-setup
# engine-setup
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Press Enter to configure Reports:
Configure Reports on this host (Yes, No) [Yes]:
Configure Reports on this host (Yes, No) [Yes]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Press Enter to automatically configure the firewall, or type
No
and press Enter to 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. - Press Enter to accept the automatically detected hostname, or enter an alternative hostname and press Enter:
Host fully qualified DNS name of this server [autodetected host name]:
Host fully qualified DNS name of this server [autodetected host name]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 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 - Answer the following questions about the
ovirt_engine_reports
database. Press Enter to allow setup to create and configure a local database:Where is the Reports database located? (Local, Remote) [Local]: Setup can configure the local postgresql server automatically for the Reports to run. This may conflict with existing applications. Would you like Setup to automatically configure postgresql and create Reports database, or prefer to perform that manually? (Automatic, Manual) [Automatic]:
Where is the Reports database located? (Local, Remote) [Local]: Setup can configure the local postgresql server automatically for the Reports to run. This may conflict with existing applications. Would you like Setup to automatically configure postgresql and create Reports database, or prefer to perform that manually? (Automatic, Manual) [Automatic]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Enter the fully qualified domain name and password for your
ovirt_engine_history
database host. Press Enter to accept the default values in each other field:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Press Enter to allow setup to sign the Reports certificate and Apache 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 Enter to accept the default SSH port, or enter an alternative port number and then press Enter:
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-fqdn.com:
root password on remote engine server manager-fqdn.com:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Press Enter to allow automatic configuration of SSL on Apache:
Setup can configure apache to use SSL using a certificate issued from the internal CA. Do you wish Setup to configure that, or prefer to perform that manually? (Automatic, Manual) [Automatic]:
Setup can configure apache to use SSL using a certificate issued from the internal CA. Do you wish Setup to configure that, or prefer to perform that manually? (Automatic, Manual) [Automatic]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Set a password for the Reports administrative users (
admin
andsuperuser
). Note that the reports system maintains its own set of credentials that are separate to those used for the Manager:Reports power users password:
Reports power users password:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow You are prompted to enter the password a second time to confirm it. - 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
Procedure 1.15. Step 2: Migrating Saved Reports to the New Reports Machine
- On the Manager machine, run the
ovirt-engine-reports-tool
command:ovirt-engine-reports-tool
# ovirt-engine-reports-tool
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Enter the number that corresponds to the export option, and press Enter:
(2) Export Jasperreports saved reports to a zip file (1, 2, 3) []: 2
(2) Export Jasperreports saved reports to a zip file (1, 2, 3) []: 2
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Enter the absolute path for the zip file to export saved reports to, and press Enter:
Filename to export saved reports to: /tmp/saved-reports.zip
Filename to export saved reports to: /tmp/saved-reports.zip
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Copy the zip file to the new Reports machine:
scp /tmp/saved-reports.zip reports-machine-fqdn:/tmp/
# scp /tmp/saved-reports.zip reports-machine-fqdn:/tmp/
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - On the new Reports machine, run the
ovirt-engine-reports-tool
command:ovirt-engine-reports-tool
# ovirt-engine-reports-tool
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Enter the number that corresponds to the import option, and press Enter:
(3) Import a saved reports zip file to Jasperreports (1, 2, 3) []: 3
(3) Import a saved reports zip file to Jasperreports (1, 2, 3) []: 3
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Enter the absolute path of the zip file from which to import, and press Enter:
Filename to import saved reports from: /tmp/saved-reports.zip
Filename to import saved reports from: /tmp/saved-reports.zip
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure 1.16. Step 3: Removing the Reports Service from the Manager Machine
- Stop the Reports service:
service ovirt-engine-reportsd stop
# service ovirt-engine-reportsd stop
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Remove the Reports package:
yum remove rhevm-reports
# yum remove rhevm-reports
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Remove the Reports files:
rm -rf /etc/ovirt-engine-reports /var/lib/ovirt-engine-reports
# rm -rf /etc/ovirt-engine-reports /var/lib/ovirt-engine-reports
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Remove the Reports database and user. The default name for both is
ovirt_engine_reports
:su - postgres psql
# su - postgres $ psql postgres=# drop database ovirt_engine_reports; postgres=# drop user ovirt_engine_reports;
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Note
engine-setup
. This means that the Administration Portal includes dashboards from and direct links to only the most recent Reports installation.