Storage Policies on vSAN

|

Update (December 2026): The policy model described here is unchanged in vSAN 8 and VCF 9.x. In current vSphere Client releases the separate “Failure tolerance method” and “Number of failures to tolerate” rules are combined into one Failures to tolerate setting (for example “2 failures – RAID-6 (Erasure Coding)”), and on the vSAN Express Storage Architecture (ESA) RAID-5/6 is the recommended default because it performs like RAID-1. Note that vSphere Virtual Volumes (vVols), mentioned below, are deprecated in VCF 9.0. Reference: vSAN Administration (TechDocs). Newer posts on this site: vSAN RAID workflow, RAID 6 deep dive.

Throughout the life cycle of the Virtual Machine, profile-driven storage allows the administrator to check whether its underlying storage is still compatible. The reason why this is useful is that if the VM is migrated to a different datastore for whatever reason, the administrator can ensure that it has moved to a datastore that continues to meet its requirements.

However, this is not how it works in the case of VM storage policies.With vSAN, the storage quality of service no longer resides with the datastore; instead, it resides with the VM and is enforced by the VM storage policy associated with the VM and the VM disks (VMDKs). Once the policy is pushed down to the storage layer, in this case, vSAN, the underlying storage is then responsible for creating storage for the VM that meets the requirements placed in the policy.

This makes the life bit easy for the administrators.

Storage Policy-Based Management:

Deploying a VSAN datastore is different from the traditional way of mounting LUN from a storage unit or NAS /NFS devices.

In case of VSAN for better performance and availability of the VMs VSAN uses VM storage policy and a storage policy can be attached to individual VMs during deployment of the Virtual Machine.

Storage Policy Based Management (SPBM) with vSAN VM storage policy FTT, RAID, stripes, limits Assign to VM / VMDK at deploy or later vSAN builds objects to match Compliance Compliant / Noncompliant vSAN storage provider (VASA) surfaces capabilities and per-object compliance to vCenter Quality of service lives with the VM, not with the datastore.
Figure 1. SPBM: the policy travels with the VM and vSAN reports compliance back through VASA.

You can select the capabilities when a VM storage policy is created.

Similarly, if an administrator wants a VM to tolerate two failures using a RAID-1 mirroring configuration, there would need to be three copies of the VMDK, meaning the amount of capacity consumed would be 300% the size of the VMDK. With a RAID-6 implementation, a double parity is implemented, which is also distributed across all the hosts. For RAID-6, there must be a minimum of six hosts in the cluster. RAID-6 also allows a VM to tolerate two failures, but only consumes capacity equivalent to 150% the size of the VMDK.

FTT=2: RAID-1 mirroring vs RAID-6 erasure coding RAID-1 (mirroring), 100 GB VMDK -> 300 GB consumed esx01 full copy esx02 full copy esx03 full copy esx04, esx05 witnesses RAID-6 (erasure coding), 100 GB VMDK -> 150 GB consumed, minimum 6 hosts esx01 data D1 esx02 data D2 esx03 data D3 esx04 data D4 esx05 parity P esx06 parity Q Both layouts survive any two host failures. RAID-6 saves capacity; RAID-1 needs fewer I/Os per write (on OSA). Parity rotates across hosts per stripe; one stripe is shown. Example host names only.
Figure 2. Failures to tolerate = 2 with RAID-1 (three copies) versus RAID-6 (4 data + 2 parity).

The number of Disk Stripes Per Object:

When failure tolerance method is set to capacity, each component of the RAID-5 or RAID-6 stripe may also be configured as a RAID-0 stripe.

Stripe width 2 + FTT=1 (RAID-1): component layout VMDK object RAID-1 replica A RAID-0, 2 stripes RAID-1 replica B RAID-0, 2 stripes Witness esx05 stripe 1 esx01 stripe 2 esx02 stripe 1 esx03 stripe 2 esx04
Figure 3. Number of disk stripes per object = 2 with FTT=1 (RAID-1): two replicas, each a 2-way RAID-0, plus a witness.

Figure 3 shows the storage object configuration when stripe width is set to 2, failures to tolerate is set to 1 and the failure tolerance method is RAID-1 (mirroring).

Force Provisioning:

If the force provisioning parameter is set to a nonzero value, the object that has this setting in its policy will be provisioned even if the requirements specified in the VM storage policy cannot be satisfied by the vSAN datastore. The VM will be shown as noncompliant on the VM Summary tab and in the relevant VM storage policy views in the vSphere Client. If there is not enough space in the cluster to satisfy the reservation requirements of at least one replica, however, the provisioning will fail even if force provisioning is turned on. When additional resources become available in the cluster, vSAN will bring this object to a compliant state.

Administrators who use this option to force provision virtual machines, you need to understand that although the VM may be provisioned with one replica copy,vSAN may immediately consume these resources to try to satisfy the policy settings of virtual machines.

NOTE: This parameter should be used only when absolutely needed and as an exception.

VASA Vendor Provider:

This uses the vSphere APIs for Storage Awareness (VASA) to surface up the vSAN capabilities to the vCenter Server.

VASA allow storage vendors to publish the capabilities of their storage to vCenter Server, which in turn can display these capabilities in the vSphere Client. VASA may also provide information about storage health status, configuration info, capacity and thin provisioning info, and so on. VASA enable VMware to have an end-to-end story regarding storage.

With vSAN, and now VVols, you define the capabilities you want to have for your VM storage in a VM storage policy. This policy information is then pushed down to the storage layer, basically informing it that these are the requirements you have for storage. VASA will then tell you whether the underlying storage (e.g., vSAN) can meet these requirements, effectively communicating compliance information on a per-storage object basis.

Enabling VM Storage Policies

In the initial release of vSAN, VM storage policies could be enabled or disabled via the UI. This option is not available in later releases. However, VM storage policies are automatically enabled on a cluster when vSAN is enabled on the cluster. Although VM storage policies are normally only available with certain vSphere editions, a vSAN license will also provide this feature.

Assigning a VM Storage Policy During VM Provisioning

The assignment of a VM storage policy is done during the VM provisioning. At the point where the vSphere administrator must select a destination datastore, the appropriate policy is selected from the drop-down menu of available VM storage policies. The datastores are then separated into compatible and incompatible datastores, allowing the vSphere administrator to make the appropriate and correct choice for VM placement.

In the vSphere Client this is the Select storage page of the New Virtual Machine wizard: choose the policy from the VM Storage Policy drop-down and pick a datastore listed as compatible.

The vSAN datastore is shown as incompatible (and the VM as noncompliant) when the policy cannot be met.

Leave a Reply