Recover the VI Workload Domain NSX Manager
Cluster
Perform the following tasks to recover the VI workload domain NSX Manager Cluster
Deactivate the NSX Manager Cluster
If you are using a version of NSX that is earlier than NSX 4.x, after you restore the
first node of the NSX Manager cluster, you must deactivate the cluster.
- In a Web browser, log in to the management domain vCenter Serverhttps://<vcenter_server_fqdn>/uiby using the vSphere Client.
- Click the VM of the operational NSX Manager node in the cluster, clickLaunch Web Console, and log in by usingadministratorcredentials.
- Run the command to deactivate the cluster.deactivate cluster
- In theAre you sure you want to remove all other nodes from this cluster? (yes/no)prompt, enteryes.
Redeploy a Failed NSX Manager Node
You deploy a new NSX Manager instance by using the configuration of the failed node.
UI Procedure
- In a Web browser, log in to the management domain vCenter Server by using the vSphere Client.
- In theHosts and clustersinventory, sight-click the management cluster and selectDeploy OVF Template.
- On theSelect an OVF templatepage, selectLocal file, clickUpload files, navigate to the location of the NSX Manager OVA file, clickOpen, and clickNext.
- On theSelect a name and folderpage, enter the VM name and clickNext.
- On theSelect a compute resourcepage, select the cluster and clickNext.
- On theReview detailspage, clickNext.
- For the management domain, selectMedium, and for VI workload domains, selectLargeunless you changed these defaults during deployment.
- On theSelect storagepage, select the management vSAN datastore, and clickNext.
- On theSelect networkspage, from theDestination networkdrop-down menu, select management distributed port group, and clickNext.
- On theCustomize templatepage, enter these values and clickNext.SettingValueSystem root user password<failed_nsx_cluster_node_root_password>CLI admin user password<failed_nsx_cluster_node_admin_password>CLI audit user password<failed_nsx_cluster_node_audit_password>Hostname<failed_nsx_cluster_node_fqdn>Default IPv4 gateway<failed_nsx_cluster_node_gw>Management network IPv4 address<failed_nsx_cluster_node_ip>Management network netmask<failed_nsx_cluster_node_mask>DNS server list<dns_server_list>NTP server list<ntp_server_list>Enable SSHSelectedAllow root SSH loginsDeselected
- On theReady to completepage, review the deployment details and clickFinish.
- Repeat for the remaining failed node.
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.$tempvCenterFqdn = "sfo-m01-vc02.sfo.rainpole.io" $tempvCenterAdmin = "administrator@vsphere.local" $tempvCenterAdminPassword = "VMw@re1!" $extractedSDDCDataFile = ".\extracted-sddc-data.json" $workloadDomain = "sfo-m01" $restoredNsxManagerDeploymentSize = "medium" $nsxManagerOvaFile = "F:\OVA\nsx-unified-appliance-3.2.2.1.0.21487565.ova"
- Perform the operation by running the command in the PowerShell console.New-NSXManagerOvaDeployment -vCenterFqdn $tempvCenterFqdn -vCenterAdmin $tempvCenterAdmin -vCenterAdminPassword $tempvCenterAdminPassword -extractedSDDCDataFile $extractedSDDCDataFile -workloadDomain $workloadDomain -restoredNsxManagerDeploymentSize $restoredNsxManagerDeploymentSize -nsxManagerOvaFile $nsxManagerOvaFile
- Repeat for the remaining failed node.
Join NSX Manager Nodes to the NSX Manager
Cluster
You retrieve the ID and API thumbprint of the NSX Manager cluster, and use it join the
newly-deployed NSX Manager instance to the cluster.
UI Procedure
- In a Web browser, log in to the management domain vCenter Server by using the vSphere Client.
- In theVMs and templatesinventory, click the VM of an operational NSX Manager node in the cluster, clickLaunch web console, and log in by usingadministratorcredentials.
- Retrieve the ID of the NSX Manager cluster.
- Run the command to view the cluster ID.get cluster config | find Id:
- Write down the cluster ID.
- Retrieve the API thumbprint of the NSX Manager API certificate.
- Run the command to view the certificate API thumbprint.get certificate api thumbprint
- Write down the certificate API thumbprint.
- Close the VM Web console.
- In the vSphere Client, click the VM of the newly deployed NSX Manager node, clickLaunch Web console, and log in by usingadministratorcredentials.
- Run the command to join the new NSX Manager node to the cluster.joinnew_node_ipcluster-idcluster_idthumbprintapi_thumbprintusername admin
- Repeat for the remaining failed node.
PowerShell Procedure
- Start Windows PowerShell.
- Replace the values in the sample code with your values and run the commands in the PowerShell console (note the values in this example are for a Management Domain but should be replaced with the values for the specific workload domain you are recovering)$workloadDomain = "sfo-m01" $extractedSDDCDataFile = ".\extracted-sddc-data.json"
- Perform the operation by running the command in the PowerShell console.Add-AdditionalNSXManagers -workloadDomain $workloadDomain -extractedSDDCDataFile $extractedSDDCDataFile
Restore the SSL Certificate of NSX Manager
Node
If the version of NSX in your environment is earlier than NSX 4, then after you add the
new NSX Manager node to the cluster and validated the cluster status, you must restore the
CA-signed SSL certificate of the node.
To view the certificate of the failed NSX Manager cluster node, you log in to the NSX Manager for the domain.
- In a Web browser, log in to NSX Manager for the management domain by using the user interface.
- On the main navigation bar, clickSystem.
- In the left pane, underSettings, clickCertificates.
- Locate and copy the ID of the certificate that is issued by CA to the node that you are restoring.
- Run the command to install the CA-signed certificate on the new NSX Manager node.curl -H 'Accept: application/json' -H 'Content-Type: application/json'\ --insecure -u 'admin:NSX_admin_password' -X POST\ 'https://NSX_host_node/api/v1/node/services\/http action=apply_certificate&certificate_id=<certificate_id>
- Repeat for the remaining restored node.
If assigning the certificate fails because the
certificate revocation list (CRL) verification fails, see VMware Knowledge Base
article 78794. If you disable the CRL checking to assign the certificate, after
assigning the certificate, you must re-enable the CRL checking.
Restart an NSX Manager Node
If the version of NSX in your environment is earlier than NSX 4, then after assigning the
certificate, you must restart the new NSX Manager node.
- In a Web browser, log in to the management domain vCenter Server by using the vSphere Client.
- In theHosts and clustersinventory, right-click each restored NSX Manager VM that you updated the certificate on and select .