Howard Chu wrote:
Again, I had a bdb crash (no answer from ldapsearch) . I stoped slapd, ran db_recover within the database directory, now ldapsearch works fine, however the environement seems unavailable !?-----Original Message----- From: jehan procaccia [mailto:jehan.procaccia@int-evry.fr]
However, for my personnal understanding, have you an answer to:
Where is define "the environement", in each of the .bdb file ?
It starts with __db.001. Each numbered file contains a different piece of the
BDB environment.
db_recover resets it ?
Yes.
however environement files are present: [root@corbeau /var/lib/ldap/int] $ ls -al __db* -rw------- 1 ldap ldap 16384 Jul 24 14:23 __db.001 -rw------- 1 ldap ldap 10248192 Jul 24 14:23 __db.002 -rw------- 1 ldap ldap 270336 Jul 24 14:23 __db.003 -rw------- 1 ldap ldap 458752 Jul 24 14:23 __db.004 -rw------- 1 ldap ldap 16384 Jul 24 14:23 __db.005
When the database environement is opened ?
during slapadd and not at every slapd restart ?
All of the db_* tools and the slap* programs must open the environment to do their work. slapd/slapadd/slapcat/slapindex will create the environment if it does not exist.
-- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc Symas: Premier OpenSource Development and Support