When a vCenter Server node is deleted or decommissioned from an Enhanced Linked Mode (ELM) environment without being gracefully unjoined, the remaining nodes retain stale entries in the VMware Directory Service (vmdir).
This prevents the successful integration of replacement vCenter instances.
Symptoms include:
Removed vCenter Server still appears in the vSphere Client inventory.
Replication errors in /var/log/vmware/vmdir/vmdir.log.
Failure when attempting to repoint or join a new vCenter to the existing SSO domain.
vCenter Server 8.x
Stale Single Sign-On (SSO) metadata.
The legacy vCenter Server object remains in the vmdir replication topology because the cmsso-util unregister process was not completed prior to the node's removal.
To remove stale metadata from a vCenter instance. :
Power down all vCenters and take offline snapshots before executing any commands.
Log into the affected vCenter Server via SSH and run the following command to validate the stale node is present. : /usr/lib/vmware-vmdir/bin/vdcrepadmin -f showservers -h localhost -u administrator
Execute the unregister command on the Production vCenter, targeting the PNID (FQDN or IP) of the legacy vCenter: cmsso-util unregister --node-pnid <OLD_VC_FQDN> --username administrator@<SSO_domain>
Re-run the command from Step 2 to confirm the legacy node is no longer listed.
If the cmsso utility fails to remove the stale replication partner, utilize the jxplore utility to unregister the legacy node:
Download and install JXplorer from https://jxplorer.org/downloads/.
Java must be installed for JXplorer to function properly.
Open the JXplorer utility.
Click File > Connect and enter the following information:
Host:
<vCenter FQDN or IP Address>
Protocol:
LDAPv3
Port:
389 if using LDAP.
636 if using LDAPS.
Base DN:
dc=vsphere,dc=local
Level:
User + Password for LDAP.
SSL + User + Password if using LDAPS.
User DN:
cn=Administrator,cn=Users,dc=vsphere,dc=local
Note: vsphere.local is the default naming convention for the SSO domain. If the environment has an SSO domain different to vsphere.local, replace as appropriate.
Once connected go to > Configuration >Sites > Lookupservice> Servers > vCenter Name >Replication Agreements > Right click and remove the stale agreement.
Restart vCenter services once removed:service-control --stop --all && service-control --start --all
/usr/lib/vmware-vmdir/bin/vdcrepadmin -f showservers -h localhost -u administratorFor more details on managing ELM topologies, refer to the Broadcom TechDocs: