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