How to change a vSAN Storage Policies after the deployment of a new Workload domain using .json file?
search cancel

How to change a vSAN Storage Policies after the deployment of a new Workload domain using .json file?

book

Article ID: 369165

calendar_today

Updated On:

Products

VMware SDDC Manager

Issue/Introduction

Symptoms:

  • Cannot specify raid 6 and erasure coding in the JSON while deploying a new Workload domain.

This KB provides the resolution on how to change vSAN Storage Policies from FTT=2 in RAID 1 to FTT=2 Erasure Coding after a successful deployment of a new workload domain using .json file.

Environment

VMware Cloud foundation 5.x
VMware Cloud Foundation 4.x

Cause


When deploying a new Workload domain using a JSON file, you can only provide the following information for the vsanDatastoreSpec :
{
  "vsanDatastoreSpec" : {
    "failuresToTolerate" : 2,
    "licenseKey" : "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX",
    "datastoreName" : "vSanDatastore_Name"
  }
}

In the vCenter, the Failure to Tolerate in VM Storage policy will shows as 2 failures - RAID-1 (Mirroring) even if all requirements are respected:
Using RAID 5 or RAID 6 Erasure Coding in vSAN Cluster
https://docs.vmware.com/en/VMware-vSphere/8.0/vsan-administration/GUID-AD408FA8-5898-4541-9F82-FE72E6CD6227.html#GUID-AD408FA8-5898-4541-9F82-FE72E6CD6227

Resolution

Change the vSAN Storage Policies from the vCenter after the Workload domain successfully deployed.

  1. Go to vCenter ui > Shortcuts > VM Storage Policies
  2. Select the default policy and Edit
  3. Replace 2 failures - RAID-1 to 2 failures - RAID-6 (Erasure Coding) and select Ok.