Recover the VI Workload Domain vSphere
ClusterLast Updated January 22, 2025
Perform the following tasks to recover the VI workload domain vSphere Cluster
Export the Cluster Settings from the Restored
vCenter Server
Before you can restore vSphere clusters of the restored vCenter Server, you must first
export the settings so they can be reapplied to the restored cluster.
- vCenter Server has been restored and powered on.
- Start PowerShell.
- Replace the values in the sample code with your values and run the commands in the PowerShell console.The values in this example are for the management domain. Replace with the values for the specific workload domain you are recovering.
- Perform the configuration by running the command in the PowerShell console.
- Save the JSON file output for later use.
- Repeat for all clusters in the vCenter Server.
Remove Non-Responsive ESXi Hosts from the
Inventory
Before you can repair a failed vSphere cluster, you must first remove the non-responsive hosts from the cluster.
Prerequisites
Ensure you have exported all cluster
settings before proceeding.
UI Procedure
- Log into the NSX Manager for the workload domain and navigate to.In NSX 3.x, the relevant navigation path isand choose the vCenter fromManaged by
- Select the check box next for the relevant vSphere cluster and clickRemove NSX.
- Deselect the check box next for the relevant vSphere cluster.
- Expand the cluster and wait for all hosts in the cluster to go into anOrphanedState
- Select the check box that selects all hosts in the cluster without selecting the cluster object itself and selectRemove NSX.
- Select theForceoption and submit.Wait until all hosts show as unconfigured.
- Log in to the vCenter Server with the non-responsive hosts and navigate to the cluster.
- Select the cluster, and in the right pane, navigate to theHoststab.
- Select the check box for each non-responsive host, right click the selected hosts and selectRemove from Inventory.If the cluster use vSphere Lifecycle Manager images, wait for about a minute to allow the background tasks in NSX to complete the removal of the NSX solution from the relevant cluster before proceeding to the next step.
- Log in to the NSX Manager for the workload domain and navigate back toIn NSX 3, the relevant navigation path isand choose the vCenter fromManaged by
- Select the check box next for the relevant vSphere cluster and clickConfigure NSX.
- Select the relevant Transport Node Profile and Submit.
PowerShell Procedure
- Start PowerShell.
- Replace the values in the sample code with your values and run the commands in the PowerShell console.The values in this example are for the management domain. Replace with the values for the specific workload domain you are recovering.
- Perform the configuration by running the command in the PowerShell console.
Add New Hosts to the Cluster in the Restored
vCenter Server
You add new hosts to the cluster in the restored vCenter Server for the VI workload
domain .
UI Procedure
- Log into the restored vCenter Server by using the vSphere Client.
- In theHosts and clustersinventory, navigate to the cluster.
- Right-click the cluster and selectAdd Hosts.
- Enter the FQDN, user name, and password for each host to be added, and clickNext.
- When prompted to accept the SSL certificate for the new hosts, clickAccept.
- ClickFinish.
PowerShell Procedure
- Start PowerShell.
- Replace the values in the sample code with your values and run the commands in the PowerShell console.
- Perform the configuration by running the command in the PowerShell console.
Migrate the ESXi Hosts and VMkernel Adapters to
the vSphere Distributed Switch on the Restored vCenter Server
You connect the new cluster hosts to the vSphere Distributed Switch and migrate the
VMkernel adapters.
UI Procedure
- Log in to the restored vCenter Server by using the vSphere Client.
- Add the hosts to the vSphere Distributed Switch.
- InNetworkinginventory, right-click the vSphere Distributed Switch and selectAdd and Manage Hosts.
- SelectAdd Hostsand clickNext.
- On theSelect hostspage, select all the ESX hosts, and clickNext.
- On theManage physical adapterspage, select a free physical adapter, for example vmnic0, and clickAssign Uplink.
- Select uplink1 , and clickNext.
- On theManage VMkernel adapterspage, update the following VMkernel adapters to assign them to the appropriate port group on the new distributed switch.VMkernel Migration by Domain TypeManagement DomainVI Workload Domainvmk0 – Management Network port groupvmk0 – Management Network port groupvmk1 – vMotion Network port groupN/A - Not yet createdvmk2 – vSAN Network port groupN/A - Not yet created
- To assign the VMkernel adapters, select the adapter and under actions for the corresponding port group, clickAssign.
- ClickNext.
- On theMigrate VM networkingstep, clickNext.
- Review the information on theReady to completepage and clickFinish.
- If this is a management domain cluster, migrate the management VMs to the original management port group.
- Right-click the temporary management port group and selectMigrate VMs to Another Network.
- For destination network, select the management port group on the vSphere Distributed Switch, for example sfo-m01-vc01-vds01-management, and clickNext.
- On theSelect VMs to migratepage, select all management VMs and clickNext.
- On theReady to completepage, clickFinish.
- Remove the temporary standard switch on each ESXi Host.
- Select the first ESXi host and, on the Configure tab, select.
- ExpandvSwitch0and click the horizontal ellipsis.
- ClickRemoveand clickYes.
- Add additional host uplinks to the vSphere Distributed Switch.
- Right-click the distributed switch and selectAdd and Manager Hosts.
- SelectManage Host Networkingand clickNext.
- On theSelect hostsstep, select all the ESX hosts and clickNext.
- On theManage physical adaptersstep, select the required free physical adapter(s), for example vmnic1, and fromAssign Uplinkselect the desired uplinks to corresponding physical adapters, and clickNext.
- ClickNextand clickNext.
- Review the information on theReady to completepage and clickFinish.
If you are running NSX 4.1.2 or
later, the NSX installation on each host in the vSphere cluster should
self-heal. Monitor the self-healing process until complete in the NSX Manager UI
at
before proceeding. PowerShell Procedure
- Start PowerShell.Replace the values in the sample code with your values and run the commands in the PowerShell console.
- Perform the configuration by running the command in the PowerShell console.
At this point, the NSX installation on each host in
the vSphere cluster should self-heal. Monitor the self-healing process until
complete in the NSX Manager UI at
before proceeding. It might take several minutes for the process
to initiate. If you see an error on the hosts that they are not part of the
distributed switch, it just means that the self-healing process is yet to
start.Add VMkernel Adapters to the ESXi Hosts
You add vSphere vMotion and vSAN VMkernel adapters to the new ESXi hosts.
UI Procedure
- Log in to the restored vCenter Server by using the vSphere Client.
- In theHosts ad clustersinventory, select the first ESXi host and on the Configure tab, select .
- ClickAdd networking.
- SelectVMkernel Network Adapterand clickNext.
- SelectSelect an existing network, select the port group for the VMkernel type, and clickNext.
- On thePort propertiespage, configure the following, leaving the default values for all other settings, and clickNext.SettingvMotion VMkernelvSAN VMkernelTCP/IP stackvMotionDefaultAvailable servicesN/AvSAN
- On theIPv4 settingspage, selectUse static IPV4 settingsand enter the IP details for each VMkernel adapter from your system documentation, and clickNext.
- On theReady to completepage, clickFinish.
- Repeat the procedure for each ESXi host in the cluster.
PowerShell Procedure
- Start PowerShell.
- Replace the values in the sample code with your values and run the commands in the PowerShell console.
- Perform the configuration by running the command in the PowerShell console.
Recreate a vSAN Datastore
To recreate the vSAN datastore, you claim cache and capacity disks to create disk groups.
UI Procedure
- Connect to the restored vCenter Server by using the vSphere Client, and add the hosts to the vSphere Distributed Switch.
- In theHosts and clustersinventory, navigate to the cluster and clickConfigure.
- UndervSAN, clickDisk Management, and clickClaim Unused Disks.
- Select the relevant disks for each tier and clickClaim.The process to claim the disks and create the vSAN datastore might take some time. Wait for it to complete.
- After the disk groups are created, right-click the datastore and selectRename.
- Enter the original datastore name and clickOK.
PowerShell Procedure
- Start PowerShell.
- Replace the values in the sample code with your values and run the commands in the PowerShell console.
- The values in this example are for the management domain. Replace with the values for the specific workload domain you are recovering.
- Perform the configuration by running the command in the PowerShell console.
Resolve vSphere HA on Cluster
After recreating a vSAN Datastore, you disable and renable vSphere HA on the cluster so vCLS can self heal
UI Procedure
- Connect to the restored vCenter Server by using the vSphere Client, and add the hosts to the vSphere Distributed Switch.
- In theHosts and clustersinventory, navigate to the cluster and clickConfigure.
- UnderServices, clickvSphere Availability, and undervSphere HA is Turned ONclick theEditbutton.
- Switch off thevSphere HAtoggle button and ClickOK.
- UnderServices, clickvSphere Availability, and undervSphere HA is Turned ONclick theEditbutton.
- Switch on thevSphere HAtoggle button and ClickOK.
PowerShell Procedure
- Start PowerShell.
- Replace the values in the sample code with your values and run the commands in the PowerShell console.
- The values in this example are for the management domain. Replace with the values for the specific workload domain you are recovering.
- Perform the configuration by running the command in the PowerShell console.
Apply Licensing to Cluster Hosts
The hosts in the recovered cluster are will be running evaluation licenses and should have permanent licenses assigned.
UI Procedure
- Connect to the restored vCenter Server and license the hosts.
- In vCenter Server UI, navigate to the
- Select all hosts that are part of the recovered cluster and clickAssign License.
- Choose a valid existing license and clickOK.