Loading

×Sorry to interrupt
Uncaught ReferenceError: addCTracking is not defined
throws at https://kb.vmware.com/resource/KM_TealiumTrackingJS?v=0.5:100:1

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

How to prepare a VMware Cloud Foundation 3.x cluster for inclusion in a VSAN stretched cluster (59280)

Last Updated: 3/8/2019Categories: How toTotal Views: 3487Language:
English

Subscribe to get an email
newsletter with new updates

Please provide article feedback:

Purpose

This article provides a python script that runs on the SDDC Manager VM to prepare a cluster for stretched-VSAN. The attached script is referred to in the VMware Cloud Foundation 3.0.x/3.5 Administration Guide and is used to add hosts from either Availability Zone 1 or Availability Zone 2 to an existing stretched-VSAN cluster. For VMware Cloud Foundation 3.5.1, examples of using the sos to prepare the cluster for stretched-VSAN are included in this article.

Resolution

For VMware Cloud Foundation 3.0.x

Download the attached 59280_vsan-stretch-cluster-3.0.tar file.

Use a file transfer utility to copy the file to the /tmp directory on SDDC Manager VM.

SSH to the SDDC Manager VM as the vcf user.

Extract the contents of the file by issuing the following command:

tar -C /tmp/ -xvf /tmp/59280_vsan-stretch-cluster-3.0.tar

To display the available clusters, issue the following command:

python /tmp/vsan-stretch-cluster/workflow/stretch_vsan.py --show-clusters

Note: You will see output similar to the following:

Domain name: MGMT
Cluster name: SDDC-Cluster1

To display the free hosts in the VMware Cloud Foundation inventory, issue the following command:

python /tmp/vsan-stretch-cluster/workflow/stretch_vsan.py --show-free-hosts

Note: You will see output similar to the following:

r2n3.dr13.vmw.corp
r2n4.dr13.vmw.corp
r2n5.dr13.vmw.corp
r2n6.dr13.vmw.corp

Issue a command similar to the following to add free hosts to a particular domain/cluster:

python /tmp/vsan-stretch-cluster/workflow/stretch_vsan.py --stretch-vsan --domain MGMT --cluster SDDC-Cluster1 --hosts r2n3.dr13.vmw.corp r2n4.dr13.vmw.corp  r2n5.dr13.vmw.corp r2n6.dr13.vmw.corp --license 12345-67890-ABCDE-FGHIJ-KLMNO

Note: You will see output similar to the following:

Stretch VSAN Triggered. Please monitor it from the Sddc manager UI

Notes:

Use the domain, cluster and host names that apply to your installation.

Use the ESXi license that is applicable to your installation.

For VMware Cloud Foundation 3.5.0

Download the attached 59280_vsan-stretch-cluster-3.5.tar file.

Use a file transfer utility to copy the file to the /tmp directory on SDDC Manager VM.

SSH to the SDDC Manager VM as the vcf user.

Extract the contents of the file by issuing the following command:

tar -C /tmp/ -xvf /tmp/59280_vsan-stretch-cluster-3.5.tar

To display the available clusters, issue the following command:

python /tmp/vsan-stretch-cluster/workflow/stretch_vsan.py --show-clusters

Note: You will see output similar to the following:

Domain name: MGMT
Cluster name: SDDC-Cluster1

To display the free hosts in the VMware Cloud Foundation inventory, issue the following command:

python /tmp/vsan-stretch-cluster/workflow/stretch_vsan.py --show-free-hosts

Note: You will see output similar to the following:

r2n3.dr13.vmw.corp
r2n4.dr13.vmw.corp
r2n5.dr13.vmw.corp
r2n6.dr13.vmw.corp

Issue a command similar to the following to add free hosts to a particular domain/cluster:

python /tmp/vsan-stretch-cluster/workflow/stretch_vsan.py --stretch-vsan --domain MGMT --cluster SDDC-Cluster1 --hosts r2n3.dr13.vmw.corp r2n4.dr13.vmw.corp  r2n5.dr13.vmw.corp r2n6.dr13.vmw.corp --license 12345-67890-ABCDE-FGHIJ-KLMNO

Note: You will see output similar to the following:

