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

Re: server restart - lost data?

Shashank Agrawal wrote:
my server rebooted uncleanly due to power issue and i lost most of the data in
LDAP. I am using openldap on fedora box. I keep server up2date so i am running
latest version of openldap that fedora provides. i searched little bit on
internet and it seems that the data was cache and not written to the database,
and so i lost them. how do i recover the data

You should cd to your openldap directory and run the BDB utility db_recover before restarting slapd. See:


and what can i do to prevent this.

Several recent threads on this list recommend you add a step to run db_recover in your slapd startup script, because crashes happen.

Jon Roberts