[Date Prev][Date Next]
RE: openldap entries lost after reboot
Look up the db_checkpoint command for bdb. It can run in daemon mode or run
via something like cron.
PBG Middleware and Web Services
>[mailto:owner-openldap-software@OpenLDAP.org] On Behalf Of
>Enrico Ballarin Dolfin
>Sent: Friday, December 03, 2004 10:59 AM
>To: Howard Chu
>Subject: Re: openldap entries lost after reboot
>Am Freitag, 3. Dezember 2004 16:28 schrieben Sie:
>> Enrico Ballarin Dolfin wrote:
>> >Every time that we reboot our server (openldap2 2.2.6 on
>SuSE 9.1) the
>> > last 2 or 3 entries get lost.
>> >Our ldap server is at the moment very small: we have only
>> >The configuration of the backend database contains also these lines:
>> >database bdb
>> >checkpoint 1024 5
>> >cachesize 10000
>> >The checkpoint command should store in the database the
>> > every 5 minutes. This seems not to happen. The last 2 or 3
>> > lost after reboot, also if they has been entered 2 days before the
>> > reboot!
>> Checkpointing is only done during a write operation. After a write is
>> completed, the BDB library checks to see if it has been more than X
>> minutes since the last checkpoint. But it does not have a
>> that actually checkpoints every X minutes.
>We are writing new entries may be once every 2 days.
>How can I force BDB to save the entries in the cache (since the last
>checkpoint) before the server shutdown?