As a root user, log in to the DirectoryServer–1 host machine.
(Optional) Run dsconf list-suffixes to verify that the instance is not already enabled for replication.
# cd /var/opt/mps/serverroot/ds6/bin # ./dsconf list-suffixes -p 1489 -v Enter "cn=Directory Manager" password: d1rm4n4ger ... dc=company,dc=com 1 not-replicated N/A N/A 29 The "list-suffixes" operation succeeded on "DirectoryServer-1.example.com:1489" |
The base suffix of the instance is not-replicated as displayed in the resulting list.
Run dsconf enable-repl to enable replication.
# ./dsconf enable-repl -h DirectoryServer-1.example.com -p 1489 -d 11 master dc=company,dc=com Enter "cn=Directory Manager" password: d1rm4n4ger Use "dsconf create-repl-agmt" to create replication agreements on "dc=company,dc=com". |
The -d option takes as input a randomly chosen identifier to represent the Directory Server 1 configuration data instance; in this case, 11. master indicates that the instance is a master and not a replica. The base suffix is specified as dc=company,dc=com.
Run dsconf list-suffixes again to verify that the instance is now enabled for replication.
# ./dsconf list-suffixes -p 1489 -v Enter "cn=Directory Manager" password: d1rm4n4ger ... dc=company,dc=com 1 master(11) N/A N/A 29 The "list-suffixes" operation succeeded on "DirectoryServer-1.example.com:1489" |
The base suffix of the instance is master(11) as displayed in the resulting list, indicating that the master was successfully enabled.
Log out of the DirectoryServer–1 host machine.