When an ESXi host that is prepared as an NSX transport node needs to be decommissioned (e.g., for hardware replacement or retirement), it is critical to follow a specific procedure to remove it from the environment. Failure to do so can result in stale or orphaned entries in the NSX Manager database. These stale entries can lead to operational issues, including misleading health statuses, inaccurate inventory, and critical failures during future NSX upgrades.
VMware NSX
Stale entries are created when a host is removed from the vCenter inventory or is powered down permanently without first being properly unprepared through the NSX Manager. The NSX Manager relies on communication with the host to clean up its own configuration database. If the host becomes unreachable before this process is completed, NSX Manager will retain the host's configuration, treating it as a "down" or "unreachable" node rather than a cleanly removed one.
To cleanly decommission a host and avoid stale entries, follow this mandatory, sequential procedure. The guiding principle is to always initiate the uninstallation from the NSX Manager first.
Important Note: Under no circumstances should a host be removed from vCenter inventory or powered off before its NSX configuration has been successfully removed via the NSX Manager UI. Doing so will result in a stale configuration that may require manual database cleanup.
If you are encountering stale NSX host entries, likely due to incorrect decommissioning:
Consult General Documentation/KBs: