Selected host is an external witness for another vSAN Stretched cluster
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.
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.
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.
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.