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.
- 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 | 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:///- Delete the .mdb files from /var/symas/openldap-data/ on all servers.
- Import the ldif on the first producer:
slapadd -b -w -l export.ldif - Export the updated database to an ldif to be imported on all other servers:
slapcat -b -l export_final.ldif - Import the export_final ldif on other servers:
slapadd -b -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.