[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: OpenLDAP power failure crash



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Samuel Tran wrote:
> On Thu, 2005-06-30 at 23:18 +0200, Enric Font wrote:

Samuel, this is really the only information you need for a complete answer:

>>database        bdb
>>
>>
>>suffix          "dc=xarxa3,dc=org"
>>
>>
>>rootdn "cn=admin,dc=xarxa3,dc=org"
>>rootpw XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
>>
>>directory       "/var/lib/ldap"
>>
> 
> What version of Berkeley DB are you using?

How is this relevant?

> Your version of OpenLDAP is pretty old; you should definitely upgrade to
> at least 2.2.26.

Upgrading to 2.2.26 won't fix this problem (although it is still a good
idea for other reasons).

Eric, you should ensure that database recovery is run at startup,
otherwise you may lose transactions which are in the transaction log files.

On some distributions this is done for you for each database by default,
on others you need to enable it (check the init script if necessary), on
others you have to take care of this yourself.

You would run:
db_recover -h /var/lib/ldap

However, ensure that you use the right version of db_recover (that
matches the Berkeley DB version your OpenLDAP is built against). On the
distributions that include support for database recovery at startup,
they will know which db_recover to use anyway ...

Regards,
Buchan

- --
Buchan Milne                      Senior Support Technician
Obsidian Systems                  http://www.obsidian.co.za
B.Eng          RHCE (803004789010797),LPIC-1 (LPI000074592)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCxO34rJK6UGDSBKcRAs14AJsH8SjHBR9mOU/9pMFVBLn+tS3ecQCfRHQ6
M43B6B/qBGdeNNkGEItbDXI=
=PiIb
-----END PGP SIGNATURE-----