After attending the VMworld PSC session , I was thinking about to test the VDCREPADMIN tool which helps to find the replication status and to re-desgin the PSC.
Currently we have three PSCs which connects to each other in an in-line fashion, with each PSC installed against the previous PSC, rather than a hub-and-spoke fashion where all of the PSCs would terminate to a central PSC or mesh topology.
VDCREPADMIN Showservers is to displays all of the PSCs in a vSphere domain.
Login to the appliance and go to the below path
cd /usr/lib/vmware-vmdir/bin
Run this command to show all PSCs in the vSphere domain:
vdcrepadmin -f showservers -h PSC_FQDN -u administrator -w Administrator_Password
From the output we can see the PSC Names , Site and Domain.
VDCREPADMIN showpartners is to display the partner PSC.
vdcrepadmin -f showpartners -h PSC_FQDN -u administrator -w Administrator_Password
from the out put we can find the partnership between the PSCs which was installed in an in-line fashion, with each PSC installed against the previous PSC
- PSC35.* has a replication partnership with PSC236
- PSC36.* has a replication partnership with both PSC35.* and PSC37.*
- PSC37.* has a replication partnership with both PSC236
VDCREPADMIN showpartnerstatus is to display the current replication partner of the PSC and also the current replication status between the two nodes.
Pls note you have to run the showpartnerstatus from each PSC to list the exact partner list and status.
Also from the output we can find the current sync with all the replication partner with the curren update sequence number ( USN ) value and in case of any failure check the log /var/log/vmware/vmdird/vmdird-syslog.log
VDCREPADMIN Createagreement is to create the replication agreements between the PSC with the same vSphere domains and not between disparate (separate) vSphere domains.
So in our example we are creating the agreement between PSC37 and PSC35 so that in case of PSC36 failure still we have the replication with other partner in the domain.
Before running the agreement check the current partner.
vdcrepadmin -f showpartners -h PSC_FQDN -u administrator -w Administrator_Password
Use the following command to create a new replication agreement between PSCs .
vdcrepadmin -f createagreement -2 -h Source_PSC_FQDN -H New_PSC_FQDN_to_Replicate -u administrator -w Administrator_Password
If we have more number of PSC then plan to have the mesh topology and by using the createagreement we can plan the same. Due to replication time, it may take a few seconds to minutes for a complete mesh topology to be configured.
VDCREPADMIN Removeagreement is to remove the agreement from the replication partner.
First check the current partnership from the specified PSC:
vdcrepadmin -f showpartners -h PSC_FQDN -u administrator -w Administrator_Password
Use the following command to remove an existing replication agreement between PSCs:
vdcrepadmin -f removeagreement -2 -h Source_PSC_FQDN -H PSC_FQDN_to_Remove_from_Replication -u administrator -w Administrator_Password
Reference :
KB 2127057
INF8225 – VMworld
Pingback: Architecture des Plateformes Services Contrôleurs (PSC) – Le cloud de Piermick