Importing registrations to the secondary cluster
After geo-replication is enabled, new registrations that you add to the primary cluster are not automatically replicated to the secondary cluster. You need to import such registrations manually.
Prerequisites
- Geo-replication is enabled, as described in Enabling geo-replication.
- One or more registrations are added to the primary cluster, as explained in Adding registrations.
To import a registration to the secondary cluster
-
On the primary cluster, find out the registration ID in the
uuid
field. For example:# vstorage-abgw-register list [ { "uuid": "68ae9bd1-ae34-4ff2-938b-cd576d9610a5", "type": "ABC", "description": "registration1", ... }, ... ]
-
Export the registration to a configuration file specifying the registration ID and the file name. For example:
# vstorage-abgw-register export -R "68ae9bd1-ae34-4ff2-938b-cd576d9610a5" -f registration1.txt
-
Move the configuration file from the primary cluster to the secondary cluster using the standard Linux command-line tool. For example, by using
scp
:# scp registration1.txt <secondary_cluster_IP_address>:/root/registration1.txt
-
On the secondary cluster, import the registration from the configuration file specifying the registration ID and the file name. For example:
# vstorage-abgw-register import -R "68ae9bd1-ae34-4ff2-938b-cd576d9610a5" -f registration1.txt
-
List all registrations to check that the registration is successfully imported. For example:
# vstorage-abgw-register list [ { "uuid": "68ae9bd1-ae34-4ff2-938b-cd576d9610a5", "type": "ABC", "description": "registration1", ... }, ... ]
-
Restart the Backup Gateway services on each node of the secondary backup storage cluster:
# systemctl restart vstorage-abgw.service