Atom Powers wrote:

(...)

Then put the db_recover command in your start-up script, and/or tune BDB so that it can survive a crash more easily.

Is it OK if I put "db_recover" before each slapd startup? I guess it should be avoided. In that case, how can I detect that the server crashed unexpectedly, and script "db_recover" run? Should I only look at existing "alock" file before starting slapd, and if it's there, assume something bad happened, and run "db_recover"?


But if you are experiencing unexpected crash/poweroff I'd say you have more serious issues than whether to use ldbm or bdb.

No, I just prefer to be safe than sorry, and do the things "right".


--
Tomasz Chmielewski
http://wpkg.org

Reply via email to