您可以使用命令行将 ESXi 主机添加到现有的受信任集群。

在最初配置了受信任集群后,您可能需要添加更多 ESXi 主机。但是,将主机添加到受信任集群时,必须执行额外的修复步骤。修复受信任集群时,请确保其所需的配置状态与其应用的配置相匹配。

在 vSphere 7.0 所发布的第一版 vSphere Trust Authority 中,您可以运行脚本以将主机添加到现有的受信任集群。在 vSphere 7.0 Update 1 及更高版本中,可以使用修复功能添加受信任主机。在 vSphere 7.0 Update 1 及更高版本中,仍必须使用脚本将主机添加到现有的 Trust Authority 集群。请参见添加和移除 vSphere Trust Authority 主机

前提条件

  • 受信任集群的 vCenter Server 必须运行 vSphere 7.0 Update 1 或更高版本。
  • 需要 PowerCLI 12.1.0 或更高版本。
  • 所需特权:请参见常见任务的所需 vCenter Server 特权中的“添加主机任务”。

过程

  1. 使用常规步骤将 ESXi 主机添加到受信任集群。
  2. 在 PowerCLI 会话中,运行 Connect-VIServer cmdlet,以 Trust Authority 管理员身份连接到受信任集群的 vCenter Server
    Connect-VIServer -server TrustedCluster_VC_ip_address -User trust_admin_user -Password 'password'
  3. 要检查受信任集群的状态,请运行 Get-TrustedClusterAppliedStatus PowerCLI cmdlet。
    Get-TrustedClusterAppliedStatus -TrustedCluster 'TrustedCluster'
  4. 如果受信任集群处于不正常状态,请使用 -Remediate 参数运行 Set-TrustedCluster cmdlet。
    Set-TrustedCluster -TrustedCluster 'TrustedCluster' -Remediate
  5. 要验证受信任集群是否处于正常状态,请重新运行 Get-TrustedClusterAppliedStatus cmdlet。
    Get-TrustedClusterAppliedStatus -TrustedCluster 'TrustedCluster'