PingDirectory

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 --restricted domain is specified in the dsreplication command.

To enable replication on the servers in the topology:

Steps

  1. 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 enable command for the first time creates the administrator account.

  2. Enable replication between austin1 and newyork1.

    Example:

    This procedure automatically also enables replication between austin2 and newyork1.

    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
  3. Enable replication between austin1 and newyork2.

    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.

  4. Initialize the remaining servers without data.

    1. Initialize the global domain, dc=example,dc=com on austin2, newyork1, and newyork2 servers.

      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
    2. Initialize the entry-balancing domain, ou=people,dc=example,dc=com, from austin1 to newyork2.

      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
    3. Initialize the entry-balancing domain, ou=people,dc=example,dc=com, from austin2 to newyork2.

      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 austin2 is initialized with the global domain, you can combine steps 4b and 4c by initializing both domains with one invocation.