Sample Exchange

 View Only

Configure Stretched Clustering using the vSAN Management SDK for Python 

Jul 21, 2016 04:56 PM

This file includes sample code to configure a vSAN cluster as a Stretched Cluster or 2 Node configuration.

The code has been tested with the following cases

Testbed: One cluster with four hosts. Each host has one 50G SSD and two 100G SSD

Preconditions:

  1. Please make sure your vSAN's license allows for vSAN Stretched Clustering (if greater than 2 nodes)
  2. The cluster has vSAN turned on with or without disks claimed
  3. There are no fault domains configured
  4. There is no witness VM deployed
  5. There is no witness host added
  6. The witness host contain available SSD/HDDs

Case1: Create a streched cluster with two fault domains f1 and f2 with virtual witness host

python stretchedCluster.py -s <VCENTERSERVER> -u administrator@vsphere.local -p ****  --preferdomain f1 --seconddomain f2 --ovfurl 'http://server/VMware-VirtualSAN-Witness-6.0.0.update02-3620759.ovf' --witness-vmhost <ESXIHOST> --witness-datastore vsanDatastore --witness-vmname witness --witness-vmpassword **** --witnessdc VSAN-DC --witness-vmdatacenter VSAN-DC

Case2: Create streched cluster with two fault domains f1 and f2 with physical witness host

python stretchedCluster.py -s <VCENTERSERVER> -u administrator@vsphere.local -p ****  --preferdomain f1 --seconddomain f2 --witnesshost <WITNESSHOST> --witnesshost-user root --witnesshost-pwd **** --witnessdc VSAN-DC


#StretchedCluster
#Witness
#vSANManagementSDKforPython
#2Node
#Python
#Apache2.0
#vSAN

Statistics
0 Favorited
0 Views
1 Files
0 Shares
0 Downloads
Attachment(s)
py file
stretchedCluster.py   19 KB   1 version
Uploaded - Apr 09, 2024

Tags and Keywords

Related Entries and Links

No Related Resource entered.