Chapter 8. Managing Replication

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, and then hit enter twice when the LDIF statement is complete. Close the ldapmodify utility by hitting Ctrl+C.

To check the initialization status, do an ldapsearch for the replication agreement entry.

ldapsearch -h hostname -p port -D "cn=directory manager" -w password -s base

-b 'cn=ExampleAgreement,cn="dc=example,dc=com", cn=mapping tree,

cn=config' '(objectclass=*)'

If the nsds5BeginReplicaRefresh attribute is present, the initialization is still in progress. If the initialization is complete, then the attribute nsds5ReplicaLastInitStatus shows the status. If the initialization was successful, the value of nsds5ReplicaLastInitStatus is Total update succeeded. If the initialization was not successful, this attribute shows information about the error; check the error logs for both the supplier and consumer for additional information.

The replication monitoring attributes are described in more detail in the Directory Server Configuration, Command, and File Reference.

10.4. Manual Consumer Initialization Using the Command Line

Manual consumer initialization using the command-line is the fastest method of consumer initialization for sites that are replicating very large numbers of entries. However, the manual consumer initialization process is more complex than the online consumer initialization process. Red Hat suggests using the manual process whenever the online process is inappropriate due to performance concerns.

Initializing or reinitializing a server manually has three steps:

1.Create a replication agreement.

2.Export the replica on the supplier server to an LDIF file. See Section 10.4.1, “Exporting a Replica to LDIF”.

3.Import the LDIF file with the supplier replica contents to the consumer server. See Section 10.4.2, “Importing the LDIF File to the Consumer Server”.

10.4.1. Exporting a Replica to LDIF

326

Page 346
Image 346
HP UX Red Hat Direry Server Software Manual Consumer Initialization Using the Command Line, Exporting a Replica to Ldif