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

RE: BDB Database problem



There really isn't enough debug statements to see what the problem might be, but often during these unexpected crashes, the issue is related to the state of the database, which can easily be fixed with db_recover.  Be sure your ldap directory is stopped and run db_recover -h {path_to_db_files}.

If that still doesn't work, you'll have to run OpenLDAP with more debugging information (-d -1 for the most debugging info).  

OpenLDAP 2.3 does some sanity checks at start that make the db_recover unnecessary.  I'd recommend breaking away from the Red Hat compiled OpenLDAP (and its dependancies) in favor of compiling your own from scratch.  If you need a good guide, I'd recommend http://www.stanford.edu/services/directory/openldap/.

-- DK


-----Original Message-----
From: owner-openldap-software@OpenLDAP.org on behalf of sandeep
Sent: Fri 12/9/2005 7:38 AM
To: OpenLDAP-software@OpenLDAP.org
Subject: BDB Database problem
 
Hi

My  BDB database have problem  and slapd is not running .
I had  a power failure before the last reboot.
is there any way to repair it ?

Your reply is very much important.

see the output:

[root@ncins1 ~]# /usr/sbin/slapd -u ldap -h "ldap:///"; -d 128
@(#) $OpenLDAP: slapd 2.2.13 (Aug 19 2004 21:22:15) $
        
root@porky.build.redhat.com:/usr/src/build/440386-i386/BUILD/openldap-2.2.13/openldap-2.2.13/build-servers/servers/slapd
bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December  3, 2003)
bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December  3, 2003)
bdb_db_init: Initializing BDB database


Thanks
 Sandeep