1.6. 停止并停用 RHEL 9 服务器
确保所有数据(包括最新的更改)都已从
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
确保分布式数字分配(DNA) ID 范围已分配给
rhel10.example.com。使用以下方法之一:通过创建另一个测试用户,来直接在
rhel10.example.com上激活 DNA 插件:[root@rhel10 ~]# ipa user-add another_random_user First name: another Last name: random_user将特定的 DNA ID 范围分配给
rhel10.example.com:在
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 range在
rhel9.example.com上,显示分配的 DNA ID 范围:[root@rhel9 ~]# ipa-replica-manage dnarange-show rhel9.example.com: 196600026-196799999 rhel10.example.com: No range set减少分配给
rhel9.example.com的 DNA ID 范围,以便一个部分可供rhel10.example.com使用:[root@rhel9 ~]# ipa-replica-manage dnarange-set rhel9.example.com 196600026-196699999将 IdM 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 服务器。