Create a share
This topic describes how to create a share in the Cloud Storage Gateway (CSG) console. After a share is created, you can mount the share on a local directory. This share is linked to an Object Storage Service (OSS) bucket, and any operations performed on the data within the share are applied directly to the corresponding data in the associated bucket.
Prerequisites
A file gateway is created and a cache is added.
An OSS Bucket is created.
ImportantA file gateway supports only OSS Buckets of the Standard, Infrequent Access (IA), and Archive storage classes. OSS Buckets with the back-to-source feature enabled are not supported.
Avoid connecting a gateway directly to an Archive OSS Bucket. If files will not be modified for a long time after being written, consider using a Standard or IA bucket. You can then use lifecycle rules to transition the storage class of the objects to Archive or Cold Archive. This approach is more cost-effective and efficient because it avoids unnecessary restore operations.
When a client writes a file to the gateway, the gateway records at least two actions: writing the file and setting the file's modification time. The gateway attempts to merge these actions, but may still initiate multiple operations on the OSS Bucket for a single file. Setting the modification time translates to modifying the object's metadata in the OSS Bucket by using the CopyObject API. For Archive or Cold Archive objects, this requires a time-consuming restore operation, which can slow down uploads and even cause write failures if the cache disk does not have enough space to upload the data in time.
Create a share
On the Gateway List page, find and click the target file gateway. Then, click the .
On the Bucket Settings page, configure the following parameters.
On the Basic Information page, configure the following parameters.
(Optional) On the Advanced Settings page, configure the following parameters.
(Optional) On the Advanced Settings for Replication Mode page, configure the following parameters.
Review your configuration on the summary page and click Finish.