When attempting to enter maintenance mode using ensure accessibility on a two node vSAN cluster.
vSAN 6.x
vSAN 7.x
vSAN 8.x
vSAN storage policy option for Site Disaster Tolerance : "Keep data on preferred site" or "Keep data on secondary site" is set for one or more VMs on a 2-node cluster.
Confirm the vSAN policies for all the VMs are compliant and have 'Site Disaster Tolerance' option selected as 'Raid 1 (Mirroring)'.
*For two node vSAN clusters, avoid the site disaster tolerance options "Keep data on Preferred (stretched cluster)" and "Keep data on Secondary (stretched cluster)". Attempting to place a host into maintenance mode where it has one of these in use, may cause it to fail. This is because objects set with this policy can only run on a host in secondary or primary domain (depending on the policy).
This tolerance option is more intended for multiple hosts are available in the primary/secondary domains for a fully established stretch cluster of at least four or more hosts. Using this in a 2-node will result vSAN unable to enter maintenance mode, as there is only one host in Primary and one host in Secondary.
Using vSAN policies (Documentation).
*Do not use these on a two node vSAN cluster.