Change the Primary Datastore of a Cluster in SDDC Manager
search cancel

Change the Primary Datastore of a Cluster in SDDC Manager

book

Article ID: 452458

calendar_today

Updated On:

Products

VMware Cloud Foundation VMware SDDC Manager / VCF Installer

Issue/Introduction

At times, there may arise a situation where there's a need to change the primary datastore of a cluster, after a cluster is created using SDDC Manager or after a brownfield import.

Environment

SDDC Manager, Applicable to all VCF versions

Resolution

  1. Find the desired VMFS datastore MOR(Managed Object Reference) ID in vCenter (https://<vcentere fqdn>/mob/)
  2. Get the domain details from the SDDC-M inventory and dave it to domain.json
    curl -s -k -X GET http://localhost/inventory/extensions/vi/domainInventory?domainIds={domainID} | jq '.[0]' > domain.json

  3. Modify the primary datastore name, type and mor to the desired VMFS datastore  in the domain.json
    primaryDatastoreSourceId -> [new Storage MOR ID]
    primaryDatastoreType -> [Storage Type]
    primaryDatastoreName -> [New Datastore Name]

  4. Save the domain.json file

  5. Update the SDDC-M ineventory to change the primary datastore to the desired VMFS datastore (cae-d1-c1-pure02-01)
    curl -s -k -H "Content-Type:application/json" -X PUT http://localhost/inventory/extensions/vi/clusters -d @domain.json