Stretch the cluster in the management domain or VI workload domain using a JSON specification.
Prerequisites
- Verify that vCenter Server is operational.
- Verify that you have completed the Planning and Preparation Workbook with the management domain or VI workload domain deployment option included.
- Verify that your environment meets the requirements listed in the Prerequisite Checklist sheet in the Planning and Preparation Workbook.
- Create a network pool for availability zone 2.
- Commission hosts for availability zone 2. See Commission Hosts.
- Ensure that you have enough hosts such that there is an equal number of hosts on each availability zone. This is to ensure that there are sufficient resources in case an availability zone goes down completely.
- Deploy and configure a vSAN witness host. See Deploy and Configure vSAN Witness Host.
- If you are stretching a cluster in a VI workload domain, the default management vSphere cluster must have been stretched.
Important: You cannot deploy an NSX Edge cluster on a vSphere cluster that is stretched. If you plan to deploy an NSX Edge cluster, you must do so before you execute the stretch cluster workflow.
Note: You cannot stretch a cluster in the following cases:
- it uses static IP addresses for the NSX Host Overlay Network TEP
- it includes a remote vSAN datastore
- it uses vSphere Lifecycle Manager images
- it is enabled for Workload Management
Procedure
- Create a JSON specification with the following content in a text editor.
{
"clusterStretchSpec":{
"hostSpecs":[
{
"id":"ESXi host 1 ID",
"licenseKey":"BBBBB-BBBBB-BBBBB-BBBBB-BBBBB"
},
{
"id":"ESXi host 2 ID",
"licenseKey":"BBBBB-BBBBB-BBBBB-BBBBB-BBBBB"
},
{
"id":"ESXi host 3 ID",
"licenseKey":"BBBBB-BBBBB-BBBBB-BBBBB-BBBBB"
},
{
"id":"ESXi host 4 ID",
"licenseKey":"BBBBB-BBBBB-BBBBB-BBBBB-BBBBB"
}
],
"secondaryAzOverlayVlanId": availability Zone 2 Overlay VLAN ID,
"isEdgeClusterConfiguredForMultiAZ": true,
"witnessTrafficSharedWithVsanTraffic": false,
"witnessSpec":{
"fqdn":"fqdn of vSAN witness host",
"vsanCidr":"vsanCidr of vSAN witness host",
"vsanIp":"vsanIp of vSAN witness host"
}
}
}
Note:
vsanCIDR
and vsanIP
values are for the witness appliance on which vSAN is enabled.
- In the navigation pane, click .
- Retrieve and replace the unique IDs for each ESXi host in the JSON specification.
- Expand the APIs for managing hosts section, and expand GET /v1/hosts.
- In the Status text box, enter UNASSIGNED_USEABLE and click Execute.
- In the Response section, click PageOfHost, copy the
id
element of each host, and replace the respective value in the JSON specification.
ESXi Host |
Value |
ESXi Host 1 |
ESXi host 1 ID |
ESXi Host 2 |
ESXi host 2 ID |
ESXi Host 3 |
ESXi host 3 ID |
ESXi Host 4 |
ESXi host 4 ID |
- Replace the license key value in JSON specification with valid keys.
- Retrieve and replace the unique ID for the management cluster in the JSON specification.
- Expand the APIs for managing clusters section, and expand GET /v1/cluster.
- Click Execute.
- In the Response section, click PageOfCluster, copy the
id
element of the management cluster, and replace the ID value in the JSON specification.
- Validate the JSON specification file.
- Expand the APIs for managing clusters section and expand POST /v1/clusters/{id}/validations.
- In the Value text box, enter the unique ID for the management cluster.
- In the clusterUpdateSpec text box, type
{
"clusterUpdateSpec": {
}
}
- Paste the JSON specification within the paranthesis.
- Click Execute.
- In the confirmation dialog box, click Continue.
- In the Response section, expand the result section and verify that the response is
SUCCEEDED
.
- Stretch the cluster with the JSON specification.
- Expand the APIs for managing clusters section and expand PATCH /v1/clusters/{id}.
- Paste the unique
ID
of the management cluster in the Value text-box.
- clusterUpdateSpec text box, type
- Paste the JSON specification within the paranthesis.
- Click Execute.
- On the confirmation dialog box, click Continue.
What to do next
Configure
NSX-T Data Center for availability zone 2.