• Contact Us
  • Home
  • Reference

Convert Single-Master to Multi-Master Replication

Written by Maryanne Normann

Updated at July 27th, 2024

  • Quick Start
  • Installation
    Best Practices Configuration Troubleshooting Design Performance Platform
  • Maintenance
    Releases Upgrade
  • Reference
+ More

Date: 17-01-2022

Note: A serverID of 000 (which is the default) is indicative of a single Producer. 

Note: The serverID is used to populate the "replica ID" field of all CSNs generated by the specified server.

  1. Stop Solserver/Slapd:
sudo /opt/symas/etc/solserver stop 
Or
sudo service solserver stop
Or
sudo systemctl stop solserver.service 
  1. Export the current database and modify the ContextCSNs in the resulting ldif with the new server ID:
slapcat -b <your-base-dn> | sed -E -e 
's/#[[:digit:]]{3}#000000$/#001#000000/g' > export.ldif 
  1. Update the serverIDs on all producer's slapd.conf/slapd.d. They must be unique and follow the syntax:
serverID        ###        ldap://<server's FQDN>/
  1. Delete the .mdb files from /var/symas/openldap-data/ on all servers.
  2. Import the ldif on the first producer:
slapadd -b <your-base-dn> -w -l export.ldif 
  1. Export the updated database to an ldif to be imported on all other servers:
slapcat -b <your-base-dn> -l export_final.ldif 
  1. Import the export_final ldif on other servers:
slapadd -b <your-base-dn> -l export_final.ldif 
  1. Start Solserver/Slapd:
sudo /opt/symas/etc/solserver start 
Or
sudo service solserver start
Or
sudo systemctl start solserver.service 
  1. For Delta-Syncrepl Only, perform a modification to the database on the primary producer. This will trigger replication on all servers.
Copyright © 2020-2024 Symas Corporation. All rights reserved.
multiple switch

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Using OpenLDAP with Airsonic Advanced
  • cn=monitor Reference
  • Common ldap Command Parameters
  • Common slapd Command Parameters
  • Symas Blog RSS Feed
  • Symas on Facebook
  • Symas on Twitter
  • Symas Blog
  • Symas on LinkedIn
  • Symas YouTube Channel

Copyright © 2023, Symas Corporation. All rights reserved. Privacy Statement (updated July 31, 2023)

Phone:

Main Office: +1.650.963.7601
Fax: +1.650.390.6284

Email:

Sales: sales@symas.com
Support: support@symas.com

Office Hours:

8:00 AM - 5:00 PM ET

Office Location:

Symas Corporation
PO Box 391
Grand Junction, CO 81507 USA

Expand