1.6. 停止并停用 RHEL 9 服务器
确保所有数据(包括最新的更改)都已从
rhel9.example.com正确迁移到rhel10.example.com。例如:在
rhel9.example.com上添加新用户:ipa user-add random_user First name: random Last name: user
[root@rhel9 ~]# ipa user-add random_user First name: random Last name: userCopy to Clipboard Copied! Toggle word wrap Toggle overflow 检查用户是否已复制到
rhel10.example.com:Copy to Clipboard Copied! Toggle word wrap Toggle overflow
确保分布式数字分配(DNA) ID 范围已分配给
rhel10.example.com。使用以下方法之一:通过创建另一个测试用户,来直接在
rhel10.example.com上激活 DNA 插件:ipa user-add another_random_user First name: another Last name: random_user
[root@rhel10 ~]# ipa user-add another_random_user First name: another Last name: random_userCopy to Clipboard Copied! Toggle word wrap Toggle overflow 将特定的 DNA ID 范围分配给
rhel10.example.com:在
rhel9.example.com上,显示 IdM ID 范围:Copy to Clipboard Copied! Toggle word wrap Toggle overflow 在
rhel9.example.com上,显示分配的 DNA ID 范围:ipa-replica-manage dnarange-show rhel9.example.com: 196600026-196799999 rhel10.example.com: No range set
[root@rhel9 ~]# ipa-replica-manage dnarange-show rhel9.example.com: 196600026-196799999 rhel10.example.com: No range setCopy to Clipboard Copied! Toggle word wrap Toggle overflow 减少分配给
rhel9.example.com的 DNA ID 范围,以便一个部分可供rhel10.example.com使用:ipa-replica-manage dnarange-set rhel9.example.com 196600026-196699999
[root@rhel9 ~]# ipa-replica-manage dnarange-set rhel9.example.com 196600026-196699999Copy to Clipboard Copied! Toggle word wrap Toggle overflow 将 IdM ID 范围的剩余部分分配给
rhel10.example.com:ipa-replica-manage dnarange-set rhel10.example.com 196700000-196799999
[root@rhel9 ~]# ipa-replica-manage dnarange-set rhel10.example.com 196700000-196799999Copy to Clipboard Copied! Toggle word wrap Toggle overflow
停止
rhel9.example.com中的所有 IdM 服务,来将域发现强制到新的rhel10.example.com服务器。Copy to Clipboard Copied! Toggle word wrap Toggle overflow 之后,
ipa工具将通过远程过程调用(RPC)联系新的服务器。- 通过在 RHEL 10 服务器上执行删除命令,来从拓扑中删除 RHEL 9 服务器。详情请参阅 卸载 IdM 服务器。