Show Table of Contents
1.2. 在独立的机器上安装和配置 Data Warehouse
在安装 Red Hat Virtualization Manager 的机器以外的机器上安装和配置 Data Warehouse。在独立的机器上运行 Data Warehouse 服务有助于降低 Manager 机器的负载。
先决条件
- 您已经在另外一台机器上安装并配置了 Manager。
- 要设置 Data Warehouse,您需要:
- 安装了 Red Hat Enterprise Linux 7 的虚拟机或物理机。
Red Hat Enterprise Linux Server订阅和Red Hat Virtualization订阅池。- Manager 的
/etc/ovirt-engine/engine.conf.d/10-setup-database.conf文件中的密码。. - 允许从 Data Warehouse 所在机器上访问 Manager 数据库所在机器的 TCP 端口 5432。
- 如果选择使用远程 Data Warehouse 数据库,您必须先设置数据库,然后再安装 Data Warehouse 服务。您必须具有以下有关数据库主机的信息:
- 主机的全局域名(FQDN)
- 访问数据库的端口号(默认是 5432)
- 数据库名
- 数据库用户
- 数据库密码
- 您必须通过编辑
postgres.conf文件,手动授予访问权限。编辑/var/lib/pgsql/data/postgresql.conf文件,并修改listen_addresses行,使它与如下相符:listen_addresses = '*'
如果这行没有存在或被注释掉,您需要手工添加它。如果数据库运行于 Manager 机器上,并在全新安装 Red Hat Virtualization Manager 过程中进行了配置,则已默认授予访问权限。
过程 1.1. 在独立的机器上安装和配置 Data Warehouse
- 为您的系统订阅所需的权利。如需了解更多信息,请参阅安装指南中的订阅所需的权利。
- 确认当前安装的软件包已被升级到最新版本:
# yum update
- 安装 ovirt-engine-dwh-setup 软件包:
# yum install ovirt-engine-dwh-setup
- 运行
engine-setup命令,再按照机器上的提示配置 Data Warehouse:# engine-setup Configure Data Warehouse on this host (Yes, No) [Yes]:
- 按 Enter 接受自动检测到的主机名,或者输入其他主机名并按 Enter:
Host fully qualified DNS name of this server [autodetected hostname]:
- 点 Enter 自动配置防火墙,或输入
No并点 Enter 来保持存在的设置: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]:
如果您选择了自动配置防火墙,但还没有激活的防火墙管理器,您将会被提示从一个列表中选择需要使用的防火墙管理器。输入防火墙管理器的名称后按 Enter。 - 输入 Manager 所在机器的完全限定域名并点 Enter:
Host fully qualified DNS name of the engine server []:
- 按 Enter 以允许安装程序通过 SSH 在 Manager 中为证书签名:
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]:
- 点 Enter 接受默认的 SSH 端口,或输入另外一个端口号后点 Enter:
ssh port on remote engine server [22]:
- 输入 Manager 机器的 root 密码:
root password on remote engine server manager.example.com:
- 回答以下与 Data Warehouse 数据库相关的问题:
Where is the DWH database located? (Local, Remote) [Local]: 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]:
按 Enter 以选择突出显示的默认值,或输入您的其他选择并按 Enter。如果选择Remote,您要根据提示提供远程数据库主机相关的详细信息。为预配置的远程数据库主机输入以下值:DWH database host []: dwh-db-fqdn DWH database port [5432]: DWH database secured connection (Yes, No) [No]: DWH database name [ovirt_engine_history]: DWH database user [ovirt_engine_history]: DWH database password: password
请参阅第 1.3.1 节 “把 Data Warehouse 数据库迁移到一个独立的机器上”,了解有关如何配置和迁移 Data Warehouse 数据库的更多信息。 - 输入 Manager 数据库所在机器的完全限定域名和密码。点 Enter 接受每个项的默认值:
Engine database host []: engine-db-fqdn Engine database port [5432]: Engine database secured connection (Yes, No) [No]: Engine database name [engine]: Engine database user [engine]: Engine database password: password
- 选择 Data Warehouse 保留所收集数据的时长:
Please choose Data Warehouse sampling scale: (1) Basic (2) Full (1, 2)[1]:
Full使用在第 2.4 节 “ovirt-engine-dwhd.conf 中的 Data Warehouse 服务的应用设置”中列出的数据存储设置默认值(建议在 Data Warehouse 安装于远程主机的情况下使用)。Basic将DWH_TABLES_KEEP_HOURLY的值降低至720,将DWH_TABLES_KEEP_DAILY的值降低至0,减轻 Manager 机器上的负载(建议在同一主机同时安装 Manager 和 Data Warehouse 的情况下使用)。 - 确认您的安装设置:
Please confirm installation settings (OK, Cancel) [OK]:
- 在 Red Hat Virtualization Manager 上,重新启动
ovirt-engine服务:# systemctl restart ovirt-engine.service

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.