第3章 接続されていない Satellite Server の更新


接続されている Satellite Server (CDN からコンテンツを同期するサーバー) が接続されていない Satellite Server からエアギャップで隔離されているエアギャップ Satellite セットアップを、次のパッチバージョンに更新します。このプロセスに従うと、マイナーリリースバージョン間で基盤となるオペレーティングシステムを更新できます。

前提条件

  • Satellite Server をバックアップします。詳細は、Red Hat Satellite の管理Satellite Server および Capsule Server のバックアップ を参照してください。
  • 更新手順に必要な reposync をインストールします。

    # dnf install 'dnf-command(reposync)'
    Copy to Clipboard Toggle word wrap

3.1. エクスポート用にリポジトリーを準備する

オフラインの Satellite にエクスポートするために、オンラインの Satellite 上で必要なリポジトリーを準備します。

手順

  1. 接続されている Satellite Server で次のリポジトリーが同期されていることを確認します。

    • rhel-9-for-x86_64-baseos-rpms
    • rhel-9-for-x86_64-appstream-rpms
    • satellite-6.18-for-rhel-9-x86_64-rpms
    • satellite-maintenance-6.18-for-rhel-9-x86_64-rpms
  2. 組織のデバッグ証明書をダウンロードして、/etc/pki/katello/certs/org-debug-cert.pem または選択した場所にローカルに保存します。詳細は、Red Hat Satellite の管理組織デバッグ証明書の作成 を参照してください。
  3. /etc/yum.repos.d の下に、次の内容の Yum 設定ファイル (satellite-disconnected.repo など) を作成します。

    [rhel-9-for-x86_64-baseos-rpms]
    name=Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)
    baseurl=https://satellite.example.com/pulp/content/My_Organization/Library/content/dist/rhel9/9/x86_64/baseos/os
    enabled = 1
    sslclientcert = /etc/pki/katello/certs/org-debug-cert.pem
    sslclientkey = /etc/pki/katello/certs/org-debug-cert.pem
    sslcacert = /etc/pki/katello/certs/katello-server-ca.crt
    sslverify = 1
    
    [rhel-9-for-x86_64-appstream-rpms]
    name=Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs)
    baseurl=https://satellite.example.com/pulp/content/My_Organization/Library/content/dist/rhel9/9/x86_64/appstream/os
    enabled = 1
    sslclientcert = /etc/pki/katello/certs/org-debug-cert.pem
    sslclientkey = /etc/pki/katello/certs/org-debug-cert.pem
    sslcacert = /etc/pki/katello/certs/katello-server-ca.crt
    sslverify = 1
    
    [satellite-6.18-for-rhel-9-x86_64-rpms]
    name=Red Hat Satellite 6.18 for RHEL 9 RPMs x86_64
    baseurl=https://satellite.example.com/pulp/content/My_Organization/Library/content/dist/layered/rhel9/x86_64/satellite/6.18/os
    enabled = 1
    sslclientcert = /etc/pki/katello/certs/org-debug-cert.pem
    sslclientkey = /etc/pki/katello/certs/org-debug-cert.pem
    sslcacert = /etc/pki/katello/certs/katello-server-ca.crt
    sslverify = 1
    
    [satellite-maintenance-6.18-for-rhel-9-x86_64-rpms]
    name=Red Hat Satellite Maintenance 6.18 for RHEL 9 RPMs x86_64
    baseurl=https://satellite.example.com/pulp/content/My_Organization/Library/content/dist/layered/rhel9/x86_64/sat-maintenance/6.18/os
    enabled = 1
    sslclientcert = /etc/pki/katello/certs/org-debug-cert.pem
    sslclientkey = /etc/pki/katello/certs/org-debug-cert.pem
    sslcacert = /etc/pki/katello/certs/katello-server-ca.crt
    sslverify = 1
    Copy to Clipboard Toggle word wrap
  4. 設定ファイルで、次の手順を実行します。

    • sslclientcert および sslclientkey オプションの場合は、/etc/pki/katello/certs/org-debug-cert.pem を、ダウンロードした組織のデバッグ証明書の場所に置き換えます。
    • baseurl オプションの場合は、satellite.example.com を、接続されている Satellite Server の正しい FQDN に置き換えます。
    • baseurl オプションの場合は、My_Organization を組織ラベルに置き換えます。
  5. 組織ラベルを取得します。

    $ hammer organization list
    Copy to Clipboard Toggle word wrap
  6. reposync コマンドを入力します。

    # dnf reposync \
    --delete \
    --disableplugin=foreman-protector \
    --download-metadata \
    --repoid rhel-9-for-x86_64-appstream-rpms \
    --repoid rhel-9-for-x86_64-baseos-rpms \
    --repoid satellite-maintenance-6.18-for-rhel-9-x86_64-rpms \
    --repoid satellite-6.18-for-rhel-9-x86_64-rpms \
    -n \
    -p ~/Satellite-repos
    Copy to Clipboard Toggle word wrap

    これにより、接続されている Satellite Server からリポジトリーのコンテンツがダウンロードされ、ディレクトリー ~/Satellite-repos に保存されます。

  7. RPM がダウンロードされ、リポジトリーデータディレクトリーが ~/Satellite-repos の各サブディレクトリーに生成されていることを確認します。
  8. ディレクトリーの内容をアーカイブします。

    # tar czf Satellite-repos.tgz -C ~ Satellite-repos
    Copy to Clipboard Toggle word wrap
  9. 生成された Satellite-repos.tgz ファイルを使用して、非接続の Satellite Server で更新します。
トップに戻る
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2025 Red Hat