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

Re: [openldap2.1.12] corruption dB problem



first you should update openldap with a more stable version, today: 2.1.22, there are redhat rawhide packages that just need to be recompile , it includes berkey DB 4.1.25 to openldap (staticaly linked)
In that case, you end-up with a /usr/sbin/slapd_db_recover which allow the reconstruction of the database files.


now, with you version, you should be able to run db_recover in you database directory (as specified in slapd.conf , usually /var/lib/ldap with RH !)
run db_recover -V (capital V) to check the version of BDB, if it's the one slapd uses, then run it with -v in the database directory while slapd is not running, then it should start hopefully with no error.


Helene.Lastennet@alcatel.fr wrote:

Hy,

Does anyone have an idea what *"bdb_db_open: dbenv_open failed: DB_RUNRECOVERY: Fatal error, run database recovery (-30982)"* actualy mean ?
Thanks a lot
Helene


*More details concerning the traces:*
[root@VNHAPR01 libexec]# ./slapd -d 256 -h ldap://203.162.21.114:389
bdb_initialize: Sleepycat Software: Berkeley DB 4.1.24: (September 13, 2002)
bdb_db_init: Initializing BDB database
bdb_db_init: Initializing BDB database
bdb_db_init: Initializing BDB database
bdb(ou=CONTENT,o=alcatel,c=fr): fatal region error detected; run recovery
bdb_db_open: dbenv_open failed: DB_RUNRECOVERY: Fatal error, run database recovery (-30982)
backend_startup: bi_db_open(0) failed! (-30982)
bdb(ou=CONTENT,o=alcatel,c=fr): txn_checkpoint interface requires an environment
configured for the transaction subsystem
bdb_db_destroy: txn_checkpoint failed: Invalid argument (22)
slapd stopped.
connections_destroy: nothing to destroy.
[root@VNHAPR01 libexec]#


*Working Environment :*
Linux redhat 7.3
Berkley4.1.24
openldap2.1.12