vSAN 7.0 – disabling Stretch Cluster Mode in hosts

One of the many steps performed when you try to unstretch vSAN cluster is disabling stretch cluster mode in all ESXi hosts. It’s done automatically so you don’t need to worry about that but in my case I needed to do that manually.

When you run into an below error during ova deployment, definitely it’s because stretchClusterMode is ON in hosts.

Cannot complete file creation operation. Failed to place witnesses. There are currently 0 usable disks and 1 more usable disks are needed in witness node. Failed to create object.

So let’s turn it off on each host.

First check state running ( ‘1’ means stretchedClusterMode is enabled):

vsish -e get /vmkModules/vsanutil/stretchedClusterMode

To disabled it just run:

vsish -e set /vmkModules/vsanutil/stretchedClusterMode 0

And that’s it šŸ™‚