RHDS fails repeatedly to restore databases with the error "ERR - libdb - BDB1522 Log file corrupt at LSN:"
Issue
-
RHDS fails repeatedly to restore the database.
# dsctl -v <INSTANCE> bak2db /var/lib/dirsrv/slapd-<INSTANCE</bak/<BACKUP DIR> "~failed with the return code 3 and the error" "CRITICAL: bak2db failed" -
During restore, the following error is recorded in the errors log file.
[04/Oct/2024:13:20:22.912908122 +0900] - ERR - libdb - BDB1522 Log file corrupt at LSN: [1][2918295] [04/Oct/2024:13:20:22.913667361 +0900] - ERR - libdb - BDB0061 PANIC: Invalid argument [04/Oct/2024:13:20:22.959880669 +0900] - ERR - libdb - BDB1546 unable to join the environment [04/Oct/2024:13:20:23.016813512 +0900] - CRIT - bdb_start - Database Recovery Process FAILED. The database is not recoverable. err=-30973: Unexpected dbimpl error code [04/Oct/2024:13:20:23.017463316 +0900] - CRIT - bdb_start - Please make sure there is enough disk space for dbcache (1610612736 bytes) and db region files [04/Oct/2024:13:20:23.018132751 +0900] - ERR - bdb_restore - Failed to init database [04/Oct/2024:13:20:23.018479972 +0900] - ERR - ldbm_back_archive2ldbm - Failed to read backup file set. Either the directory specified doesn't exist, or it exists but doesn't contain a valid backup set, or file permissions prevent the server reading the backup set. error=-30973 (Unexpected dbimpl error code)
Environment
- Red Hat Directory Server 12
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.