LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to index an ldap database with shutting down or stoping the slapd? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-index-an-ldap-database-with-shutting-down-or-stoping-the-slapd-791677/)

progix.21 02-26-2010 03:42 AM

How to index an ldap database with shutting down or stoping the slapd?
 
Hi,

I am new to OpenLDAP. I want to index my openLDAP database without shutting down or stopping by slapd. Is there a way to do that.

I also have master - slave architecture setuped for the replication.

Looking forward for a quick response.

Srry about the title, it's "How to index an ldap database without shutting down or stoping the slapd?"

Thanks
- Progix

bathory 02-26-2010 04:52 AM

Hi,

I'm afraid that you have to stop/start slapd if you want to reindex the database.

Regards

progix.21 02-26-2010 05:04 AM

Production Environment
 
Hi,

I have the openLDAP on production environment and the services can't be taken down.

I have got an idea, please correct if I am wrong. Can we replicate the data on a slave using slurpd and then perform the indexing on slave (after disconnecting from master) and replaced the indexed database back to Master manually (I am not sure how to perform this action, but i assume it should be possible to do that).

Kindly suggest..

Regards,
Progix

bathory 02-26-2010 05:53 AM

You could do it, but what happens if the master's database was changed in the meantime?
If I were you, I would replicate the data on slave and then, on slave, do the whole procedure: change indexes, stop slapd, reindex, start slapd, just to have a time estimation of the whole thing.
So you can do the job on master at a time that will not affect your clients.
Or if you feel risky enough, you can use the slave to replicate the newly indexed data to master.

No need to mention that you should backup before anything else.

Regards

progix.21 02-26-2010 06:19 AM

Hey bathory,

Thanks for the reponse. I will keep the Risk Factors in mind before performing the task. Thanks for suggestion about the estimation of time.

Regards,
Progix


All times are GMT -5. The time now is 08:52 PM.