此内容没有您所选择的语言版本。
Chapter 3. Configure Disaster Recovery using Geo-replication
Geo-replication is used to synchronize data from one Red Hat Gluster Storage cluster to another. Synchronizing the local data volume from your discrete Red Hat Hyperconverged Infrastructure (RHHI) cluster to a central data center on a regular basis helps ensure you can restore your cluster to a working state after an outage.
When used in conjunction with Red Hat Hyperconverged Infrastructure, geo-replication for disaster recovery is supported only as a method of backing up data. Failover (promoting a slave volume) and failback (syncing to a restored master volume) are not supported for the Red Hat Hyperconverged Infrastructure use case.
3.1. Configuring geo-replication for disaster recovery 复制链接链接已复制到粘贴板!
3.1.1. Before you begin 复制链接链接已复制到粘贴板!
Prepare a remote backup volume to hold the geo-replicated copy of your local volume.
Ensure that the local volume you want to back up has shared storage enabled. Run the following command on the master node to enable shared storage:
gluster volume set all cluster.enable-shared-storage enable
# gluster volume set all cluster.enable-shared-storage enable
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Ensure that your remote backup volume has sharding enabled. Enable sharding by running the following command on any of the nodes that host the remote backup volume:
gluster volume set VOLNAME features.shard enable
# gluster volume set VOLNAME features.shard enable
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
3.1.2. Configuring a geo-replication session 复制链接链接已复制到粘贴板!
Create (but do not start) the geo-replication session
From any master node, create (but do not start) a geo-replication session from a local volume to the remote backup volume.
See the Red Hat Gluster Storage 3.3 Administration Guide for details: https://access.redhat.com/documentation/en-us/red_hat_gluster_storage/3.3/html/administration_guide/sect-Preparing_to_Deploy_Geo-replication#Setting_Up_the_Environment_for_Geo-replication_Session
3.1.3. Configuring synchronization schedule 复制链接链接已复制到粘贴板!
Verify that geo-replication is configured
In Red Hat Virtualization Manager for the master node, click the Volumes tab.
Check the Info column for the geo-replication icon. If present, a geo-replication session is configured for that volume.
- In the Storage Domain tab, select the storage domain to back up.
Click the Remote Data Sync Setup sub-tab
The Setup Remote Data Synchronization window opens.
- In the Geo-replicated to field, select the backup destination.
In the Recurrence field, select a recurrence interval type.
Valid values are WEEKLY with at least one weekday checkbox selected, or DAILY.
In the Hours and Minutes field, specify the time to start synchronizing.
NoteThis time is based on the Hosted Engine’s timezone.
- Click OK.
- Check the Events pane at the time you specified to verify that synchronization works correctly.
3.1.4. Deleting synchronization schedule 复制链接链接已复制到粘贴板!
- In the Storage Domain tab, select the storage domain to back up.
Click the Remote Data Sync Setup sub-tab
The Setup Remote Data Synchronization window opens.
- In the Recurrence field, select a recurrence interval type of NONE.
- Click OK.
(Optional) Remove the geo-replication session
Run the following command from the geo-replication master node:
gluster volume geo-replication MASTER_VOL SLAVE_HOST::SLAVE_VOL delete
# gluster volume geo-replication MASTER_VOL SLAVE_HOST::SLAVE_VOL delete
Copy to Clipboard Copied! Toggle word wrap Toggle overflow You can also run this command with the
reset-sync-time
parameter. For further information about this parameter and geo-replication in general, see the Red Hat Gluster Storage Administration Guide: https://access.redhat.com/documentation/en-us/red_hat_gluster_storage/3.3/html/administration_guide/chap-managing_geo-replication.