On 05 May 2014, at 5:52 PM, David Boreham <david_list(a)boreham.org> 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_Serv...
Those were the docs that I followed.
Regards,
Graham
--