Stretch VSAN Triggered. Please monitor it from the Sddc manager UI

Notes:

Use the domain, cluster and host names that apply to your installation.

Use the ESXi license that is applicable to your installation.

Issue a command similar to the following to reconfigure the NSX Controllers for a particular domain/cluster:

python /tmp/vsan-stretch-cluster/workflow/reconfigure-nsxcontrollers.py --reconfigure-nsxcontrollers --domain MGMT --cluster SDDC-Cluster1

Note: You will see output similar to the following:

Reconfigure Nsx Controllers Triggered. Please monitor it from the Sddc manager UI

Notes:

Use the domain, cluster and host names that apply to your installation.

The reconfigure-nsxcontrollers.py script also accepts the --show-clusters switch, similar to the stretch_vsan.py script.

For VMware Cloud Foundation 3.5.1

In VMware Cloud Foundation 3.5.1, preparing a cluster for inclusion in a VSAN stretched cluster is done via the /opt/vmware/sddc-support/sos command. The following specific switches are relevant to the stretched cluster configuration:

vSAN Stretched Cluster:
--show-clusters Show all domains and clusters
--show-free-hosts Shows list of all free hosts
--stretch-vsan Creates json payload for stretch Vsan and call stretch
vsan to be called with --sc-domain --sc-cluster --sc-hosts
--esxi-license-key
--reconfigure-nsxcontrollers
Get Cluster info for NSX Controllers reconfiguration
and trigger the reconfiguration workflow for given
--sc-domain --sc-cluster
--sc-domain SCDOMAIN Use this domain for vsan stretch
--sc-cluster SCCLUSTER
Use this cluster for vsan stretch
--sc-hosts SCHOSTS [SCHOSTS ...]
Use these hosts for vsan stretch
--esxi-license-key ESXILICENSEKEY
Provide esx license key

The following are usage examples of some of the needed VSAN stretched cluster switches to the sos command:

Show Free Hosts:

/opt/vmware/sddc-support/sos --show-free-hosts
Welcome to Supportability and Serviceability(SoS) utility!
Logs : /var/log/vmware/vcf/sddc-support/stretchCluster-2018-12-05-07-29-55-64592
Stretch Cluster operation log : /var/log/vmware/vcf/sddc-support/stretchCluster-2018-12-05-07-29-55-64592/sos.log
Starting vSAN stretched cluster operations..

Free Hosts:
esxi-8.vrack.vsphere.local

Show Clusters:

/opt/vmware/sddc-support/sos --show-clusters
Welcome to Supportability and Serviceability(SoS) utility!
Logs : /var/log/vmware/vcf/sddc-support/stretchCluster-2018-12-04-11-03-37-36350
Stretch Cluster operation log : /var/log/vmware/vcf/sddc-support/stretchCluster-2018-12-04-11-03-37-36350/sos.log
Starting vSAN stretched cluster configuration workflow..

Domain name: MGMT
Cluster name: SDDC-Cluster1

Stretch VSAN cluster:

/opt/vmware/sddc-support/sos --stretch-vsan --sc-domain MGMT --sc-cluster SDDC-Cluster1 --esxi-license-key 12345-67890-ABCDE-FGHIJ-KLMNO --sc-hosts esxi-8.vrack.vsphere.local

Welcome to Supportability and Serviceability(SoS) utility!
Logs : /var/log/vmware/vcf/sddc-support/stretchCluster-2018-12-05-07-42-12-65441
Stretch Cluster operation log : /var/log/vmware/vcf/sddc-support/stretchCluster-2018-12-05-07-42-12-65441/sos.log
Starting vSAN stretched cluster operations..
Stretch VSAN Triggered. Please monitor it from the Sddc manager UI

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
English

Attachments

59280_vsan-stretch-cluster-3.0.tar

59280_vsan-stretch-cluster-3.5.tar

Additional Resources

KB
•
VIBをインストールするとき"保留中のトランザクションには空き容量が xxx MB 必要です"のエラーが発生する (2144200)

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

Results 1-2 of 2

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware Cloud Foundation

Related Versions:

VMware Cloud Foundation 3.5.x

VMware Cloud Foundation 3.0.x

Take Our Survey

Support Assistant