[Date Prev][Date Next]
Re: Write to Disk?
--On Friday, October 06, 2006 9:36 PM +0200 Dieter Kluenter
"Golden Butler" <firstname.lastname@example.org> writes:
Yesterday, we lost power due to an power outage and our openldap server
went down.Â When power was restored and the server was back up,:p>
I noticed that a lot of entries that I have entered over a period of time
(about two months) were gone!Â Is there a way to ensure that openldap
write changes to the database to disk instantly?Â Any help or
suggestions would be greatly appreciated, thanks.:p>
In general slapd writes to disk as soon as possible, depending on
pending read operations, that is, a delay of a few seconds my
occur. Not writing to disk for a few month seems to be quite odd.If
you use a bdb or hdb database you might try to recover the database
by means of db_recover.
In order to force slapd to write to disk you may define a checkpoint in
IIRC, it only flushes to disk when told to, which is either via the
checkpoint settings, or a *normal* slapd shutdown. Otherwise, it does not.
So his scenario makes perfect sense to me. Assuming the cache setting
holds the entire DB, I believe.
Principal Software Developer
ITS/Shared Application Services
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html