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