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

Re: Write changed immediately to disk



On Monday 18 February 2008 09:37:11 ml@bortal.de wrote:
> Hi,
>
> Howard Chu schrieb:
> > ml@bortal.de wrote:
> >> Hello List,
> >>
> >> what settings do i need to write my ldap changes (almost) immedialtely
> >> to disk?
> >> I do not need much of performance but would rather have a higher
> >> security.
> >
> > That is the default behavior for slapd, no other settings are needed.
>
> In my case i add a samba user to my ldap DB, then after 15 seconds i
> reset that box by pressing the reset button.
> After the box has rebootet the added user is not there anymore.

If you are using ldbm, there are no guarantees of anything. If you are using 
bdb on OpenLDAP 2.2 and you don't run database recovery after a reboot (or 
unclean shutdown of slapd) and before starting slapd, you could lose some 
data (as slapd in 2.2 doesn't do automatic database recovery, the operations 
in the transaction logs could be lost). The fix for this is to ensure the 
init script runs database recovery before starting slapd, or upgrading to 
2.3.

But, this is why it would have been useful if you provided at least *some* 
information on what version your are using, and what backend.

Regards,
Buchan