Page created: 15 Jul 2022
|
Page updated: 20 Jan 2023
| 2 min read
9.2 Product PingDirectory Directory Capability Product documentation Content Type Administration User task Configuration IT Administrator Administrator Audience System Administrator Software Deployment Method
Enable replication between the servers and initialize the remaining servers without data.
Note:
In this example, the --restricted
domain is specified in the
dsreplication command.
To enable replication on the servers in the topology:
-
Run dsreplication enable.
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
Note:Running the dsreplication enable command for the first time creates the administrator account.
-
Enable replication between
austin1
andnewyork1
.This procedure automatically also enables replication between
austin2
andnewyork1
.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
austin1
andnewyork2
.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
The entry-balancing replication setup is complete. -
Initialize the remaining servers without data.
-
Initialize the global domain, dc=example,dc=com on
austin2
,newyork1
, andnewyork2
servers.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, from
austin1
tonewyork2
.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, from
austin2
tonewyork2
.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
Note:After
austin2
is initialized with the global domain, you can combine steps 4b and 4c by initializing both domains with one invocation.
-
Initialize the global domain, dc=example,dc=com on