On 05 May 2014, at 5:52 PM, David Boreham <[email protected]> wrote:

> Are you importing an ldif file with the right content for replica 
> initialization ? (the error message suggests not).

The command line I used on servera was this:

/usr/lib64/dirsrv/slapd-servera/db2ldif.pl -v -r -D "cn=Directory Manager" -w - 
-n userRoot -a /tmp/replica.ldif

The command line I used on serverc was this:

/usr/lib64/dirsrv/slapd-serverc/ldif2db.pl -v -D "cn=Directory Manager" -j 
/etc/dirsrv/slapd-serverc.secret -n userRoot -i /tmp/replica.ldif

The log on serverc looked like this:

[05/May/2014:17:34:41 +0200] - import userRoot: Beginning import job...
[05/May/2014:17:34:41 +0200] - import userRoot: Index buffering enabled with 
bucket size 19
[05/May/2014:17:34:41 +0200] - import userRoot: Processing file 
"/tmp/replica.ldif"
[05/May/2014:17:34:41 +0200] - import userRoot: WARNING: Skipping entry 
"nsuniqueid=ffffffff-ffffffff-ffffffff-ffffffff,o=Foo,c=ZA" which has no 
parent, ending at line 18 of file "/tmp/replica.ldif"
[05/May/2014:17:34:57 +0200] - import userRoot: Finished scanning file 
"/tmp/replica.ldif" (62931 entries)
[05/May/2014:17:34:58 +0200] - import userRoot: Workers finished; cleaning up...
[05/May/2014:17:34:58 +0200] - import userRoot: Workers cleaned up.
[05/May/2014:17:34:58 +0200] - import userRoot: Cleaning up producer thread...
[05/May/2014:17:34:58 +0200] - import userRoot: Indexing complete.  
Post-processing...
[05/May/2014:17:34:58 +0200] - import userRoot: Generating numSubordinates 
complete.
[05/May/2014:17:34:58 +0200] - import userRoot: Flushing caches...
[05/May/2014:17:34:58 +0200] - import userRoot: Closing files...
[05/May/2014:17:34:59 +0200] - import userRoot: Import complete.  Processed 
62931 entries (1 were skipped) in 18 seconds. (3496.17 entries/sec)

No idea why the "skipped entry", the root DSE existed at the time of the import 
and so there was a parent.

> The documentation on this page covers the initialization of a replica by ldif 
> :
> https://access.redhat.com/site/documentation/en-US/Red_Hat_Directory_Server/8.2/html/Administration_Guide/Managing_Replication-Initializing_Consumers.html

Those were the docs that I followed.

Regards,
Graham
--

--
389 users mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/389-users

Reply via email to