How to re-initialize database on Red Hat Identity Management Server (IPA)
Issue
-
IPA replica server database was corrupted after unexpected reboot, due to which server was not starting up.
-
Following error found in
/var/log/dirsrv/slapd-Instance/errors.
[06/Apr/2016:16:34:05 +0200] - Detected Disorderly Shutdown last time Directory Server was running, recovering database.
[06/Apr/2016:16:34:05 +0200] - libdb: BDB0110 Log sequence error: page LSN 1215 7797247; previous LSN 1215 7806197
[06/Apr/2016:16:34:05 +0200] - libdb: BDB1520 Recovery function for LSN 1215 7811990 failed on forward pass
[06/Apr/2016:16:34:05 +0200] - libdb: BDB0061 PANIC: Invalid argument
[06/Apr/2016:16:34:05 +0200] - libdb: BDB1546 unable to join the environment
[06/Apr/2016:16:34:05 +0200] - Database Recovery Process FAILED. The database is not recoverable. err=-30973: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
[06/Apr/2016:16:34:05 +0200] - Please make sure there is enough disk space for dbcache (1342176 bytes) and db region files
[06/Apr/2016:16:34:05 +0200] - start: Failed to init database, err=-30973 BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
[06/Apr/2016:16:34:05 +0200] - Failed to start database plugin ldbm database
Environment
- Red Hat Enterprise Linux
- Red Hat Identity Management Server (IPA Replica Server)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.