6.7

Table Of Contents
When you add or edit an affinity rule, and the cluster's current state is in violation of the rule, the system
continues to operate and tries to correct the violation. For manual and partially automated DRS clusters,
migration recommendations based on rule fulfillment and load balancing are presented for approval. You
are not required to fulfill the rules, but the corresponding recommendations remain until the rules are
fulfilled.
To check whether any enabled affinity rules are being violated and cannot be corrected by DRS, select
the cluster's DRS tab and click Faults. Any rule currently being violated has a corresponding fault on this
page. Read the fault to determine why DRS is not able to satisfy the particular rule. Rules violations also
produce a log event.
Note VM-VM and VM-Host affinity rules are different from an individual host’s CPU affinity rules.
Create a Host DRS Group
A VM-Host affinity rule establishes an affinity (or anti-affinity) relationship between a virtual machine DRS
group with a host DRS group. You must create both of these groups before you can create a rule that
links them.
Procedure
1 Browse to the cluster in the vSphere Client.
2 Click the Configure tab.
3 Under Configuration, select VM/Host Groups and click Add.
4 In the Create VM/Host Group dialog box, type a name for the group.
5 Select Host Group from the Type drop down box and click Add.
6 Click the check box next to a host to add it. Continue this process until all desired hosts have been
added.
7 Click OK.
What to do next
Using this host DRS group, you can create a VM-Host affinity rule that establishes an affinity (or anti-
affinity) relationship with an appropriate virtual machine DRS group.
Create a Virtual Machine DRS Group
Create a VM-Host Affinity Rule
Create a Virtual Machine DRS Group
Affinity rules establish an affinity (or anti-affinity) relationship between DRS groups. You must create DRS
groups before you can create a rule that links them.
Procedure
1 Browse to the cluster in the vSphere Client.
vSphere Resource Management
VMware, Inc. 97