You can connect multiple on-premises Cloud Storage Gateway (CSG) agents to an Object Storage Service (OSS) bucket by using a file gateway. If data changes occur in the OSS bucket, you can use the express synchronization feature of CSG to synchronize these changes to the connected agents.
Prerequisites
- A file gateway is created and a cache disk is attached to it. For more information, see Create a file gateway and Attach a cache disk.
- An OSS bucket is created. For more information, see Create buckets.
- A Network File System (NFS) or Server Message Block (SMB) share is created and configured between the file gateway and OSS bucket. For more information, see Manage shares.
- Message Service (MNS) is activated and authorized. For more information, see Activate MNS and authorize RAM users to access MNS.
Background information
Express synchronization must be used in combination with MNS. If you enable express synchronization, you are charged for using MNS. For information about MNS billing, see Pricing.
Create a synchronization group
To enable express synchronization, you must create a synchronization group and add shares to the group. Data is synchronized by using these shares.
Manage a synchronization group
After you create a synchronization group, all data changes in the OSS bucket are automatically synchronized to the CSG agents that are mapped to the shares in the synchronization group. You can manage a synchronization group in the following ways:
- View the details of a synchronization group.
Go to the Sync Group List page, and click the synchronization group name in the Sync Group Name column or click Details in the Actions column.
In the Sync Group Details dialog box, you can view the details of the synchronization group. You can also click the List iconto view the details in a list, or click the Map icon
to view the details on a map. The Sync Group Details dialog box shows the basic information of the synchronization group and the shares in the group. You can also view the following information from the list.
Parameter Description Message Topic Name The name of the MNS topic that is used by the synchronization group. Shared Status The status of a share in the synchronization group. The share can be in the following states: - Full Data Sync Awaiting: indicates that the share is added to the synchronization group for the first time and is waiting for the initial full synchronization.
- Full Data Sync in Progress: indicates that the share is being used for the first time to synchronize full data from the OSS bucket.
- Sync Normal: indicates that the share is being used to synchronize data as expected.
- Express Sync Disabled: indicates that the express synchronization feature is disabled for the share.
- Message Queue Inaccessible: indicates that the queue that corresponds to the share cannot be accessed.
- Message Topic Inaccessible: indicates that the topic that corresponds to the share cannot be accessed.
- Message Queue and Topic Inaccessible: indicates that the queue and topic that correspond to the share cannot be accessed.
Message Queue Name The name of the MNS queue that is used by the synchronization group. - Add a share to or remove a share from a synchronization group.
Find the synchronization group and click Settings in the Actions column. In the Set Sync Group dialog box, add a share to or remove a share from the synchronization group. To add a share, follow the instructions in Step 6 in the Create a synchronization group section.
- Delete a synchronization group.
If you want to delete a synchronization group, find the group and click Delete in the Actions column. In the dialog box that appears, click OK.