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.
Prerequisites
- Verify that the vSAN storage provider is available. See View vSAN Storage Providers.
- Required privileges: Profile-driven storage.Profile-driven storage view and Profile-driven storage.Profile-driven storage update
Procedure
- Navigate to , 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, select Enable rules for "vSAN" storage, and click Next.
- On the vSAN page, define the policy rule set, and click Next.
- On the Availability tab, define the Site disaster tolerance and Failures to tolerate.
Availability options define the rules for Primary and Secondary level of failures to tolerate, Data locality, and Failure tolerance method.
- Site disaster tolerance defines the type of site failure tolerance used for virtual machine objects.
- Failures to tolerate defines the number of host and device failures that a virtual machine object can tolerate, and the data replication method.
For example, if you choose
Dual site mirroring and
2 failures - RAID-6 (Erasure Coding),
vSAN configures the following policy rules:
- Primary level of failures to tolerate: 1
- Secondary level of failures to tolerate: 2
- Data locality: None
- Failure tolerance method: RAID-5/6 (Erasure Coding) - Capacity
- On the Advanced Policy Rules tab, define advanced policy rules, such as number of disk stripes per object and IOPS limits.
- On the Tags tab, click Add Tag Rule, and define the options for your tag rule.
Make sure that the values you provide are within the range of values advertised by storage capabilities of the
vSAN datastore.
- 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 Review and finish 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. 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.