1.6. RHEL 8 サーバーの停止および使用停止
最新の変更を含むすべてのデータが
rhel8.example.comからrhel9.example.comに正しく移行されていることを確認します。以下に例を示します。rhel8.example.comで新規ユーザーを追加します。[root@rhel8 ~]# ipa user-add random_user First name: random Last name: userユーザーが
rhel9.example.comに複製されていることを確認します。[root@rhel9 ~]# ipa user-find random_user -------------- 1 user matched -------------- User login: random_user First name: random Last name: user
Distributed Numeric Assignment (DNA) ID 範囲が
rhel9.example.comに割り当てられるようにします。以下の方法のいずれかを使用します。別のテストユーザーを作成して、
rhel9.example.comで DNA プラグインを直接アクティブ化します。[root@rhel9 ~]# ipa user-add another_random_user First name: another Last name: random_userrhel9.example.comに特定の DNA ID 範囲を割り当てます。rhel8.example.comで、IdM ID の範囲を表示します。[root@rhel8 ~]# 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 rangerhel8.example.comで、割り当てられた DNA ID 範囲を表示します。[root@rhel8 ~]# ipa-replica-manage dnarange-show rhel8.example.com: 196600026-196799999 rhel9.example.com: No range setセクションが
rhel9.example.comで使用可能になるように、rhel8.example.comに割り当てられた DNA ID 範囲を減らします。[root@rhel8 ~]# ipa-replica-manage dnarange-set rhel8.example.com 196600026-196699999IdM ID 範囲の残りの部分を
rhel9.example.comに割り当てます。[root@rhel8 ~]# ipa-replica-manage dnarange-set rhel9.example.com 196700000-196799999
rhel8.example.com上のすべての IdM サービスを停止して、新しいrhel9.example.comサーバーへのドメイン検索を実施します。[root@rhel8 ~]# 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ユーティリティーを使用すると、Remote Procedure Call (RPC) で新規サーバーに接続します。- RHEL 9 サーバーで削除コマンドを実行して、トポロジーから RHEL 8 サーバーを削除します。詳細は、IdM サーバーのアンインストール を参照してください。