Hi
Im having a big problem with a database user for ldap and samba users. Without reason the database crashes with the error:
Feb 11 09:46:23 earth slapd[5395]: bdb(dc=esci,dc=es): file id2entry.bdb has LSN 26/7816674, past end of log at 26/1025642
Feb 11 09:46:23 earth slapd[5395]: bdb(dc=esci,dc=es): Commonly caused by moving a database from one database environment
Feb 11 09:46:23 earth slapd[5395]: bdb(dc=esci,dc=es): to another without clearing the database LSNs, or by removing all of
Feb 11 09:46:23 earth slapd[5395]: bdb(dc=esci,dc=es): the log files from a database environment
Feb 11 09:46:23 earth slapd[5395]: bdb(dc=esci,dc=es): /var/lib/ldap/id2entry.bdb: unexpected file type or format
Feb 11 09:46:23 earth slapd[5395]: hdb_db_open: database "dc=esci,dc=es": db_open(/var/lib/ldap/id2entry.bdb) failed: Invalid argument (22).
Feb 11 09:46:23 earth slapd[5395]: backend_startup_one: bi_db_open failed! (22)
Feb 11 09:46:23 earth slapd[5395]: bdb_db_close: database "dc=esci,dc=es": alock_close failed
Feb 11 09:46:23 earth slapd[5395]: slapd stopped.
And only I have backups from files, but this not works NEVER!!!!!!
How it's possible? How I can restore the database? I was looking for internet and only sais to recover from ldif file, How can be possible If I replace the files continues appearing the same error?
Any help will be appreciated
Best Regards