Warnings:
Symptoms:
#/usr/lib/vmware-vmafd/bin/dir-cli state getRead-only#cd /usr/lib/vmware-vmdir/bin#./vdcrepadmin -f showservers -h localhost -u administratorExample Outputcn=vcenter1.example.local,cn=Servers,cn=home,cn=Sites,cn=Configuration,dc=vsphere,dc=localcn=vcenter2.example.local,cn=Servers,cn=home,cn=Sites,cn=Configuration,dc=vsphere,dc=local
vcenter1.example.local.showpartners and showpartnerstatus show nothing.#./vdcrepadmin -f showpartners -h localhost -u administrator#./vdcrepadmin -f showpartnerstatus -h localhost -u administrator
vmafdvmdirclient.log shows replication errors:
YYYY-MM-DDTHH:MM:SS.###Z:t@############:ERROR: VmDirSafeLDAPBindEx to (ldap://<vCenter>:389) failed. SRP(9127)YYYY-MM-DDTHH:MM:SS.###Z:t@############:ERROR: VmDirAnonymousLDAPBindEx to (ldap://<vCenter>:389) failed. (-1)(Can't contact LDAP server)YYYY-MM-DDTHH:MM:SS.###Z:t@############:ERROR: _VmDirGetDSERootAttributeEx failed with error (9127)
vCenter 7.x
vCenter 8.x
Sometime in the past a vCenter or PSC was removed from the environment but it was not removed from vCenter.
Warning: Following this KB for the wrong vCenter can destroy the vCenter. It is very important to verify the vCenter does not exist before following the steps below.
#/usr/lib/vmware-vmdir/bin/vdcadmintoolChoose Option 5. Set vmdir state NORMAL
Choose Option 0. exit
#cd /usr/lib/vmware-vmdir/bin
#cmsso-util unregister --node-pnid <vCenter_FQDN_that_will_be_removed> --username [email protected] --passwd
If the operation completes successfully it will say "Success".
#/usr/lib/vmware-vmafd/bin/dir-cli state get
Normal