Restoring the primary registry host

Restoring a primary registry host requires many of the same steps as configuring and promoting a backup registry host.

About this task

Because registry contents can change frequently, you cannot simply restart a failed registry host after you have been using a backup registry host. Use this procedure if you have switched to a backup registry host (rgy2 in this example) and want to restore rgy1 as primary registry host.
  1. When host rgy1 becomes available again, deactivate its registry server. Follow the procedures in Defining an HCL VersionVault registry host to reconfigure rgy1 to recognize rgy2 as the registry host.
  2. Make rgy1 a backup registry host in preparation for its promotion to primary registry host:
    1. Log on to rgy1. You must log on as root on Linux or on the UNIX system, or as a local Administrator on Windows®, to have privileges to change the host’s registry server status.
    2. On Linux or the UNIX system, edit the file rgy_svr.conf to remove the string master; then edit the file rgy_hosts.conf to change its first line to rgy2 and its second line to rgy1. On a Windows® host, Click Start > Settings > Control Panel, and then start the VersionVault program. Click the Registry page of the VersionVault program. Click Use registry server on host. Enter rgy2 in the Use registry server on host field. On the Registry page, enter rgy1 in the Backup registry host field. Click OK or Apply.
    3. Stop HCL VersionVault.
    4. Restart HCL VersionVault.
  3. Run rgy_backup manually on rgy1. This updates the registry database on rgy1 with the contents of the registry database on rgy2.
  4. Run rgy_switchover. Make rgy1 the primary registry host. Make rgy2 the backup registry host by running the following command:
    rgy_switchover –backup rgy2 rgy2 rgy1 
  5. Handle unreachable clients. Follow the procedure in Promoting a backup registry host to primary registry host.