Enabling replication in an entry-balancing deployment
Enable replication between the servers and initialize the remaining servers without data.
About this task
|
In this example, the |
To enable replication on the servers in the topology:
Steps
-
Run
dsreplication enable.Example:
root@austin1# ./bin/dsreplication enable \ --host1 austin1.example.com \ --port1 389 --bindDN1 "cn=directory manager" \ --bindPassword1 pass --host2 austin2.example.com \ --port2 389 --bindDN2 "cn=directory manager" \ --bindPassword2 pass \ --replicationPort1 8989 \ --replicationPort2 8989 \ --baseDN dc=example,dc=com \ --baseDN ou=people,dc=example,dc=com \ --restricted ou=people,dc=example,dc=com \ --adminUID admin --adminPassword pass --trustAll \ --no-prompt
Running the
dsreplication enablecommand for the first time creates the administrator account. -
Enable replication between
austin1andnewyork1.Example:
This procedure automatically also enables replication between
austin2andnewyork1.root@austin1# ./bin/dsreplication enable \ --host1 austin1.example.com \ --port1 389 --bindDN1 "cn=directory manager" \ --bindPassword1 pass --host2 newyork1.example.com \ --port2 389 --bindDN2 "cn=directory manager" \ --bindPassword2 pass \ --replicationPort1 8989 \ --replicationPort2 8989 \ --baseDN dc=example,dc=com \ --baseDN ou=people,dc=example,dc=com \ --restricted ou=people,dc=example,dc=com \ --adminUID admin --adminPassword pass --trustAll \ --no-prompt
-
Enable replication between
austin1andnewyork2.Example:
root@austin1# ./bin/dsreplication enable \ --host1 austin1.example.com \ --port1 389 --bindDN1 "cn=directory manager" \ --bindPassword1 pass --host2 newyork2.example.com \ --port2 389 --bindDN2 "cn=directory manager" \ --bindPassword2 pass \ --replicationPort1 8989 \ --replicationPort2 8989 \ --baseDN dc=example,dc=com \ --baseDN ou=people,dc=example,dc=com \ --restricted ou=people,dc=example,dc=com \ --adminUID admin --adminPassword pass --trustAll \ --no-prompt
Result:
The entry-balancing replication setup is complete.
-
Initialize the remaining servers without data.
-
Initialize the global domain,
dc=example,dc=comonaustin2,newyork1, andnewyork2servers.Example:
root@austin1# ./bin/dsreplication initialize \ --hostSource austin1.example.com --portSource 389 \ --hostDestination austin2.example.com \ --portDestination 389 --adminUID admin \ --adminPassword password \ --baseDN dc=example,dc=com \ --no-prompt
-
Initialize the entry-balancing domain,
ou=people,dc=example,dc=com, fromaustin1tonewyork2.Example:
root@austin1# ./bin/dsreplication initialize \ --hostSource austin1.example.com --portSource 389 \ --hostDestination newyork1.example.com \ --portDestination 389 --adminUID admin \ --adminPassword password \ --baseDN dc=example,dc=com \ --baseDN ou=people,dc=example,dc=com \ --no-prompt
-
Initialize the entry-balancing domain,
ou=people,dc=example,dc=com, fromaustin2tonewyork2.Example:
root@austin2# ./bin/dsreplication initialize \ --hostSource austin2.example.com --portSource 389 \ --hostDestination newyork2.example.com \ --portDestination 389 --adminUID admin \ --adminPassword password \ --baseDN dc=example,dc=com \ --baseDN ou=people,dc=example,dc=com \ --no-prompt
After
austin2is initialized with the global domain, you can combine steps 4b and 4c by initializing both domains with one invocation.
-