VMware Cloud Community
MtheG92
Enthusiast
Enthusiast

vSphere HA ignores das.respectvmvmantiaffinityrules for VM-to-VM Anit-Affinity rules

Hi

 

We created a VM-to-VM Anti Affinity DRS rule on our cluster entity. We also set the "das.respectvmvmantiaffinityrules" parameter from "true" to "false" on the affected cluster entity.

 

The affected cluster is a 2-node vSphere 7.0.3 U3c (with vCenter 7.0.3 U3c) cluster with one VM on each host and separated by the VM-to-VM Anti Affinity DRS rule. VM-A-1 is placed on ESXi-A-1 and VM-B-1 is placed on ESXi-B-1.

 

We reset (hard power-off) the ESXi-A-1 via its remote management interface and observed, that the VM-A-1 was not restarted on the remaining ESXi-B-1. We expected that the above-described vSphere cluster HA parameter would change this VM-to-VM Anti-Affinity DRS rule from a must into a should rule during the failover conditions.

 

We got the following event message: The anti-affinity rule set on your virtual machine prevents the placement of virtual disk.

 

But the datastore where the VM is residing is shared among the two ESXi hosts. As far as we disable the Anti-Affinity rule, the VM gets successfully restarted due the failover.

 

Did anyone else face this behavior or has an idea what's wrong here?

 

Kind regards in advance.

Reply
0 Kudos
2 Replies
MtheG92
Enthusiast
Enthusiast

Hi

 

I have received feedback from the VMware support, and this is a known bug.

 

It should be resolved in vSphere 7.0 Update 3 but obviously it's not resolved. VMware is aware of this and is working on a fix for it.

 

Kind regards

Reply
0 Kudos
StephenMoll
Expert
Expert

I've heard that a fix for this should be ready for Q3 2022, so there is a week or two left for this.

I have heard reports from some of our system users that systems that consist of ESXi 6.7 hosts with vCenter 7.0 experience the same issue. Whereas when the system was ESXi 6.7 hosts with vCenter 6.7 there was no problem. 

Not surprising as the problem is likely to lie in the FDM being installed by vCenter when hosts join a cluster.

It also turns out there are more HA advanced options that the two listed in the online documentation.

The documentation gives you :

  • das.respectvmvmantiaffinityrules
  • das.respectvmhostsoftaffinityrules

The following can also be set on vSphere 6.7 and 7.0:

  • das.treatVmVmAntiAffinityAsSoft
  • das.respectVmVmAffinityRules
  • das.respectVmHostSoftAntiAffinityRules

Not too sure what the 'das.treatVmVmAntiAffinityAsSoft' rule is for, it looks to be complimentary and mutually exclusive with 'das.respectvmvmantiaffinityrules'. It has also said to sometime change from its default value of "FALSE", which could be problem, especially given this setting is not widely publicised. The other settings looked like might have helped in our case, but also seemed to have no effect in our set-up.

 

Reply
0 Kudos