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 Virtual SAN datastore.

Prerequisites

  • Verify that the Virtual SAN storage provider is available. See View Virtual SAN Storage Providers.
  • Ensure that the virtual machine storage policies are enabled. For information about storage policies, see the vSphere Storage documentation.
  • Required privileges: Profile-driven storage.Profile-driven storage view and Profile-driven storage.Profile-driven storage update

Procedure

  1. From the vSphere Web Client home, click Policies and Profiles, then click VM Storage Policies.
  2. Click the Create a new VM storage policy icon ().
  3. On the Name and description page, select a vCenter Server.
  4. Type a name and a description for the storage policy, and click Next.
  5. On the Policy structure page, click Next.
  6. On the Common rules for data services provided by hosts page, click Next.
  7. On the Rule-Set 1 page, define the first rule set.
    1. Select the Use rule-sets in the storage policy check box.
    2. Select VSAN from the Storage type drop-down list.
      The page expands as you add rules for the Virtual SAN datastore.
    3. Select a rule from the Add rule drop-down list.
      Make sure that the values you provide are within the range of values advertised by storage capabilities of the Virtual SAN datastore.
      From the Storage Consumption model, you can review the virtual disk size available for use and the corresponding flash cache and storage capacity, including the reserved storage space your virtual machines would potentially consume when you apply the specified storage policy.
    4. (Optional) Add tag-based capabilities.
  8. (Optional) Click the Add another rule set button to add another rule set.
  9. Click Next.
  10. 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 within the policy. The datastore must satisfy at least one rule set and all rules within this set. Verify that the Virtual SAN datastore meets the requirements set in the storage policy and that it appears on the list of compatible datastores.
  11. On the Ready to complete page, review the policy settings, and click Finish.

Results

The new policy is added to the list.

What to do next

Assign this policy to a virtual machine and its virtual disks. Virtual SAN will place the virtual machine objects in accordance with the requirements specified in the policy. For information about applying the storage policies to virtual machine objects, see the vSphere Storage documentation.