LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-26-2010, 03:42 AM   #1
progix.21
LQ Newbie
 
Registered: Feb 2010
Posts: 3

Rep: Reputation: 0
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

Last edited by progix.21; 02-26-2010 at 03:45 AM.
 
Old 02-26-2010, 04:52 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,736

Rep: Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585
Hi,

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

Regards
 
Old 02-26-2010, 05:04 AM   #3
progix.21
LQ Newbie
 
Registered: Feb 2010
Posts: 3

Original Poster
Rep: Reputation: 0
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
 
Old 02-26-2010, 05:53 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,736

Rep: Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585
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
 
Old 02-26-2010, 06:19 AM   #5
progix.21
LQ Newbie
 
Registered: Feb 2010
Posts: 3

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LDAP: ldapsearch can't return more than 500 results; Also, can't find slapd.conf mattseanbachman Linux - General 9 04-05-2013 01:41 AM
Setting up LDAP on RHEL4 with Webmin - slapd will not start. AoiShikaku Red Hat 7 12-15-2008 01:31 AM
Slapd database error xkape Linux - Server 0 01-07-2008 07:12 AM
Database doesn't shutdown during shutting down the server shipon_97 Linux - Enterprise 0 08-11-2007 11:12 AM
LDAP: slapd is not listening! jjge Linux - Software 6 01-10-2004 10:02 AM


All times are GMT -5. The time now is 02:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration