This may not be the politically correct thing to say here, but, it is my
experience and YMMV.
BDB is very stable and reliable, once you get the right combination of
configuration figured out. There's lots of different things that need
to be set up to get BDB stable and many of them are less than obvious
in the installation process.
Running db_recover before EVERY startup is safe and, in my experience,
virtually necessary. If the shutdown was clean, db_recover will quickly
figure out that it doesn't have to do anything and move on.
Here is my DB_DONRIG file:
# In Memory Cache Size
set_cachesize 0 8388608 0
# Database Flags
#set_flags DB_TXN_NOSYNC # Don't immediately flush txn logs.
Dangerous
# Log Values
set_lg_regionmax 1048576
set_lg_max 10485760
set_lg_bsize 2097152
set_lg_dir /var/lib/ldap/bdb-logs
# Temporary file location
set_tmp_dir /tmp
Hope that helps.
Owen