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.
- In the vSphere Client, click , then click VM Storage Policies.
- Click Create VM storage policy.
- On the Name and description page:.
- Leave the vCenter Server selected.
- Type a name and a description for the storage policy, and click Next.
- 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.
- 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.
- 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.