VMware Cloud Community
ralphte
Contributor
Contributor

Vsan error on all server

I am running in to a error when ever I try to write to my vsan.

"Failed to create object. Failed to place witnesses. There are currently 0 usuable disks and 1 more usable disks are needed in witness node."

I see this error showing up for all three servers when ever i run the proactive VM creation test.

Voila_Capture 2016-04-06_03-43-33_PM.jpg

I can write to the vsan data store.

I have tried rebooting everything and rebuilt the vsan datastore non of which has helped.

My health test shows everything is good.

Voila_Capture 2016-04-06_03-45-58_PM.jpg

Voila_Capture 2016-04-06_03-53-44_PM.jpg

After so more testing I found that if i took offline .17 I would get this

Voila_Capture 2016-04-06_06-14-44_PM.jpg

SO now i can write from two machines. If i bring .17 back online i cant write to any of the three.

Anyone have any ideas to what might be the issue. Thanks!

5 Replies
thomashirsching
Contributor
Contributor

The problem is that one or more ESX servers were members in a stretched Cluster.

The solution was to change an advanced settings back.

vsish -e set /vmkModules/vsanutil/stretchedClusterMode 0

VictorQ
Contributor
Contributor

Thank you thomashirschinger

This command worked for us:

vsish -e set /vmkModules/vsanutil/stretchedClusterMode 0

0 Kudos
salkarkhi
Enthusiast
Enthusiast

Victor, can you Please share with us when did u run the commend ? is it on the ESXI who having a problem with connection ?

0 Kudos
TheBobkin
Champion
Champion

Hello salkarkhi,

The above is a very specific issue so do ensure that you are facing the exact same issue for the exact same reasons before running vsish set commands.

There are a number of scenarios where insufficient number and/or types of Fault Domains are accessible for component placement during Object/VM creation, which would cause VM creation or proactive test to fail.

The above examples appear to have had either a misconfigured stretched-cluster or an incorrectly decommissioned stretched-cluster - check whether this is even the problem (always run get commands before (and after) any set commands),

if you ARE running a stretched-cluster then this command run on hosts in that cluster should return '1' (e.g. true):

# vsish -e get /vmkModules/vsanutil/stretchedClusterMode

and if you are NOT running a stretched-cluster then this should of course return '0' (e.g. false).

In summary, it is easy to check whether this parameter is set properly and to rule out whether this is the issue you are having or not.

Hope this helps.

Bob

0 Kudos
karnakov
Contributor
Contributor

Great thanks man! Very helpful after recreating vcsa with remaining esxi hosts config

0 Kudos