2.7. 升级外部数据库操作系统


如果您的 Satellite 使用外部数据库,您可以在将 Satellite 从 6.16 升级到 6.17 时,将数据库从 Red Hat Enterprise Linux 8 升级到 Red Hat Enterprise Linux 9。

先决条件

  • 根据 Red Hat Enterprise Linux 9 文档中的外部数据库,为 PostgreSQL 服务器创建一个运行 Red Hat Enterprise Linux 9 的主机。如需更多信息,请参阅在 Satellite 中使用外部数据库

流程

  1. 创建现有外部数据库的备份。
  2. 在新的 Red Hat Enterprise Linux 9 服务器中恢复备份。
  3. 验证 Satellite 能否访问新数据库:

    # PGPASSWORD='My_Foreman_Database_Password' psql -h postgres.example.com -p 5432 -U foreman -d foreman -c "SELECT 1 as ping"
  4. 如果您的 Satellite 服务器可以使用旧名称访问新的数据库服务器,则不需要进一步的更改。否则,重新配置 Satellite 以使用新名称:

    # satellite-installer \
    --foreman-db-host newpostgres.example.com \
    --katello-candlepin-db-host newpostgres.example.com \
    --foreman-proxy-content-pulpcore-postgresql-host newpostgres.example.com
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2026 Red Hat
返回顶部