Configure VMware vSAN 7 Stretched Cluster

One of the coolest features in my opinion with VMware vSAN is the vSAN stretched cluster. The stretched cluster allows you to have an environment that is extremely resilient to failure and where you have all of your data on both sides of the stretched cluster. In this post, I will detail the steps to setting up a stretched cluster in the way of my home lab environment and show how easy it is to provision the stretched cluster for protecting your vSAN data. Let’s take a look at How to configure VMware vSAN 7 stretched Cluster in vSphere 7.

What is a vSAN Stretched Cluster?

What is a vSAN Stretched Cluster anyway? It is a special type of vSAN cluster introduced in vSAN 6.1 that allows implementing a feature for your data that allows providing resiliency for your data in such a way to minimize downtime in a disaster scenario. You essentially are creating two physical sites that are part of a stretched cluster design, thereby creating multiple fault domains that allow your data to remain accessible, even in the event of a site-wide failure in your primary location.

What are the components of a vSAN Stretched Cluster in vSphere 7?

The stretched cluster is made up of a vSAN cluster that is divided up into two sites with identical numbers of ESXi hosts. The sites must be connected via very high bandwidth and low-latency links for the stretched cluster to be possible.

There is a special “third site” that houses the witness host which does not participate in housing virtual machine data, but rather special metadata that establishes quorum. Each of the special vSAN sites (2 Data sites, and 1 witness site) is considered a fault domain.

What are the minimum and maxiumum configurations for the site in a stretched cluster as far as hosts?

  • The minimum supported configuration is 1+1+1 (3 nodes). The maximum configuration is 15+15+1 (31 nodes). With the vSAN stretched cluster configuration, there is only one witness host in the third site. You are probably more familiar with the witness host in terms of the special 2-node vSAN cluster that makes use of the witness host.

However, the 2-node vSAN cluster is simply a specialized (very small) version of the stretched cluster that uses the witness host.

High-level-view-of-a-vSAN-7-Stretched-Cluster Configure VMware vSAN 7 Stretched Cluster
High-level view of a vSAN 7 Stretched Cluster

Deploying the vSAN 7 Witness Appliance

The process to deploy the vSAN 7 witness appliance is super easy. The first thing you will need to do is download the appliance from VMware. The appliance is essentially a special ESXi host that is in the form of an OVA. This appliance is then deployed into your environment.

This is really the only supported version of a “nested” installation of ESXi from VMware. However, you can install it on physical hardware. Most do not choose that option as if you use physical hardware you have to license the host. Whereas the appliance contains a built-in license for the ESXi host.

Downloading-the-vSAN-7-witness-appliance Configure VMware vSAN 7 Stretched Cluster
Downloading the vSAN 7 witness appliance

Choose the file that you have downloaded from VMware for the nested appliance.

Select-the-OVA-template-file-downloaded-from-VMware-for-the-vSAN-witness-appliance Configure VMware vSAN 7 Stretched Cluster
Select the OVA template file downloaded from VMware for the vSAN witness appliance

I have skipped forward in the screenshots here as most of the others are just standard OVA deployment screens choosing storage, hosts, etc. The Customize template screen has you set the password, IP address settings and choose which interface will be the vSAN interface. All of these configuration details are important.

Customize-the-vSAN-witness-host-appliance-network-details Configure VMware vSAN 7 Stretched Cluster
Customize the vSAN witness host appliance network details
Booting-the-VMware-vSAN-witness-appliance-for-vSAN-stretched-cluster Configure VMware vSAN 7 Stretched Cluster
Booting the VMware vSAN witness appliance for vSAN stretched cluster

Add vSAN 7 Witness Host to vCenter Server

Before you can use the vSAN 7 Witness Host for creating the stretched cluster, you need to add it to inventory like you would any other ESXi host. Keep in mind, it is a plain VM running on another cluster somewhere.

The vCenter Server will interact with it and add it to inventory like it would a physical ESXi host. However, it does recognize it is a witness host and you will see that visually.

Adding-the-witness-host-to-your-vCenter-server Configure VMware vSAN 7 Stretched Cluster
Adding the witness host to your vCenter server
Accepting-the-certificate-for-the-witness-host Configure VMware vSAN 7 Stretched Cluster
Accepting the certificate for the witness host
Host-summary-screen-for-the-witness-host Configure VMware vSAN 7 Stretched Cluster
Host summary screen for the witness host
Review-and-finish-adding-the-witness-host-to-vSphere-7 Configure VMware vSAN 7 Stretched Cluster
Review and finish adding the witness host to vSphere 7

