Creating a new domain by cloning a server

You can create a new replication domain by cloning a server and then converting the two HCL OneDB™ database servers to replication servers. Use cloning and conversion if you want to set up replication based on the data on a source server that is not yet running Enterprise Replication.

About this task

Because the source server does not have Enterprise Replication defined, you use the ifxclone utility to create a cluster containing a primary server and remote stand-alone (RS) secondary server. The conversion process converts the cluster to a pair of replication servers in a new domain.

Procedure

To create a new domain with two replication servers:
  1. On the source server, prepare the server environment for Enterprise Replication, such as configuring sqlhosts information and setting the necessary configuration parameters.
  2. On both servers, complete the ifxclone prerequisites for all servers, such as setting the required configuration parameters and environment variables.
  3. On the target server, complete the ifxclone prerequisites for an RS secondary server, such as creating all of the chunks that exist on the source server. You can use the --createchunkfile option (-k) of the ifxclone utility to automatically create cooked chunks on the target server.
  4. On the target server, run the ifxclone command with the --disposition=RSS option to clone the data and the configuration of the source server onto the target server. Do not include the --useLocal option.
  5. On the source server, run the cdr check sec2er command to determine if conversion to replication servers is possible.
  6. Solve any error conditions identified by the cdr check sec2er command and rerun it until its output indicates that conversion will be successful. You can also solve warning conditions.
  7. On the source server, run the cdr start sec2er command to convert both servers to replication servers and create a new replication domain.

What to do next

To add other servers to the domain, you can clone a replication server.