RHDS - Export is failing because of a database corruption.

Solution Verified - Updated -


An export of a database fails with the following message:

# db2ldif -Z <INSTANCE_NAME> -n <DATABASE_NAME> -a /var/tmp/export.ldif
Exported ldif file: /var/tmp/export.ldif
ldiffile: /var/tmp/export.ldif
[25/Oct/2018:19:09:42.996156979 +0300] - ERR - libdb - BDB0060 PANIC: fatal region error detected; run recovery
[25/Oct/2018:19:09:42.998164803 +0300] - CRIT - dblayer_start - Opening database environment (/var/lib/dirsrv/slapd-<INSTANCE_NAME>/db) failed. err=-30973: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
[25/Oct/2018:19:09:43.001848165 +0300] - ERR - ldbm_back_ldbm2ldif - db2ldif: Failed to init database
[25/Oct/2018:19:09:43.013269971 +0300] - INFO - dblayer_pre_close - All database threads now stopped


Red Hat Directory Server 11
Red Hat Enterprise Linux 8.x
Red Hat Directory Server 10
Red Hat Enterprise Linux 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content