As you can see below, the witness host shows up as a blue ESXi host instead of the normal color.

VMware-vSAN-7-Witness-host-successfully-added-to-vCenter-Server Configure VMware vSAN 7 Stretched Cluster
VMware vSAN 7 Witness host successfully added to vCenter Server

Configure VMware vSAN 7 Stretched Cluster

Let’s look at the configuration of the stretched cluster. Below, you see I have the vSAN hosts in a single cluster.

All-hosts-are-in-the-same-vSphere-7-cluster Configure VMware vSAN 7 Stretched Cluster
All hosts are in the same vSphere 7 cluster

Next, I am creating disk groups for the remaining hosts added to the cluster that will make up the secondary site.

Add-disks-to-disk-groups-for-your-secondary-ESXi-hosts Configure VMware vSAN 7 Stretched Cluster
Add disks to disk groups for your secondary ESXi hosts

All vSAN hosts now have disk groups created.

Disk-groups-created-for-both-sides-of-the-stretched-cluster Configure VMware vSAN 7 Stretched Cluster
Disk groups created for both sides of the stretched cluster

Now, let’s look at actually turning on the stretched cluster functionality. Click the Configure Stretched Cluster link under the Cluster > Configure > vSAN > Fault Domains.

Starting-the-process-to-configure-the-stretched-cluster-in-vSAN-7 Configure VMware vSAN 7 Stretched Cluster
Starting the process to configure the stretched cluster in vSAN 7

The first step in the Configure Stretched Cluster wizard is to divide up the hosts as to which are the Preferred domain and which are in the Secondary domain.

Configuring-the-fault-domains-for-the-vSAN-7-stretched-cluster Configure VMware vSAN 7 Stretched Cluster
Configuring the fault domains for the vSAN 7 stretched cluster

Next, you will select the witness host. Now, the work we did before will allow us to select the witness host from the vSphere inventory to use in the stretched cluster.

Select-the-witness-host-for-the-stretched-cluster Configure VMware vSAN 7 Stretched Cluster
Select the witness host for the stretched cluster

It will ask you to claim the disks for the witness host for vSAN. Even though no data is stored on it, you still have to designate the cache and capacity disks.

Claim-disks-for-the-witness-host Configure VMware vSAN 7 Stretched Cluster
Claim disks for the witness host

Review your configuration and click Finish.

Review-the-stretched-cluster-configuration Configure VMware vSAN 7 Stretched Cluster
Review the stretched cluster configuration

Configure Dual Site Mirroring for your vSAN 7 Stretched Cluster

Now that we have the stretched cluster, you can turn on dual site mirroring for your cluster.

Editing-the-default-vSAN-storage-policy Configure VMware vSAN 7 Stretched Cluster
Editing the default vSAN storage policy

When Site Disaster Tolerance is set to Dual Site Mirroring is chosen a copy of the data should go to both sites, and the Witness Component should be placed on the vSAN Witness Host. Failures to Tolerate where data resides on each site.

Selecting-availability-and-failures-to-tolerate-selecting-dual-site-mirroring Configure VMware vSAN 7 Stretched Cluster
Selecting availability and failures to tolerate selecting dual site mirroring

The storage will be checked for compatibility.

Checking-the-storage-compatibility Configure VMware vSAN 7 Stretched Cluster
Checking the storage compatibility

Click Finish.

Review-the-changes-to-the-vSAN-Storage-Policy-for-dual-site-mirroring Configure VMware vSAN 7 Stretched Cluster
Review the changes to the vSAN Storage Policy for dual site mirroring

Now, we have a stretched cluster that is configured for dual site mirroring.

VMware-vSAN-7-Stretched-cluster-with-dual-site-mirroring-is-configured Configure VMware vSAN 7 Stretched Cluster
VMware vSAN 7 Stretched cluster with dual site mirroring is configured

Wrapping Up

One of the beautiful things about VMware vSAN is that it opens up the door to many different ways to store your data and protect against failure and disasters.

The stretched cluster can allow you to have data mirrored to two different sites so that in the event of an entire site failure, the VMs will simply be restarted with HA on the surviving cluster.

Setting up the stretched cluster configuration is very easy in vSAN and with a simple edit to the VM storage policy, you can control the dual site mirroring feature.

Post a Comment

0 Comments