Dear List, I set up two openldap servers in MirrorMode replication. I addeed a user in Master2 and it synced in Master1 but without userPassword. Digging into the problem I found a typo error in olcAccess for replicator user. I fixed the error and any new updates in Master2 get updated in Master1 including userPassword, but not syncing the previously replicated users. I tried running slapd with parameter -c "rid=000" but without success.
Please help me to full sync Master1 without recreating db.
TIA Santosh
02.10.2012 15:32, Santosh Kumar Gupta пишет:
Please help me to full sync Master1 without recreating db.
In my sole opinion, recreating the db is the most simple and reliable way. Just stop the server, rm the db and start the server again. 100Mb will be pulled in a moment. 1Gig in 1-2 minutes (the timing is with no indexes though). You may firewall incoming connections while syncing, or NAT them to another server.
On 10/02/2012 03:29 PM, Roman Rybalko wrote:
02.10.2012 15:32, Santosh Kumar Gupta пишет:
Please help me to full sync Master1 without recreating db.
In my sole opinion, recreating the db is the most simple and reliable way. Just stop the server, rm the db and start the server again. 100Mb will be pulled in a moment. 1Gig in 1-2 minutes (the timing is with no indexes though). You may firewall incoming connections while syncing, or NAT them to another server.
1 or 2 minutes may be worth one or two milion euros. If it's not that case, then you can do rm slave db and restart slave server. In our case '-c rid=00X' was helpful and did the trick.
Nerijus Kislauskas wrote:
1 or 2 minutes may be worth one or two milion euros. If it's not that case, then you can do rm slave db and restart slave server.
If a few minutes of downtime costs a million bucks in your deployment you should have a load-balancer in front of your LDAP service with a reliable health-check. Then taking down one of many replica servers is also not a big deal.
Ciao, Michael.
openldap-technical@openldap.org