Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem creating a replica server



Hey,

On 19 Dec 2007, at 05:45, Aaron Robinson wrote:

I'm still new to OS X server and am slowly making my way toward getting things setup. What I am trying to do is first Integrate AD/ OD and once that is setup, create an OD replica to ensure stability.

I have the AD/OD setup working fine. I used the various guides and it seems to work well. I've configured what I think is an OK setup on the OD master. Now I am trying to setup the OD replica. Unfortunately it doesn't seem to work. xserve2 has not been anything but a standalone server. I did join it to AD and at that point its role became "Connected to a directory system". I found one thread at http://www.afp548.com/forum/viewtopic.php?showtopic=9384 but I want to understand and don't want to just start blindly following instructions found through google.

So my question is this: Am I on the right track to OD master/ replica, and if so, how should I go about troubleshooting this? (remember I'm green)

Dec 18 13:00:16 xserve1 slapd[12632]: slapd shutdown: waiting for 0 threads to terminate\n
Dec 18 13:00:16 xserve1 slapd[12632]: bdb(dc=xserve1,dc=hadw,dc=com): Locker still has locks\n
Dec 18 13:00:16 xserve1 slapd[12632]: bdb_locker_id_free: 7 err Invalid argument(22)\n

This one looks somewhat weird .. the bdb is the database that is used to store the LDAP data. It looks like you can't cleanly shut down the database. Which kind of hits you later on.
Dec 18 13:01:01 xserve1 slapd[13110]: <= bdb_equality_candidates: (apple-computers) index_param failed (18)\n
Dec 18 13:01:01 xserve1 slapd[13110]: <= bdb_substring_candidates: (apple-mcxflags) index_param failed (18)\n
Dec 18 13:01:01 xserve1 slapd[13110]: <= bdb_equality_candidates: (apple-computers) index_param failed (18)\n
Dec 18 13:01:13 xserve1 slapd[13110]: <= bdb_equality_candidates: (apple-computers) index_param failed (18)\n
Dec 18 13:01:13 xserve1 slapd[13110]: <= bdb_substring_candidates: (apple-mcxflags) index_param failed (18)\n
Dec 18 13:01:13 xserve1 slapd[13110]: <= bdb_equality_candidates: (apple-computers) index_param failed (18)\n
Dec 18 13:07:52 xserve1 slapd[13110]: <= bdb_equality_candidates: (apple-computers) index_param failed (18)\n
Dec 18 13:07:52 xserve1 slapd[13110]: <= bdb_equality_candidates: (apple-computers) index_param failed (18)\n
Dec 18 13:10:28 xserve1 slapd[13110]: <= bdb_equality_candidates: (apple-computers) index_param failed (18)\n
Dec 18 13:10:29 xserve1 slapd[13110]: <= bdb_equality_candidates: (apple-computers) index_param failed (18)\n
Dec 18 13:10:40 xserve1 slapd[13110]: <= bdb_equality_candidates: (apple-computers) index_param failed (18)\n
Dec 18 13:10:40 xserve1 slapd[13110]: <= bdb_equality_candidates: (apple-computers) index_param failed (18)\n
Dec 18 13:20:53 xserve1 slapd[13110]: <= bdb_equality_candidates: (apple-computers) index_param failed (18)\n
Dec 18 13:21:06 xserve1 slapd[13110]: <= bdb_equality_candidates: (apple-computers) index_param failed (18)\n
Dec 18 13:21:06 xserve1 slapd[13110]: <= bdb_equality_candidates: (apple-computers) index_param failed (18)\n

These warnings are normal. It's just that Apple didn't index these entries. If you get too many timeouts you can try and add them to /etc/ openldap/slapd_macosxserver.conf (towards the end of the file are the pre-defined indexes). Don't forget to shutdown the ldap Database and do a 'slapindex' afterwards.


2007-12-18 13:00:34 -0800 - command: ssh email@hidden /usr/sbin/ slapconfig -addreplica 10.1.0.48
2007-12-18 13:00:36 -0800 - command: ssh email@hidden /usr/bin/ db_recover -h /var/db/openldap/openldap-data
2007-12-18 13:00:38 -0800 - command: ssh email@hidden /usr/sbin/ slapcat -l /var/db/openldap/openldap-data/backup.ldif
2007-12-18 13:00:41 -0800 - ssh command failed with status 255

Here is where your error happens. Try to execute the command ' /usr/ sbin/slapcat -l /var/db/openldap/openldap-data/backup.ldif' on your Master server and checkl for error messages. That might give you some more hints.


At least it looks your 'future' OD replica is not the cause for things.

I think your problem might be related to the 'bdb_locker_id_free' error. Do you see that every time?

If so it might be worth to do Archive, Demote, re-promote and Restore your OD master again. This should give you a clean database.

-- René

-----
Rene Schaetzl
IT Exorcist - Western Academy of Beijing
email@hidden



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden
References: 
 >Problem creating a replica server (From: Aaron Robinson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.