You can create a storage policy that defines storage requirements for a VM and its virtual disks. In this policy, you reference storage capabilities supported by the vSAN datastore.

Procedure

  1. In the vSphere Client, click Menu > Policies and Profiles, then click VM Storage Policies.
  2. Click Create VM storage policy.
  3. On the Name and description page:.
    1. Leave the vCenter selected.
    2. Type a name and a description for the storage policy, and click Next.
  4. On the vSAN page, specify the Availability and Advanced attributes and click Next.
    The defaults are appropriate for many situations. See vSAN Policies for details on each attribute.
  5. On the Storage compatibility page, review the list of datastores that match this policy and click Next.
    To be eligible, a datastore does not need to satisfy all rule sets the policy. The datastore must satisfy at least one rule set and all rules within this set. Verify that the WorkloadDatastore datastore meets the requirements set in the storage policy and that it appears on the list of compatible datastores.
  6. On the Ready to complete page, review the policy settings, and click Finish.

What to do next

Assign this policy to a virtual machine and its virtual disks. vSAN places the virtual machine objects according to the requirements specified in the policy. For information about applying the storage policies to virtual machine objects, see the vSphere Storage documentation.