This article illustrates the steps needed to add a standalone vCenter Server to an existing group of ELM or Linked vCenter Servers.
For this example, it is assumed that there are 2 vCenters vcA and vcB in linked mode and standalone vCenter vcC needs to be added to that.
vCenter Server 7.x, 8.x
To add the standalone vCenter to the the linked vCenters on existing SSO domain, follow the below steps.
Refer VMware vCenter in Enhanced Linked Mode pre-changes snapshot (online or offline) best practice for more details
389, 636, 2012, 2020, 8084 are open between all the vCenter(s) by running the below command from vcA to vcC and vice versacurl -v telnet://<target_ip_or_fqdn>:<port_number>
Example of Good outputroot@vcC [ ~ ]# curl -v telnet://<ip_vcA>:389* Rebuilt URL to: telnet://<ip_vcA>:389/* Trying <ip_vcA>...* Connected to <ip_vcA> port 389
For more information on the ports please refer to VMware Ports and Protocols and filter "Purpose" with "ELM" .
-f showservers -h <vcA_fqdn> -u administrator -w Administrator_Password/usr/lib/vmware-vmdir/bin/vdcrepadmin
Example Output
<vcA_fqdn>,cn=Servers,cn=home,cn=Sites,cn=Configuration,dc=vsphere,dc=local<vcB_fqdn>,cn=Servers,cn=home,cn=Sites,cn=Configuration,dc=vsphere,dc=local/usr/lib/vmware-vmdir/bin/vdcrepadmin -f showpartners -h <vcA_fqdn> -u administrator -w Administrator_Password
Example Output
ldap://<vcB_fqdn>
/usr/lib/vmware-vmdir/bin/vdcrepadmin -f showpartnerstatus -h localhost -u administrator -w Administrator_Password
Example output:
Partner: <vcB_fqdn>Host available: YesStatus available: YesMy last change number: ##Partner has seen my change number: ##Partner is 0 changes behind.
vmdir state is normal and vmdird domain functional level is 4:/usr/lib/vmware-vmafd/bin/dir-cli state get
Example of good output:
root@vcA [ ~ ]# /usr/lib/vmware-vmafd/bin/dir-cli state getEnter password for administrator@<sso>:Directory Server State: Normal (3)
/usr/lib/vmware-vmafd/bin/dir-cli domain-functional-level get
Example of good output:
root@vcA [ ~ ]# /usr/lib/vmware-vmafd/bin/dir-cli domain-functional-level getEnter password for administrator@<sso>:Domain Functional Level: 4
cmsso-util domain-repoint -m pre-check --src-emb-admin Administrator --replication-partner-fqdn vcA_fqdn --replication-partner-admin administrator --dest-domain-name <elm_domain_name>
The default resolution mode for Tags and Authorization conflicts is Copy, unless overridden in the conflict files generated during pre-check. For further details refer Repointing vCenter Server to another SSO Domain
cmsso-util domain-repoint -m execute --src-emb-admin Administrator --replication-partner-fqdn vcA_fqdn --replication-partner-admin administrator --dest-domain-name <elm_domain_name>/usr/lib/vmware-vmdir/bin/vdcrepadmin -f createagreement -2 -h vcC_fqdn -H vcB_fqdn -u administrator
Post executing the above steps, all vCenter servers should appear in ELM.
References:
Repoint vCenter Server to Another vCenter Server in a Different Domain
To fix replication, refer vCenter Server Preupgrade check result error: "VMDir Replication between partners is not working"
To fix VMDIR status and state, refer "Vmdir service is not in Normal state", vCenter Server upgrade pre-check fails due to VMDIR in Standalone mode and VMdir enters failure state after upgrading vCenter Server to 8.0 U1.
To reviewed current replication status and replicating serviers, refer Determining replication agreements and status with the Platform Services Controller (PSC)