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 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:
- 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 Storage Rules tab, define the encryption, space efficiency, and storage tier rules that can be used along with the HCI Mesh to distinguish the remote datastores.
- Encryption services: Defines the encryption rules for virtual machines that you deploy with this policy. You can choose one of the following options:
- Data-At-Rest encryption: Encryption is enabled on the virtual machines.
- No encryption: Encryption is not enabled on the virtual machines.
- No preference: Makes the virtual machines compatible with both Data-At-Rest encryption and No encryption options.
- Space Efficiency: Defines the space saving rules for the virtual machines that you deploy with this policy. You can choose one of the following options:
- Deduplication and compression: Enables both deduplication and compression on the virtual machines. Deduplication and compression are available only on all-flash disk groups. For more information, see Deduplication and Compression Design Considerations.
- Compression only: Enables only compression on the virtual machines. Compression is available only on all-flash disk groups. For more information, see Deduplication and Compression Design Considerations.
- No space efficiency: Space efficiency features are not enabled on the virtual machines. Choosing this option requires datastores without any space efficiency options to be turned on.
- No preference: Makes the virtual machines compatible with all the options.
- Storage tier: Specifies the storage tier for the virtual machines that you deploy with this policy. You can choose one of the following options. Choosing the No preference option makes the virtual machines compatible with both hybrid and all flash environments.
- All flash
- Hybrid
- No preference
- 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 under the COMPATIBLE and INCOMPATIBLE tabs 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.