You can expand a stretched cluster by adding hosts. The hosts need to be added in pairs (such as two, four, six, or eight). Half of the hosts you add to the cluster will be added to the first availability zone and the other half will be added to the second availability zone.
Prerequisites
Procedure
- Commission the additional hosts to VMware Cloud Foundation. For each pair of hosts, associate one with the network pool in AZ1 and the other with the network pool in AZ2.
See Commission Hosts.
- SSH in to the SDDC Manager appliance using the vcf administrative user account.
- Enter su to switch to the root user and navigate to the /opt/vmware/sddc-support directory.
- Enter the following command:
./sos --expand-stretch-cluster --sc-domain <DOMAIN NAME> --sc-cluster <CLUSTER NAME> --sc-hosts <HOSTFQDN,HOSTDQND2,...> --esxi-license-key <LICENSE KEY>
Example input and response:root@sddc-manager [ /opt/vmware/sddc-support ]# ./sos --expand-stretch-cluster --sc-domain MGMT --sc-cluster SDDC-Cluster1 --sc-hosts esxi-9.vrack.vsphere.local, esxi-10.vrack.vsphere.local --esxi-license-key AAAAA-BBBBB-CCCCC-DDDDD-EEEEE Welcome to Supportability and Serviceability(SoS) utility! Logs : /var/log/vmware/vcf/sddc-support/stretchCluster-2019-02-20-10-04-32-123007 Stretch Cluster operation log : /var/log/vmware/vcf/sddc-support/stretchCluster-2019-02-20-10-04-32-123007/sos.log Starting vSAN stretched cluster operations.. expand vSAN stretched cluster operation started Api Response:{ "taskId": "6e4b13d9-eead-408b-a595-4e89ef885a3e", "resourceId": "0c518498-b302-40ae-abc4-10addead7bc2", "resourceType": "ESXI", "state": "IN_PROGRESS", "description": "Prepare vSAN Cluster - SDDC-Cluster1 for Stretch in VMware Cloud Foundation", "timestamp": 1550657073615, "id": "6e4b13d9-eead-408b-a595-4e89ef885a3e" } - Monitor the state of the task in the SDDC Manager Dashboard.
- If required, SSH in to each newly added hosts and add a static route to the vSAN network of the witness host. Add static routes in the witness if it could not reach the vSAN network of the newly added hosts.
- Move the added host to the appropriate availability zone so that the cluster is back to containing two fault domains again.
- On the SDDC Manager Dashboard, click Inventory > Workload Domains and then click View Details.
- Click the name of the domain containing the stretched cluster, for example, MGMT.
- Click the Services tab and click the vCenter Server launch icon and log in to the vSphere Web Client.
- In the vSphere Web Client, select the stretched cluster. Then select Configure > vSAN > Fault Domains & Stretched Cluster.
- Select the first newly added host associated with the network pool on AZ1 and drag it to AZ1.
- Select the second newly added host associated with the network pool on AZ2 and drag it to AZ2.
- Add these hosts to the VMHost rule so that you can deploy VMs on all hosts.
- In the vSphere Web Client, select Hosts and Clusters and then select the stretched cluster.
- Select Configure > VM/Host Rules.
- Select the <cluster_name> rule and click Add.
- Select the ESXi hosts newly added to availability zone 1 and click OK.
- Update the value for Host failure cluster tolerates to the number of hosts in AZ1 after the expansion.
- Log in to the management vCenter Server in the vSphere Web Client.
- From the Home menu, select Hosts and Clusters and expand the stretched cluster.
- Select the stretched cluster and click the Configure tab.
- Under Services, click vSphere Availability, and click Edit.
- On the Admission Control page of the Edit Cluster Settings dialog box, set Host failures cluster tolerates to the number of hosts in AZ1 and click OK.