Promoting a Secondary Database to a Primary Role in a Configuration with One Primary Database with the SRC CLI
Although all communities should have two databases with a primary role, if a community includes one database assigned a primary role and another database assigned a secondary role, promote the database assigned a secondary role to a primary role.
To promote a Juniper Networks database from a secondary role to a primary role:
For example, if the database on C2 has a secondary role:
user@C2#edit system ldap server community[edit system ldap server community]user@C2#set role primaryuser@C2#commitC2 already has C1 configured as primary neighbor.
- On the existing database that has a primary role, remove the neighbor as secondary and add it as primary.
For example, to remove C2 as a secondary neighbor and add it as a primary neighbor for the database on C1:
user@C1#edit system ldap server community[edit system ldap server community]user@C1#set primary-neighborsC2user@C1#commit
- (Optional if you have two databases with a primary role in a community) Switch the role of the database that originally had a secondary role back to secondary:
[edit system ldap server community]user@C2#set role secondaryuser@C2#commitRelated Topics