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

Re: Database corruption on power down

ons, 2002-10-30 kl. 23:43 skrev Rohit Dewan:

> I am running OpenLDAP 2.1.6 on Linux. If the machine is power cycled
> while slapd is running, I can start slapd when the machine comes back
> up, but it is no longer accessible until I delete the database and start
> over. There must be a better way. What is the recommended procedure to
> recover from this scenario.

If you're running a BDB-based database (not ldbm) and if you installed
it yourself and if it's 4.x.x at least (limit of my knowledge), then
you'll have a number of BDB utilities. After a BDB install, you'll find
them in /usr/local/BerkeleyDB.4.x/bin. One is db_recover. Stop the slapd
service and run 'db_recover -c', reindex, look at the BDB permissions
carefully and restart the slapd service.

Assuming you compiled and installed it yourself, you'll have full html
docs in install_dir/docs. Read all of them carefully!




Tony Earnshaw

Could have been Henrik Ibsen's, Ole Bull's,
Henrik Wergelands's, Camilla Collet's and more's
last words, but weren't: «Fanden helder, helder
det at have sadset, end det at ikke have sadset
i det hele taget.»

e-post:		tonni@billy.demon.nl
www:		http://www.billy.demon.nl