vSAN

Selected host is an external witness for another vSAN Stretched cluster

Recently, ran into an issue in the home lab environment when reusing a VMware vSAN witness host. The error was Selected host is an external witness for another vSAN Stretched cluster. Let's see the resolution

As VHT readers have seen lately, I have been doing a lot of home lab work with VMware vSAN and thoroughly enjoying it.  The advancements that have been made in vSAN 6.6 and patch levels have truly made vSAN a great HCI software defined storage solution.  I really enjoy working with the home lab environment as well.  Home labs are great in that often you don’t really do things properly due to just wanting to spin things up and tear them down quickly, but in the process it makes you come up against errors that most likely you would not see in production or when you do you may not expect to see them.  Recently, I ran across another issue in the home lab that was due to not properly removing a VMware vSAN Witness host from the environment.  I wanted to reuse the same witness host with another vSAN cluster and when I attempted to use the witness host with the vSAN cluster, I received the error: “Selected host is an external witness for another vSAN Stretched cluster”.  Let’s take a look at an easy way of resolving this issue.

Selected host is an external witness for another vSAN Stretched cluster

The error presented itself when selecting the witness host in the vSAN configuration process.

Selected-host-is-an-external-witness-for-another-vSAN-Stretched-cluster
Selected host is an external witness for another vSAN Stretched cluster

As you note in the screen above, the Requirements for Witness host include:

  • Not part of any vSAN enabled cluster
  • Have at least one VMkernel adapter with vSAN traffic enabled
  • That adapter must be connected to all hosts in the Stretched cluster

As mentioned, the witness host I wanted to use had been joined to another iteration of the vSAN cluster so it “thought” it was joined to the previous version of the vSAN cluster.  I tried to think of a way to remove the witness host from the cluster using the vSAN interface, however, it was in a “catch-22” state of not being managed by the current vSAN interface so I couldn’t really manage it to remove it and then join it or even manage the disks.   Using the command esxcli vsan cluster get I could see the host thought it was STANDALONE and could see the UUID of the previous cluster.

VMware-vSAN-witness-host-still-thinks-it-is-joined-to-a-previous-vSAN-cluster
VMware vSAN witness host still thinks it is joined to a previous vSAN cluster

I wondered, was there a parameter to the esxcli vsan cluster command that would allow disjoining?  Alas there is!  Using the same command without the list parameter, I issued the esxcli vsan cluster command and there is a leave parameter that looks to do just what I had hoped.

The-esxcli-vsan-cluster-command-allows-you-to-leave-the-vsan-cluster
The esxcli vsan cluster command allows you to leave the vsan cluster

After running the esxcli vsan cluster leave command, I then went back through to see if I could now use the vSAN witness host in the new vSAN cluster and success!  As you can see below, the Select Witness host screen now shows the Compatibility checks succeeded.

Concluding Thoughts

Most likely in production environments, you wouldn’t be building and tearing down VMware vSAN environments utilizing the same VMware vSAN Witness host.  However, in home lab environments that are volatile and constantly changing with different iterations of testing, this especially may be an error you will see if reusing the same VMware vSAN witness host in your lab environment.  As is the case often, the command line comes in for the rescue and allows leaving the previous vSAN cluster on the witness host and you can then join the new cluster without issue.

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.