MMR setup from CLI
By n4al on мар 26, 2007
Quite often I was in position which required automated configuration of multi-master replication on Sun Java Systems Directory Server 5.2, but I never got the chance to properly document it in a cheat-sheet form for the future reference.
If we would assume we have two DSAs, the process would be the following:
- on both servers
- enable changelog on both servres;
- configure replication settings;
- set replication manager password;
- create replication agreements, and
- on the primary master
- initialise the secondary master.
Here are the LDIF templates for each of the steps:
- enabling changelog:
$PATH_TO_CHANGELOG_DB - filesystem path where changelog database should be kept
- replication settings:
$SUFFIX - directory suffix which is being replicated $REPLICA_ID - unique integer value for each master, e.g. 1 for primary, 2 for secondary, etc. NOTES: "nsDS5ReplicaType: 3" configures this DSA as a replica master, while "nsDS5Flags: 1" regulates creation of changelog db.
- replication manager password:
$PASSWORD - password which has to be used by the other masters in topology
- replication agreement:
$REP_AGREEMENT_NAME - short name to distinguish this agreement from other agreements $DESCRIPTION - brief description of the agreement $SUFFIX - directory suffix being replicated $DESTINATION - fully qualified domain name of the destination machine that recieves replication data $PASSWORD - password set for the replication manager on the destination machine
- initialising the secondary master:
$REP_AGREEMENT_NAME - short name to distinguish this agreement from other agreements $SUFFIX - directory suffix being replicated