bh: doc/raw-howtos fix-ldap-database-on-slave.txt,NONE,1.1

cvs at intevation.de cvs at intevation.de
Tue May 17 18:33:54 CEST 2005


Author: bh

Update of /kolabrepository/doc/raw-howtos
In directory doto:/tmp/cvs-serv7329

Added Files:
	fix-ldap-database-on-slave.txt 
Log Message:
describe how to reinitialize the slave's ldap database


--- NEW FILE: fix-ldap-database-on-slave.txt ---
Fixing OpenLDAP's Database on the Slave
=======================================

When running Kolab with a multi-location setup, i.e. one master server
and one or more slave servers, it can happen that the slave's openldap
database becomes corrupted in some way so that it e.g. can't be
recovered with db_recover.  In such cases you can simply copy the
current database from the master server.

One way to do that is the following:

 - stop both master and slave ldap servers

 - on the slave: remove the contents of the directory
   /kolab/var/openldap/openldap-data

 - on the master: use slapcat to retrieve the contents of the ldap
   database

   /kolab/sbin/slapcat > slapcat-output

 - copy the slapcat-output to the slave

 - on the slave: use slapadd to initialize the ldap database:

   /kolab/sbin/slapadd < slapcat-output

 - start openldap again on both servers.





More information about the commits mailing list