You can create a storage policy that defines storage requirements and a type of storage service for a virtual machine and its virtual disks. In this policy, you reference storage capabilities that the Virtual SAN datastore supports.

Before you begin

  • 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

About this task

Procedure

  1. From the vSphere Web Client home, click Policies and Profiles > VM Storage Policies.
  2. Click the Create a new VM storage policy icon ().
  3. Select a vCenter Server.
  4. Type a name and a description for the storage policy, and click Next.
  5. On the Rule-Set 1 window, define the first rule set.
    1. Select VSAN from the Rules based on data services drop-box.

      The page expands to show capabilities reported by the Virtual SAN datastore.

    2. Add a rule and specify its value.

      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.

    3. (Optional) : Add tag-based capabilities.
  6. (Optional) : Add another rule set.
  7. Review the list of datastores that match this policy and click Finish.

    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.

Results

The new policy is added to the list.

What to do next

Apply 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.