vSAN

Migrate 2-Node VMware vSAN to 3-node Configuration

How to Migrate 2-Node VMware vSAN to 3-node Configuration in a few simple steps that allow disabling stretched clustering and implementing full vSAN 3-node

One of the upgrades that I have had planned for the home lab environment has been to migrate my 2-node VMware vSAN configuration to a 3-node configuration. Since I wanted to add more compute strength and resources to my vSAN cluster, this was a logical move in the home lab environment. As it turns out the process to migrate 2-node VMware vSAN to 3-node configuration is not difficult at all. There are a few steps to complete, however, most of these you will find easy to accomplish and you will be running on a new 3-node configuration in no time. I wanted to bring you along in my journey by way of screenshots on the process to get this done.

Prerequisites to Accomplish on the New ESXi Host

There is a bit of prep work that you need to accomplish before actually scaling out your vSAN cluster from 2-node to 3-node configuration. I had the third host built up with VMware ESXi, however, you want to make sure of and accomplish the following:

  1. Install VMware ESXi and bring the host up to the exact build of the other two VMware vSAN ESXi hosts in your 2-node stretched cluster.
  2. Configure the networking of the “soon to be” third host in your vSAN cluster. For me this involved adding the ESXi host to vCenter Server as a standalone host and getting my distributed switch configuration added to the host. This included my VMware vSAN and vMotion VMkernel ports/IP addresses
  3. You want to verify connectivity between your third host and the VMkernel ports of the other ESXi hosts.

What about the existing 2-node configuration?

Things You Will Need to Do on your 2-Node cluster

As an overview, you will do the following:

  1. I suggest disabling HA and DRS as you don’t want weird things to start happening when configuring and “touching” hosts in the cluster. You want to have total control over this in a manual fashion.
  2. Disable stretched clustering
  3. Delete the fault domains
  4. Bring in the third host
  5. Resynchronize objects on the third host

Migrate 2-Node VMware vSAN to 3-node Configuration

Below are high-level screenshots of the process in the home lab environment. All hosts are VMware ESXi 6.7U3b. First thing that I do is add the new VMware ESXi host into the vSphere environment by simply adding the new ESXi host to vCenter Server as a non-cluster host.

Adding-the-new-VMware-ESXi-host-to-vCenter-Server
Adding the new VMware ESXi host to vCenter Server

The next step in the configuration process is to get the networking configured on the new ESXi host so it can communicate correctly with the other two vSAN hosts. Here I am adding the host to the vSphere Distributed Switch.

Adding-the-new-VMware-ESXi-host-to-the-vSphere-Distributed-Switch-configuration
Adding the new VMware ESXi host to the vSphere Distributed Switch configuration

After adding the host to the VDS, I added VMkernel ports/IPs to the new VMware ESXi host.

Adding-VMkernel-ports-and-IP-addresses-to-the-new-VMware-ESXi-host
Adding VMkernel ports and IP addresses to the new VMware ESXi host

Next, I move the new VMware ESXi host into the 2-node vSAN cluster.

Moving-the-new-VMware-ESXi-host-into-the-2-node-vSAN-cluster
Moving the new VMware ESXi host into the 2-node vSAN cluster

As you can see below, the new host is now a part of the 2-node vSAN cluster in vSphere, however, the host is in maintenance mode and I have not yet created disk groups on the new host.

New-host-is-added-into-the-2-node-vSAN-cluster-in-vCenter-Server
New host is added into the 2-node vSAN cluster in vCenter Server

The next step is to disable stretched cluster. I ran into a weird little bug/issue where the Disable/Change witness host option buttons were greyed out in the vSphere Client. I even tried incognito browser, etc, and same results. Not sure what to make of this weird little issue. However, quickly trying the “flex” client, I was able to disable the stretched cluster.

Disabling-the-streched-cluster
Disabling the streched cluster

Flipping back over to the vSphere Client, the configuration type now shows single site instead of stretched.

Configuration-type-has-changed-to-single-site-instead-of-stretched-cluster
Configuration type has changed to single site instead of stretched cluster

Now, I can delete the Fault domains. These are no longer needed in the 3-node vSAN configuration. Click the elipse button on both the Primary and Secondary fault domain and delete them.

Delete-the-fault-domains-from-the-vSAN-cluster-as-these-are-no-longer-needed
Delete the fault domains from the vSAN cluster as these are no longer needed

You will need to confirm this operation.

Confirm-fault-domain-deletion
Confirm fault domain deletion

After deleting the fault domains, I now see both hosts listed under the Standalone hosts.

VMware-vSAN-Fault-domains-are-deleted-now-standalone-hosts
VMware vSAN Fault domains are deleted now standalone hosts

Now, I create the disk group on my new VMware ESXi host that will serve as the third-node on the 3-node vSAN configuration.

Creating-a-VMware-vSAN-disk-group-on-the-new-ESXi-host
Creating a VMware vSAN disk group on the new ESXi host

Normal stuff here, but selecting disks that will serve as cache and capacity disks.

Selecting-disks-for-the-new-vSAN-disk-group
Selecting disks for the new vSAN disk group

Disk group is created and healthy on the new third-node in the 3-node vSAN configuration.

Diskgroup-is-created-and-healthy
Diskgroup is created and healthy

Now, all I have left to do is make sure the objects are rebuilt. Since we deleted the stretched cluster and removed the witness host, the witness component needs to be rebuilt. You can navigate to the Monitor > Skyline Health > vSAN object health > Repair objects immediately to kick off the objects repair immediately.

Choosing-to-repair-vSAN-objects-immediately
Choosing to repair vSAN objects immediately

You can continue to monitor the object repair status and you should see the scheduled resyncing objects continue to decrease after you refresh the page.

Monitoring-vSAN-object-resync-process
Monitoring vSAN object resync process

After the objects are repaired, you should see the “red bang” go away on your vSphere vSAN 3-node cluster.

New-VMware-vSAN-3-node-cluster-is-now-healthy-and-running-as-expected
New VMware vSAN 3-node cluster is now healthy and running as expected

Concluding Thoughts

If you have a 2-node configuration in an edge or nano-edge environment, or even a lab/home lab environment, the process to migrate 2-Node VMware vSAN to 3-node configuration is straightforward and surprisingly painless.

With only a few basic steps, you bring in your new VMware ESXi host, disable stretched clustering, and resynchronize your objects across your hosts. Depending on the number of objects, you will be up and running with a healthy 3-node vSAN configuration in no time.

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.