Make sure to configure Fathom Replication server properties file with defer-agent-startup set to a valid (high enough) time-out value so that it can start "source" database prior to having the replication agent running on the "target" database.
- Run the following command to shut down the database:
proshut <source> -by
- Disable site replication on the source database. Command: proutil <source> -C disablesitereplication source.
- Run rfutil with the aimage end parameters to disable after imaging. This will disable after imaging and reinitialize counters:
rfutil <source> -C aimage end
- If the source database needed to be restored from a backup (for some reason like due to corruption), restore the database at this point in the process. If not go to step 5.
- If the source database was restored, take a backup of the database using probkup. If the backup of the database is done using Operating System commands (example: copy / cp) then use rfutil dbname -C mark backedup.
- Run the rfutil command with the aimage begin parameters to re-enable after imaging on the source database:
rfutil <source> -C aimage begin
- Delete the relevant <dbname>.repl.recovery file from both the source and target database directories.
- Run proutil to enable site replication on the source database:
proutil <source> -C enableSiteReplication source
- Make a backup of the database. Example: probkup dbname dbname.bak.
- Run the following command on the source machine to start the database and the replication server on the source database:
proserve <source> -DBService replserv
*Add any additional database parameters as needed.
- Restore the backup of the database taken in step 8 to the target machine. Once restored, this will become the target database.
- Run the proutil command to then enable site replication on the new target database:
proutil <target> -C enableSiteReplication target
- Run the proserve command with the -DBService replagent to start the replication agent on the target database:
proserve <target> -DBService replagent -S <service/port>
*Add any additional database parameters as needed.
- May need to run dsrutil <source> -C restart server at this point depending upon if time-out is reached.