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 |
Hi,
I'm afraid that you have to stop/start slapd if you want to reindex the database. Regards |
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 |
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 |
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 09:03 AM. |