Luca Scamoni wrote:
Szuts Attila wrote:
On Fri, Dec 03, 2004 at 02:32:51PM +0100, Luca Scamoni <luca.scamoni@sys-net.it> wrote: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".
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.
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.
-- -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc Symas: Premier OpenSource Development and Support