[wellylug] OpenLDAP - aka slapd

Cliff Pratt enkidu at cliffp.com
Thu Apr 21 22:50:09 NZST 2005


Hi Glen,

I accidentally deleted this and had to resurrect it...8-(

Anyway.

I'm not sure now that it is a corruption. When we run 
db_recover on it, it fixes the problem. The problem being 
that LDAP stops responding and slapcat hangs. The DBA 
suggested that it might be a dead-lock problem so the next 
time it happens we will try db_deadlock first.

The man page for db_deadlock implies that it can be run 
safely at any time, and that it should preferably be run as 
a daemon. Do you do that?

I'm sticking with debian packages, but I've got a number of 
versions of OpenLDAP and bdb around. Not good, I know. I'll 
have to check the mix. How do you determine which version of 
bdb you have, by the way?

I'm setting up replication from the live master to a slave. 
I'll then take down the slave to do backups - taking down 
the master brings all sorts of problems with the 
applications, due, I think to them losing connectivity with 
the master.

Cheers,

Cliff

> Yes, many organisations do.  Yes, there are many tricks.
> 
> Openldap 2.1 and bdb don't mix.
> 
> I recommend using openldap 2.2.17 or above, I suggest you
 > get the openpkg version, as have found that the most
 > reliable one as you get the correct stuff and libraries
 > with it, which can make a huge difference to it's
> behaviour.
> 
> What sort of corruption are you gettings?
> 
> Cheers
> Glen Ogilvie
> 
> On Monday 18 April 2005 10:32 pm, Cliff Pratt wrote:
>> Does anyone use this for anything important? If so, is there
>> a trick to keeping it running without corrupting? It seems
>> that I only have to look at it funny and it goes belly-up!
>>
>> What's the secret?
>>
>> Cheers,
>>
>> Cliff





More information about the wellylug mailing list