When attempting to apply a RAID 5 (Erasure Coding) storage policy to a Virtual Machine or disk in a vSAN cluster, the operation fails with the following error:
"Storage policy change failure: 22 (Invalid argument)."
The task "Reconfigure VM" fails at the storage policy transition stage.
VMware vSAN
Verification Steps:
Via the GUI
Via the CLI
grep -i LicensedFeatures /etc/vmware/esx.conf/adv/VSAN/LicensedFeatures = "vit,allflash", the erasure_coding feature is missing, confirming the feature is not available for you.
Corrective Action:
Acquire a suitable license which includes the RAID5/6 Erasure Coding
In the vSphere Client, navigate to Administration > Licensing > Licenses to add the new key.
Assign the license to the cluster: Cluster > Configure > Licensing > Change License.
Retry the storage policy assignment.
Information with relation to product tiers and features per license -
https://www.vmware.com/docs/vmw-datasheet-vsphere-product-line-comparison