Clean up/remove NSX manager entries from SDDC database
search cancel

Clean up/remove NSX manager entries from SDDC database

book

Article ID: 439927

calendar_today

Updated On:

Products

VMware SDDC Manager / VCF Installer VMware NSX

Issue/Introduction

  • Failed NSX manager with single node (not a cluster) and no backups to recover from.

Cause

Needing to re-deploy NSX to VCF environment due to failed NSX node(s) and no way to recover from backups.

Resolution

  1. Take a snapshot of the SDDC manager.
  2. Log into UI portal for the NSX Manger that needs to be redeployed.
  3. Un-prepare vCenter clusters from NSX
    1. Navigate to "NSX Manager UI > System > Fabric > Hosts".
    2. Under Clusters tab, select the clusters from the impacted vCenter.


  4. Verify that all hosts are in a "Not Configured" NSX Configuration state before proceeding to next step.
  5. Remove NSX Compute Manager.
    1. Navigate to "NSX Manager UI > System > Fabric > Compute Manager".
    2. Click on 3 dots on left side of the compute manager for the impacted vCenter. Click on Delete option.


  6. Delete NSX VM(s) from the vCenter.
    1. Power off the NSX Managers / NSX Edges
    2. Navigate to "vCenter UI > NSX Manager VM > Actions > Power > Power Off" and Confirm Power Off.
    3. Once the VMs are powered off, select the NSX Manager VM and delete it by navigating to "vCenter UI > NSX Manager VM > Actions > Delete from Disk" and Confirm Delete.
  7. Remove the NSX domain from the SDDC manager inventory.
    1. SSH into the SDDC Manager with vcf and then elevate to root with su.
    2. Collect the domain ID for the domain that will be reimported.

      curl -i -X GET http://localhost/inventory/extensions/vi/domainInventory

    3. Remove the NSX Manager from the domain. (If NSX Manager is shared skip this step)

      curl -i -X DELETE http://localhost/inventory/extensions/vi/nsxtclusterdomains/<domain-id from above output>

      example:

      curl -i -X DELETE http://localhost/inventory/extensions/vi/nsxtclusterdomains/890#####-####-####-####-#########99a

    4. Remove the domain from the SDDC inventory.

      curl -s -X DELETE http://localhost/inventory/extensions/vi/domains/<domain-id from above output>

      example:

      curl -s -X DELETE http://localhost/inventory/extensions/vi/domains/890#####-####-####-####-#########99a

Additional Information

If NSX was from imported VCF domain follow steps from KB "Remove NSX from VCF Imported Domain".