11.10. Making a Read-Only Replica Updatable

Making a read-only server writable means changing the replica from a dedicated consumer or a hub to a supplier.
  1. Make sure there are no updates in progress.
  2. Stop the supplier server.
  3. Open the Directory Server Console for the read-only replica.
  4. In the Configuration tab, select Replication. In the right pane, select the Enable changelog check box.
  5. Select the suffix, and, in the Replica Settings tab, change the replica role to a single master or multi-master.
  6. Assign a unique replica ID.
  7. Save the changes
  8. Stop the Directory Server instance:
    # systemctl stop dirsrv
  9. Back up the /etc/dirsrv/slapd-instance/dse.ldif file:
    # cp /etc/dirsrv/slapd-instance/dse.ldif /etc/dirsrv/slapd-instance/dse.ldif-1
    Do not name the backup file dse.ldif.bak. Directory Server uses this file name to keep a known working copy of the dse.ldif file.
  10. Edit the /etc/dirsrv/slapd-instance/dse.ldif file.
    1. Search for replication agreements. For example:
      dn: cn=replica,cn=dc\5c3Dexample\5c2Cdc\5c3Dcom,cn=mapping tree,cn=config
    2. Remove the line containing the nsState attribute from every replication agreement.
  11. Start the Directory Server instance:
    # systemctl start dirsrv.target
  12. Monitor the error log file for error messages. For details, see Section E.2.4, “Viewing Logs”.
    If the replication fails:
    1. Remove the changelog configuration: Section 11.13, “Removing the Changelog”.
    2. Restart the Directory Server and Admin Console:
      # systemctl restart dirsrv.target
      # systemctl restart dirsrv-admin.service
    3. Create replication agreements: Section 11.2, “Replication Scenarios”.