Updating geo-replication configuration

Once a year you need to renew the backup storage certificate. The certificate update changes the cluster configuration, which in turn requires updating the geo-replication configuration.

Prerequisites

To update the geo-replication configuration

Admin panel

  1. On the primary cluster, update the certificate, as described in Updating the certificate for backup storage.
  2. On the primary cluster, go to Storage services > Backup storage > Geo-replication. Click Download configuration file to download its new configuration to your local server.
  3. On the secondary cluster, go to Storage services > Backup storage > Geo-replication. Click the upload icon next to the Configuration file field to upload the new configuration to the secondary cluster.

Command-line interface

  1. On the primary cluster, update the certificate by using vinfra service backup cluster renew-certificates. For example:

    # vinfra service backup cluster renew-certificates --reg-account account@example.com \
    --reg-server https://cloud.acronis.com/ --stdin

    Specify the registration password when prompted.

  2. On the primary cluster, download its new configuration by running vinfra service backup geo-replication master download-configs. For example:

    # vinfra service backup geo-replication master download-configs --conf-file-path master_dc.conf
    
  3. Move the configuration file of the primary cluster to the secondary cluster using the standard Linux command-line tool. For example, by using scp:

    # scp master_dc.conf node005.vstoragedomain:/root/master_dc.conf

    Specify the node's root password when prompted.

  4. On the secondary cluster, upload the new configuration to the secondary cluster by running vinfra service backup geo-replication slave update-certificates. For example:

    # vinfra service backup geo-replication slave update-certificates \
    --dc-config-file primary_dc_updated.conf