2.12. RHEL 9 サーバーの停止および使用停止
RHEL 10 レプリカをセットアップし、すべての重要な Identity Management (IdM) ロールを移行したら、RHEL 9 IdM サーバーを安全に廃止する必要があります。この最終ステップは、古いサーバーをトポロジーから完全に削除する前に、すべてのアイデンティティーロールとデータを確実に RHEL 10 レプリカに転送するためのものです。
手順
最新の変更を含むすべてのデータが
rhel9.example.comからrhel10.example.comに正しく移行されていることを確認します。以下に例を示します。rhel9.example.comに新しいユーザーを追加します。[root@rhel9 ~]# ipa user-add random_user First name: random Last name: userユーザーが
rhel10.example.comに複製されていることを確認します。[root@rhel10 ~]# ipa user-find random_user -------------- 1 user matched -------------- User login: random_user First name: random Last name: user
Distributed Numeric Assignment (DNA) ID 範囲が
rhel10.example.comに割り当てられるようにします。以前に DNA 範囲を記録してあれば (移行前の DNA ID 範囲の記録 を参照)、範囲を再割り当てするときに、その値を参照できます。以下の方法のいずれかを使用します。別のテストユーザーを作成して、
rhel10.example.comで DNA プラグインを直接アクティブ化します。[root@rhel10 ~]# ipa user-add another_random_user First name: another Last name: random_userrhel10.example.comに特定の DNA ID 範囲を割り当てます。rhel9.example.comで、IdM ID の範囲を表示します。[root@rhel9 ~]# ipa idrange-find ---------------- 3 ranges matched ---------------- Range name: EXAMPLE.COM_id_range First Posix ID of the range: 196600000 Number of IDs in the range: 200000 First RID of the corresponding RID range: 1000 First RID of the secondary RID range: 100000000 Range type: local domain rangerhel9.example.comで、割り当てられた DNA ID 範囲を表示します。[root@rhel9 ~]# ipa-replica-manage dnarange-show rhel9.example.com: 196600026-196799999 rhel10.example.com: No range setセクションが
rhel10.example.comで使用可能になるように、rhel9.example.comに割り当てられた DNA ID 範囲を減らします。[root@rhel9 ~]# ipa-replica-manage dnarange-set rhel9.example.com 196600026-196699999IdM ID 範囲の残りの部分を
rhel10.example.comに割り当てます。[root@rhel9 ~]# ipa-replica-manage dnarange-set rhel10.example.com 196700000-196799999
rhel9.example.com上のすべての IdM サービスを停止して、ドメイン検出が新しいrhel10.example.comサーバーに向かうように強制します。[root@rhel9 ~]# ipactl stop Stopping CA Service Stopping pki-ca: [ OK ] Stopping HTTP Service Stopping httpd: [ OK ] Stopping MEMCACHE Service Stopping ipa_memcached: [ OK ] Stopping DNS Service Stopping named: [ OK ] Stopping KPASSWD Service Stopping Kerberos 5 Admin Server: [ OK ] Stopping KDC Service Stopping Kerberos 5 KDC: [ OK ] Stopping Directory Service Shutting down dirsrv: EXAMPLE-COM... [ OK ] PKI-IPA... [ OK ]その後、
ipaユーティリティーがリモートプロシージャーコール (RPC) を介して新しいサーバーに接続します。- RHEL 10 サーバーで削除コマンドを実行して、トポロジーから RHEL 9 サーバーを削除します。詳細は、IdM サーバーのアンインストール を参照してください。