A replication agreement is a set of parameters on a supplier that controls how updates are sent to a given consumer. In this case, we are making the configuration data instances aware of each other.
As a root user, log in to the DirectoryServer–1 host machine.
Run dsconf create-repl-agmt to create the replication agreement.
# cd /var/opt/mps/serverroot/ds6/bin # ./dsconf create-repl-agmt -h DirectoryServer-1.example.com -p 1389 dc=example,dc=com DirectoryServer-2.example.com:1389 Enter "cn=Directory Manager" password: d1rm4n4ger Use "dsconf init-repl-dest dc=example,dc=com DirectoryServer-2.example.com:1389" to start replication of "dc=example,dc=com" data. |
Run dsconf list-repl-agmts to verify that the replication agreement was successfully created.
# ./dsconf list-repl-agmts -p 1389 Enter "cn=Directory Manager" password: d1rm4n4ger dc=example,dc=com DirectoryServer-2.example.com:1389 |
The response indicates that the Directory Server 1 configuration data base suffix will be replicated to Directory Server 2.
Log out of the DirectoryServer–1 host machine.
As a root user, log in to the DirectoryServer–2 host machine.
Run dsconf create-repl-agmt to create the replication agreement.
# cd /var/opt/mps/serverroot/ds6/bin # ./dsconf create-repl-agmt -h DirectoryServer-2.example.com -p 1389 dc=example,dc=com DirectoryServer-1.example.com:1389 Enter "cn=Directory Manager" password: d1rm4n4ger Use "dsconf init-repl-dest dc=example,dc=com DirectoryServer-1.example.com:1389" to start replication of "dc=example,dc=com" data. |
Run dsconf list-repl-agmts to verify that the replication agreement was successfully created.
# ./dsconf list-repl-agmts -p 1389 Enter "cn=Directory Manager" password: d1rm4n4ger dc=example,dc=com DirectoryServer-1.example.com:1389 |
The response indicates that the Directory Server 2 configuration data base suffix will be replicated to Directory Server 1.
Log out of the DirectoryServer–2 host machine.