[Date Prev][Date Next]
Re: moving ldap-db via file-copying?
Am Samstag 08 November 2008 11:47:49 schrieb Silvana:
> On Sat, November 8, 2008 05:30, Dieter Kluenter wrote:
> > Hello,
> > It is quite likely that your database got corrupted somewhow, so
> > depending on the database definition you may try to recover the data
> > first. If you had defined 'database bdb' in slapd.conf you may try to
> > recover the database with the BerkeleyDB tool db_recover, if you had
> > defined database ldbm, you lost.
> ok, I`m really glad, because it is indeed bdb. i`ll try that first now,
> although i`ll first have to wrangle suse 10.0 to get said tool. I didn`t
> set up the server, i just have to deal with it now, and my suse-fu is not
> the strongest ;-)
You can find the db_recover tool in the "db-utils" RPM on the installation
> > To add a database to a new OpenLDAp instance the proper way is to dump
> > the old data to a file, using the tool slapcat(8) and slapadd(8) to
> > the new instance. As you presumably have built OpenLDAP with a newer
> > version of BerkeleyDB, just copying files is not appropriate.
> ok, i`l try that, too. thank you very much for the hints, i hope it helps.
> although i`m wondering, if the db got corrupted, shouldn`t ldap complain
> about it in the logs? as it is, after "rcldap start" the daemon is visible
> in ps -A, but is not responding. and in the logs it just says it is
> initialised, no complains or errors etc?
You are running a very old OpenLDAP release it seems. Newer Versions of
OpenLDAP (IIRC since some 2.3 release) can detect automatically recover in
many situation were a manual db_recover was needed in the past.