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.
- 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
- From the vSphere Web Client home, click , then click VM Storage Policies.
- Click the Create a new VM storage policy icon ().
- On the Name and description page, select a vCenter Server.
- Type a name and a description for the storage policy, and click Next.
- On the Policy structure page, click Next.
- On the Common rules for data services provided by hosts page, click Next.
- On the Rule-Set 1 page, define the first rule set.
- Select the Use rule-sets in the storage policy check box.
- Select VSAN from the Storage type drop-down list.
The page expands as you add rules for the Virtual SAN datastore.
- Select a rule from the Add ruledrop-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.
- (Optional) Add tag-based capabilities.
- (Optional) Click the Add another rule set button to add another rule set.
- Click Next.
- 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.
- On the Ready to complete page, review the policy settings, and click Finish.
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.