1.6. 停止并退出 RHEL 8 服务器

  1. 确保所有数据(包括最新的更改)已从 rhel8.example.com 正确迁移到 rhel9.example.com。例如:

    1. rhel8.example.com 上添加一个新用户:

      [root@rhel8 ~]# ipa user-add random_user
      First name: random
      Last name: user
    2. 检查该用户是否已复制到 rhel9.example.com

      [root@rhel9 ~]# ipa user-find random_user
      --------------
      1 user matched
      --------------
        User login: random_user
        First name: random
        Last name: user
  2. 停止 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 工具将通过远程过程调用(RPC)联系新的服务器。

  3. 通过在 RHEL 9 服务器中执行删除命令,从拓扑中删除 RHEL 8 服务器。详情请参阅 卸载 IdM 服务器