Create a VM anti-affinity rule to place and keep all virtual hard disks of selected virtual machines on different datastores within the datastore cluster.

Prerequisites

Procedure

  1. Navigate to a virtual machine in the inventory.
  2. On the Configure tab, expand Settings and click VM SDRS Rules.
  3. Click the Add button.
    The Add SDRS rule dialog box opens.
  4. From the Type drop-down menu, select VM anti-affinity.
  5. In the Rule name text box, enter a name for the rule.
  6. From the Datastore cluster drop-down menu, select the datastore cluster where the anti-affinity rule will operate.
  7. From the list of virtual machines at the bottom of the dialog box, select the virtual machines to which the anti-affinity rule applies.
    You can add or remove virtual machines to the list.
  8. (Optional) Deselect the Enable the rule check box.
    The rule is enabled by default.
    Deselecting the Enable the rule check box deactivates the rule. If an existing rule is deactivated, it is not applied to the virtual machine.
  9. Click OK.

Results

A VM anti-affinity rule is created. If the rule is enabled, all virtual hard disks of the selected virtual machines are placed and kept on different datastores within the datastore cluster.