搜索

3.5. 在一个单独的计算机上安装和配置数据仓库

download PDF

这部分论述了在独立于 Red Hat Virtualization Manager 的机器上安装和配置数据仓库服务。在单独的计算机上安装数据仓库有助于减少管理器计算机的负载。

注意

红帽只支持安装数据仓库数据库、数据仓库服务和 Grafana,它们都与彼此相同,尽管您可以在独立的机器上分别安装这些组件。

先决条件

  • Red Hat Virtualization Manager 安装在一个独立的机器上。
  • 运行 Red Hat Enterprise Linux 8 的物理服务器或虚拟机。
  • Manager 数据库密码。

启用 Red Hat Virtualization Manager 存储库

您需要使用 Red Hat Subscription Manager 登录并注册数据仓库,附加 Red Hat Virtualization Manager 订阅并启用 Manager 存储库。

流程

  1. 使用 Content Delivery Network 注册您的系统,在提示时输入您的客户门户网站用户名和密码:

    # subscription-manager register
    注意

    如果您使用 IPv6 网络,请使用 IPv6 转换机制来访问 Content Delivery Network 和 subscription Manager。

  2. 查找 Red Hat Virtualization Manager 订阅池并记录池 ID:

    # subscription-manager list --available
  3. 使用池 ID 将订阅附加到系统:

    # subscription-manager attach --pool=pool_id
    注意

    查看当前附加的订阅:

    # subscription-manager list --consumed

    列出所有启用的软件仓库:

    # dnf repolist
  4. 配置存储库:

    # subscription-manager repos \
        --disable='*' \
        --enable=rhel-8-for-x86_64-baseos-eus-rpms \
        --enable=rhel-8-for-x86_64-appstream-eus-rpms \
        --enable=rhv-4.4-manager-for-rhel-8-x86_64-rpms \
        --enable=fast-datapath-for-rhel-8-x86_64-rpms \
        --enable=jb-eap-7.4-for-rhel-8-x86_64-rpms \
        --enable=openstack-16.2-cinderlib-for-rhel-8-x86_64-rpms \
        --enable=rhceph-4-tools-for-rhel-8-x86_64-rpms \
        --enable=rhel-8-for-x86_64-appstream-tus-rpms \
        --enable=rhel-8-for-x86_64-baseos-tus-rpms
  5. 将 RHEL 版本设置为 8.6:

    # subscription-manager release --set=8.6
  6. 启用 pki-deps 模块。

    # dnf module -y enable pki-deps
  7. 启用 postgresql 模块的版本 12。

    # dnf module -y enable postgresql:12
  8. 启用 nodejs 模块的版本 14:

    # dnf module -y enable nodejs:14
  9. 同步安装的软件包,将它们更新至最新可用版本。

    # dnf distro-sync --nobest

其它资源

有关模块和模块流的详情,请参考安装、管理和删除用户空间组件中的以下部分

在一个单独的机器中安装数据仓库

流程

  1. 登录到您要安装数据库的机器。
  2. 请确定所有软件包都为最新版本:

    # dnf upgrade --nobest
  3. 安装 ovirt-engine-dwh-setup 软件包:

    # dnf install ovirt-engine-dwh-setup
  4. 运行 engine-setup 命令开始安装:

    # engine-setup
  5. 回答 Yes 在该机器上安装数据仓库:

    Configure Data Warehouse on this host (Yes, No) [Yes]:
  6. 回答 Yes 在该机器上安装 Grafana:

    Configure Grafana on this host (Yes, No) [Yes]:
  7. Enter 接受自动探测的主机名,或者输入备用主机名并按 Enter

    Host fully qualified DNS name of this server [autodetected hostname]:
  8. 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。即使只列出了一个选项,也是如此。

  9. 输入 Manager 机器的完全限定域名,然后按 Enter:

    Host fully qualified DNS name of the engine server []:
  10. 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]:
  11. Enter 接受默认 SSH 端口,或者输入备用端口号,然后按 Enter 键:

    ssh port on remote engine server [22]:
  12. 输入 Manager 机器的 root 密码:

    root password on remote engine server manager.example.com:
  13. 指定是否在此机器上托管数据仓库数据库(本地),或在另一台机器上(远程):

    注意

    红帽只支持安装数据仓库数据库、数据仓库服务和 Grafana,它们都与彼此相同,尽管您可以在独立的机器上分别安装这些组件。

    Where is the DWH database located? (Local, Remote) [Local]:
    • 如果您选择 Local,则 engine-setup 脚本可以自动配置数据库(包括添加用户和数据库)或者它连接到预配置的本地数据库:

      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 来选择 Automatic,则不需要进一步的操作。
      • 如果选择 Manual,请为手动配置的本地数据库输入以下值:

        DWH database secured connection (Yes, No) [No]:
        DWH database name [ovirt_engine_history]:
        DWH database user [ovirt_engine_history]:
        DWH database password:
    • 如果您选择 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
    • 如果选择 Remote,系统会提示您输入 Grafana 数据库用户的用户名和密码:

      Grafana database user [ovirt_engine_history_grafana]:
      Grafana database password:
  14. 为 Manager 数据库机器输入完全限定域名和密码。如果您要在安装 Manager 数据库的同一机器上安装 Data Warehouse 数据库,则使用相同的 FQDN。按 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
  15. 选择数据仓库将保留所收集数据的时长:

    Please choose Data Warehouse sampling scale:
    (1) Basic
    (2) Full
    (1, 2)[1]:

    Full 使用默认值用于数据存储设置(Application Settings for the Data Warehouse service in ovirt-engine-dwhd.conf,在远程主机上安装 Data Warehouse 时这是推荐的设置。

    Basic 会将 DWH_TABLES_KEEP_HOURLY 的值减小到 720DWH_TABLES_KEEP_DAILY 的值减小到 0,从而减轻了 Manager 集群的负载。在同一机器上安装 Manager 和数据仓库时,请使用 Basic

  16. 确认安装设置:

    Please confirm installation settings (OK, Cancel) [OK]:
  17. 在 Data Warehouse 配置完成后,在 Red Hat Virtualization Manager 中重启 ovirt-engine 服务:

    # systemctl restart ovirt-engine
  18. (可选)将 SSL 设置为安全数据库连接。

登录到管理门户,您可以在其中添加主机和存储到环境中:

Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.