[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
problem recovering ldap database
- To: openldap-technical@openldap.org
- Subject: problem recovering ldap database
- From: deconya <elmailpersonal@gmail.com>
- Date: Sat, 11 Feb 2012 09:59:09 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=4vjq+AI5irp8/klzrvT0MDoDNlSg761rC9tW8hBX9Wo=; b=d2ic5GDiiy6+6Fat9E9tP+D/Ofid1bV7Qi6LCExi5zOnOtkGFtFYvyiK0dCfvKJZs+ p5sJLbCALwnFXegDfXR6x7WFcoskmgv91MkAUSLQW1WuM3m1V1PMgmQIp1IpAMS30Hbs vF/uH5dNxYAk8xaDb8QglI0c944kcw/TTUu4w=
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