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

Re: BDB memory cache problem



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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?

BTW, IIRC, your original OpenLDAP packages that shipped with your
distribution *did* do this, erring on the side of safety ...

http://cvs.mandrakesoft.com/cgi-bin/cvsweb.cgi/SPECS/openldap/ldap.init?rev=1.11&content-type=text/x-cvsweb-markup

(in 10.1, recovery is only run in start(), not stop() and restart()).

And, IMHO, you shouldn't need to worry about running this on production
servers ... better to lose a bit on performance and be sure the DB comes
up correctly ...

|
| 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.
|
| Additional:
| I've always set checkpoint 10 2
| in slapd.conf. (I work with very small user data.)
|

Regards,
Buchan

- --
Buchan Milne                      Senior Support Technician
Obsidian Systems                  http://www.obsidian.co.za
B.Eng                                RHCE (803004789010797)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBsIbRrJK6UGDSBKcRAqp6AJwN1GGn1sSE77d/5duAKN3d7MKikgCgnHow
8GPLsG7Bn7yFjiyYa5p5YOE=
=1BW4
-----END PGP SIGNATURE-----