登录到 CLI(或 CLI Shell),并输入以下示例中显示的命令。

注:

确保您指定 NSX Advanced Load Balancer 控制器 节点的主机 IP 地址,而不是如下所示的 IP 地址:

为集群配置 ['10.10.25.81', '10.10.25.82', '10.10.25.83'] 中的控制器节点。

configure cluster
Updating an existing object. Currently, the object is:
+---------------+----------------------------------------------+
| Field         | Value                                        |
+---------------+----------------------------------------------+
| uuid          | cluster-eb01bf05-7313-4a4f-91b6-21e46d3c237d |
| name          | cluster-0-1                                  |
| nodes[1]      |                                              |
| name          | 10.10.25.81                                  |
| ip            | 10.10.25.81                                  |
| vm_ref        | EB01BF05-7313-4A4F-91B6-21E46D3C237D         |
| vm_mor        |                                              |
| vm_hostname   | node1.controller.local                       |
| tenant_ref    | admin                                        |
+---------------+----------------------------------------------+
: cluster> nodes name 10.10.25.82 ip 10.10.25.82
New object being created
: cluster:nodes> save
: cluster> nodes name 10.10.25.83 ip 10.10.25.83
New object being created
: cluster:nodes> save
: cluster> save

要在集群中添加或移除节点,需要关闭该控制器,然后使用新配置重新启动。

Waiting for the cluster to be ready... 
Controller is ready.