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.
Before you begin
Verify that the vSAN storage provider is available. See View vSAN 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
- 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 menu.
The page expands as you add rules for the vSAN datastore.
- Select a rule from the Add rule drop-down menu.
Make sure that the values you provide are within the range of values advertised by storage capabilities of the vSAN datastore.
From the Storage Consumption model, you can review the virtual disk size available and the corresponding cache and capacity requirements, including the reserved storage space your virtual machines might potentially consume when you apply the 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 vSAN 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. 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.