Setup the domain level replication between Swarm clusters via Cloud Gateway. The requirements for the setup are:
| Source Swarm Cluster |
| Target Swarm Cluster |
Cluster name | scs-lab1.datacore.internal |
| scs-lab2.datacore.internal |
adminDomain | Lab1GatewayAdminDomain | ➠ |
|
Domain | objstor.cloud.datacore.internal | ➠ |
|
Gateway IP | 172.16.33.16 | ➠ | 172.16.34.16 |
Gateway IP | 172.16.33.17 | 172.16.34.17 |
The adminDomain (e.g., Lab1GatewayAdminDomain) for storage must be mirrored (replicated) to remote target Swarm cluster where clients will access the storage domain. This is mandatory so that the IDSYS, Policy, XFORM, authentication tokens, and other tracking information used to manage the storage domain are available in the Gateways running on the remote target Swarm cluster.
To replicate a domain from the source Swarm cluster to target (remote) Swarm cluster, the adminDomain is auto-created when the first gateway is initialized. Ensure that adminDomain is also replicated to remote the site and to enable client requests (read, write, delete) to be performed at the remote cluster.
# # Client communications and handling # [gateway] adminDomain = Lab1GatewayAdminDomain threads = 200 # multipartSpoolDir = /var/spool/cloudgateway
The adminDomain is located at SYSTEM TENENT.
Inside the SYSTEM TENENT, ensure that the adminDomain is replicated to the target remote cluster.
Refer to the following steps for domain-level replication setup:
Update
/etc/caringo/cloudgateway/gateway.cfg
on the gateway of remote Swarm cluster to enable it to accept replication from Source Swarm Gateway's IP Subnet.vi /etc/caringo/cloudgateway/gateway.cfg # Set the following if this Gateway is the target of a push-style replication feed. # See 'Replication Feeds' in the Swarm documentation for details. # allowSwarmAdminIP = list,of,node,ips -or- all allowSwarmAdminIP=172.16.33.0/24
Restart gateway service on the remote cluster.
Log in to the source Swarm cluster storage UI (http://172.16.33.16:91/_admin/storage).
Select Storage Management.
Navigate to Cluster > Feeds and then click +Add.
Select Replication Data Feed.
Provide the below details:
Name - Name of the domain to be replicated.
Include Domains - Add one or multiple domain URLs as required. The domain name is always set unique for each Swarm cluster to prevent replication collision.
Cluster Name - Name of the target cluster.
Gateway IP Addresses - IP addresses of the target gateway.
Remote admin username and password
Admin: dcadmin
Password: datacore
Click Save.