Convert Single-Master to Multi-Master Replication
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.
Stop Solserver/Slapd
sudo /opt/symas/etc/solserver stop Or sudo service solserver stop Or sudo systemctl stop solserver.service
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
Update the serverIDs on all Producer’s slapd.conf/slapd.d. They must be unique and follow the syntax:
serverID ### ldap://<server's FQDN>/
Delete the .mdb files from /var/symas/openldap-data/
on all servers. Import the ldif on the First Producer
slapadd -b <your-base-dn> -w -l export.ldif
Export the updated database to an ldif to be imported on all other servers
slapcat -b <your-base-dn> -l export_final.ldif
Import the export_final ldif on other servers
slapadd -b <your-base-dn> -l export_final.ldif
Start Solserver/Slapd
sudo /opt/symas/etc/solserver start Or sudo service solserver start Or sudo systemctl start solserver.service
For Delta-Syncrepl Only, perform a modification to the database on the primary Producer. This will trigger replication on all servers.