[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: BDB memory cache problem



Szuts Attila wrote:

On Fri, Dec 03, 2004 at 02:32:51PM +0100, Luca Scamoni <luca.scamoni@sys-net.it> wrote:


Do you run db_recover after system crash before starting OL?



Before starting OL?
My OL starts from /etc/init.d/slapd srcipt and never run db_recover.

Is it correct if I make a shell script that always run
db_recover on all BDB databases before OL starts?

There was discussion on devel list about it:
http://www.openldap.org/lists/openldap-devel/200309/msg00014.html
I've read it. It suggest: run db_recover before any slapd instance starts.


I'd run it only if last slapd shutdown was not clean (i.e.: slapd.pid exists while slapd process is dead). Without looking at the thread I believe the suggestion to be bit "strong".
Remember that running db_recover destroys the contents of the __db* files (that contain the cache and other db environment) and so should be done only if really needed.


Additional:
I've always set checkpoint 10 2
in slapd.conf. (I work with very small user data.)






SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497