Home  Deployment > Preparing the Database Environment > Appendixes > Backing Up and Restoring Monitor Administration Configuration Data > Replication



Replication

OpenLDAP provides replication services (see slurpd). You can use these services to maintain a cold-backup of all information on your primary server (the host machine) replicated to a secondary machine. You should consult with the Mercury Business Availability Center system administrator before using these services.

Replication workflow

This section contains the following topics:

Establishing Replication

The following procedure assumes that Mercury Business Availability Center is running on a primary machine that also has an LDAP server installed on it, and that a secondary machine is running the secondary LDAP server.

To establish a replicated OpenLDAP service:

  1. Stop Mercury Business Availability Center.
  2. Zip the openldap directory (<Mercury Business Availability Center server root directory>\openldap).
  3. Transfer the openldap.zip file to the secondary machine and unzip it.
  4. Add a registry entry as needed.
  5. For details on adding a registry entry (when running openldap as a service on a non-standard port), see Starting and Stopping OpenLDAP.

  6. Install the slapd service on the secondary LDAP server:

    cd c:\openldap

    slapd install

  7. Edit the slapd.conf file running on the primary LDAP server (located in the <Mercury Business Availability Center server root directory>\openldap directory) and add or uncomment the following lines:

    # Replication MASTER

    Replica uri=ldap://slaveHost:9389 binddn="E=SSEnterprise" bindmethod=simple credentials=fl1pp3r

    replogfile ./replicate.log

  8. Note: slaveHost is the name of the LDAP server running on the secondary machine.

  9. Edit the slapd.conf file running on the secondary LDAP server (located in the openldap directory) and add or uncomment the following line:

    #Replication SLAVE

    updatedn "E=SSEnterprise"

    updateref ldap://mercuryAMhostname:9389 minServer installation Change

  10. Note: mercuryAMhostname is the name of the Mercury Business Availability Center primary machine.

  11. Locate the file replica.log in the <Mercury Business Availability Center server root directory>\openldap directory on the primary machine. If one is not present, create the file.
  12. Install slurpd on the primary machine:

    cd c:\mercuryAM\openldap

    slurpd install

  13. Start Mercury Business Availability Center.
  14. Start the LDAP server running on the secondary machine.
  15. Verify that replication is successful:
    • Add a template container to the enterprise.
    • Connect to the secondary machine with an LDAP browser on port 9389, using the credentials: e=SSEnterprise password: fl1pp3r.
    • Verify that the template container you added is present in the LDAP server on the secondary machine. There should be an LDAP node on the LDAP server for the object you created.

Modifying the Nanny Supervisor Process for Replicated Environments

On Mercury Business Availability Center machines running both slapd and the slurpd replication service, you should modify the files which control the Nanny supervisor process.

To modify the files controlling the Nanny supervisor process:

  1. Modify the file <Mercury Business Availability Center server root directory>\openldap\openldap_service_recover.bat: add the following line:

    net start openldap-slurpd

  2. Create the batch file openldap_stop, add the following lines, and save it in the openldap directory:

    net stop openldap-slapd

    net stop openldap-slurpd

  3. Modify the file <Mercury Business Availability Center server root directory>\launch_service\dat\nanny\a_openldap.nanny: Change the stop_nt line to run the openldap_stop batch file, to stop the OpenLDAP services. For example,

    stop_nt="d:\MercuryAM/openldap/openldap_stop"




Copyright 2006 Mercury Interactive Corporation