Recovering LDAP Data on Openexchange Server After a Database Error
Support knowledgebase (rsimai_slox_db_recover)
Applies to
Openexchange Server: Version 4
Symptom
The LDAP database no longer delivers data.
The attempts to retrieve data with ldapsearch -x or slapcat fail and the commands must be cancelled with CTRL+C.
At the same time, the responsible process slapd consumes approximately 100% of the CPU performance.
Cause
Single problems with the Berkeley db (bdb) in connection with the file systems reiserfs and ext3
have been reported. In these cases, the database file might also be faulty.
Solution
Repair the database.
- Finish all the LDAP processes
openexchange:~ # rcldap stop
openexchange:~ # killall -9 slapd
- Make a backup of the database directories
openexchange:~ # cp -a /var/lib/ldap /root/ldap-backup
- Start the recovery tool for the Berkeley db
openexchange:~ # db_recover -h /var/lib/ldap
- Restart LDAP
openexchange:~ # rcldap start
- Finally, you can use e.g. 'ldapsearch -x' to test if the LDAP server is delivering data again.
Keywords: OPENLDAP2, OPENEXCHANGESERVER, BERKELEY
Categories:
SuSE Linux IMAP Server
Feedback welcome: Send Mail to srsimai@suse.de (Please give the following subject: SDB-rsimai_slox_db_recover
)
SDB-rsimai_slox_db_recover, Copyright SuSE Linux AG, Nürnberg, Germany
- Version: 29. Jan 2003
SuSE Linux AG - Last generated: 19. Feb 2003 by rsimai (sdb_gen 1.40.0)