If I shouldn't be running it manually, does this mean that it's a bug in slapd (OpenLDAP v2.3)? It was slapd that went into an infinite loop and could not recover. Or it is a problem with my version of BDB? When I saw that slapcat2.3 seemed to hang when recovering the database (after I'd shut down slapd), I decided to use db_recover (I wasn't aware of slapd2.3_db_recover, which seems to be made for OpenLDAP v2.3.
--On Tuesday, November 15, 2005 10:54 AM -0800 Rik Herrinwrote:
>> OpenLDAP 2.3 *automatically* recovers the database. By running
db_recover
>> manually in addition to the slapd startup doing it, you are likely
>> corrupting your database.
Please keep replies to the list.
> Actually, I ran db_recover after stopping slapd and after I noticed that
> slapcat was trying to recover the database but entering an infinite loop
> instead. Since I know the db directories, should I try to replace
> slapd_db_revover2.3 with db_recover in ldap2.3 instead of is
> slapd_db_recover2.3 of any use?
The point here is, you should not be running db_recover at all. OpenLDAP
2.3.11 does this for you automatically anytime the database needs it. I
suggest you don't use any instance of db_recover at all. It sounds like
slapcat might have a bug in how it recovers the database after you ran
db_recover manually.
In any case, just stop using any form of db_recover. It isn't necessary in
the majority of use cases. And you really shouldn't db_recover before
running slapcat.
--Quanah
--
Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html