HP-UX Directory Server Administrator Guide HP-UX Directory Server Version 8.1 (5900-3098, May 2013)

when the replication agreement is created, initialization begins immediately. It can be added later
to initialize the consumer at any time. This attribute is absent by default, and it will be automatically
deleted after the consumer initialization is complete.
1. Find the DN of the replication agreement on the supplier server that is for the consumer to be
initialized. For example:
ldapsearch -h supplier1.example.com -p 389 -D "cn=directory manager"
-w secret -s sub
-b cn=config "(objectclass=nsds5ReplicationAgreement)"
This command returns all the replication agreements configured on the supplier in LDIF format.
Get the DN of the replication agreement with the consumer to be initialized. This is the
replication agreement that will be edited.
2. Edit the replication agreement, and add the nsds5BeginReplicaRefresh attribute:
ldapmodify -D "cn=directory manager" -w secret -p 389 -h
supplier1.example.com
dn: cn=ExampleAgreement,cn=replica,cn="dc=example,dc=com",cn=mapping tree,cn=config
changetype: modify
replace: nsds5beginreplicarefresh
nsds5beginreplicarefresh: start
ldapmodify does not prompt for input; simply type in the LDIF statement, then click Enter
twice when the LDIF statement is complete. Close the ldapmodify utility by entering Ctrl-C.
When the initialization is complete, the nsds5beginreplicarefresh attribute is automatically
deleted from the replication agreement entry.
NOTE:
Initializing consumers from the command line is also explained in “Initializing consumers online
using the command line” (page 373). Manually initializing consumers is explained in “Manual
consumer initialization using the command line” (page 373). The replication monitoring attributes
are described in more detail in the HP-UX Directory Server configuration, command, and file
reference.
To keep data integrity, initialize the consumer databases from the appropriate supplier. Depending
on the replication scenario, this can be more difficult in mixed replication environments, but, even
when manually initializing consumers, consider four things:
Use one supplier, a data master, as the source for initializing consumers.
Do not reinitialize a data master when the replication agreements are created. For example,
do not initialize server1 from server2 if server2 has already been initialized from server1.
For a multi-master scenario, initialize all the other master servers in the configuration from one
master.
For cascading replication, initialize all the hubs from a supplier, then initialize the consumers
from the hubs.
8.8 Making a replica updatable
Making a read-only server writable means changing the replica from a dedicated consumer or a
hub to a supplier.
1. Make sure there are no updates in progress.
2. Stop the supplier server.
3. Open the Directory Server Console for the read-only replica.
4. In the Configuration tab, select Replication. In the right pane, select the Enable changelog
checkbox.
370 Managing Replication