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 中使用外部数据库。
流程
- 创建现有外部数据库的备份。
- 在新的 Red Hat Enterprise Linux 9 服务器中恢复备份。
验证 Satellite 能否访问新数据库:
# PGPASSWORD='My_Foreman_Database_Password' psql -h postgres.example.com -p 5432 -U foreman -d foreman -c "SELECT 1 as ping"如果您的 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