Stretching a vSAN Cluster Across Two Availability Zones via SDDC Manager API VCF 9.1 with Link Aggregation Control Protocol (LACP) configured
search cancel

Stretching a vSAN Cluster Across Two Availability Zones via SDDC Manager API VCF 9.1 with Link Aggregation Control Protocol (LACP) configured

book

Article ID: 441228

calendar_today

Updated On:

Products

VMware SDDC Manager / VCF Installer

Issue/Introduction

Example for the JSON API input for stretching a vSAN cluster in VMware Cloud Foundation 9.1 across two Availability Zones (AZ1 and AZ2) utilizing the SDDC Manager API. This article outlines JSON specification needed when using Link Aggregation Control Protocol (LACP).

Environment

VMware Cloud Foundation (VCF)  9.1

Resolution

This Example is used if the vDS uplinks are configured using Link Aggregation Control Protocol (LACP). Active
uplinks are explicitly referenced as LAG-0 / LAG-1 .

(Note: This example does not cover formatting and is for guidance only)

"clusterStretchSpec": {
"deployWithoutLicenseKeys": true,
"hostSpecs": [
{
"id": "<ESX-HOST-UUID-1>",
"hostname": "<FQDN-HOST-1>",
"hostNetworkSpec": {
"networkProfileName": "<NSX-Sub-Cluster-Profile-AZ2>",
"vmNics": [
{ "id": "vmnic0", "vdsName": "<vDS-Name-AZ1>", "uplink": "LAG-0" },
{ "id": "vmnic1", "vdsName": "<vDS-Name-AZ1>", "uplink": "LAG-1" }




"id": "<ESX-HOST-UUID-2>",
"hostname": "<FQDN-HOST-2>",
"hostNetworkSpec": {
"networkProfileName": "<NSX-Sub-Cluster-Profile-AZ2>",
"vmNics": [
{ "id": "vmnic0", "vdsName": "<vDS-Name-AZ1>", "uplink": "LAG-0" },
{ "id": "vmnic1", "vdsName": "<vDS-Name-AZ1>", "uplink": "LAG-1" }



"id": "<ESX-HOST-UUID-3>",
"hostname": "<FQDN-HOST-3>",
"hostNetworkSpec": {
"networkProfileName": "<NSX-Sub-Cluster-Profile-AZ2>",
"vmNics": [
{ "id": "vmnic0", "vdsName": "<vDS-Name-AZ1>", "uplink": "LAG-0" },
{ "id": "vmnic1", "vdsName": "<vDS-Name-AZ1>", "uplink": "LAG-1" }



"id": "<ESX-HOST-UUID-4>",
"hostname": "<FQDN-HOST-4>",
"hostNetworkSpec": {
"networkProfileName": "<NSX-Sub-Cluster-Profile-AZ2>",
"vmNics": [
{ "id": "vmnic0", "vdsName": "<vDS-Name-AZ1>", "uplink": "LAG-0" },
{ "id": "vmnic1", "vdsName": "<vDS-Name-AZ1>", "uplink": "LAG-1" }



"networkSpec": {
"networkProfiles": [
{
"isDefault": false,
"name": "<NSX-Sub-Cluster-Profile-AZ2>",
"nsxtHostSwitchConfigs": [
{
"ipAddressPoolName": "<TEP-Pool-Name-AZ2>",
"uplinkProfileName": "<Uplink-Profile-Name-AZ2>",
"vdsName": "<vDS-Name-AZ1>",
"vdsUplinkToNsxUplink": [
{ "nsxUplinkName": "LAG", "vdsUplinkName": "LAG" }


"nsxClusterSpec": {
"ipAddressPoolsSpec": [
{
"name": "<TEP-Pool-Name-AZ2>",
"subnets": [
{
"cidr": "<TEP-CIDR-AZ2>",
"gateway": "<TEP-Gateway-AZ2>",
"ipAddressPoolRanges": [
{ "start": "<TEP-IP-Start>", "end": "<TEP-IP-End>" }



,
"uplinkProfiles": [
{
"name": "<Uplink-Profile-Name-AZ2>",
"transportVlan": "<Transport-VLAN-ID>",
"teamings": [
{
"name": "DEFAULT",
"policy": "FAILOVER_ORDER",
"standByUplinks": [],
"activeUplinks": ["LAG"]




"isEdgeClusterConfiguredForMultiAZ": false,
"witnessSpec": {
"fqdn": "<Witness-Host-FQDN>",
"vsanCidr": "<vSAN-CIDR-Witness>",
"vsanIp": "<vSAN-IP-Witness>"
},
"witnessTrafficSharedWithVsanTraffic": false