Create a cross-zone high-availability (HA) file gateway and configure a share on the Cloud Storage Gateway (CSG) console.
Prerequisites
You have registered an Alibaba Cloud account and completed identity verification.
NoteWe recommend using a Resource Access Management (RAM) account to perform operations on the Cloud Storage Gateway console.
The Cloud Storage Gateway service is activated. When you log on to the Cloud Storage Gateway console for the first time, follow the on-screen instructions to activate the service.
A VPC is available in the region where you want to create the file gateway.
An ECS instance is available to serve as a client and is associated with the created VPC.
NoteYou can also use an on-premises host if it is connected to the VPC through a dedicated connection.
-
An OSS bucket is created.
Important-
For the redundancy type, we recommend that you select zone-redundant storage (ZRS). ZRS ensures data access even if an availability zone becomes unavailable.
-
File gateways support only Standard, Infrequent Access (IA), and Archive storage classes for OSS buckets. Buckets that have back-to-origin routing enabled are not supported.
-
Do not connect a gateway directly to an Archive storage bucket. If files written to a gateway will not be modified for a long period, use a Standard or Infrequent Access bucket and apply lifecycle rules to transition the files to the Archive or Cold Archive storage class. This avoids unnecessary restoration operations and is more cost-effective.
-
When a client writes a file to a gateway, the gateway records at least two actions: writing the file and setting the modification time. The gateway tries to merge these actions but may still initiate multiple operations on the bucket object. Setting the modification time calls the CopyObject API to modify the object metadata. If the object is in the Archive or Cold Archive storage class, a time-consuming restoration is required, which slows uploads and can cause failures if the cache disk fills up.
-
Create a cross-zone high-availability file gateway
-
On the CSG console, go to the Gateways page and click Create.
-
On the Create Gateway page, configure the parameters as described in the following table. Use the default values for other parameters.
-
On the Confirmation tab, review your settings. If they are correct, click Complete.
Important-
Automatic deployment takes 5 to 10 minutes. When the gateway status changes to Healthy, the cross-zone high-availability file gateway is ready.
-
After the gateway is created, the system automatically creates a share and configures a virtual IP for the primary node. If this default share does not meet your needs, you can create a new one. For more information, see Add a cache and Create a share.
-
Add a cache
-
On the Gateways page, find and click the target gateway. Then, click .
-
Select a method to configure the cache.
-
Cache Calculator: The system recommends a cache size and type based on your business needs.
-
Custom Cache: Manually set the cache size and type to meet specific requirements.
Note-
Cache size
The supported cache disk capacity depends on the gateway edition:
-
Basic edition: 100 GB to 4,096 GB.
-
Standard edition: 100 GB to 8,192 GB.
-
Enhanced and Performance Optimized editions: 100 GB to 32,768 GB.
-
-
Cache type
Only ESSD are supported. The performance level (PL) can be PL1, PL2, or PL3. Select a PL based on your performance requirements. For more information, see ESSDs.
-
-
Create a share
-
On the Gateways page, find and click the target file gateway. Then, click .
-
On the Bucket Settings page, configure the following parameters and click Next.
-
On the Basic Information page, configure the following parameters and click Next.
-
On the Advanced Settings tab, configure the following parameters and click Next.
-
On the confirmation page, review the configuration information. If the information is correct, click Complete to create the share.
Access the share
After the share is created, you can access it from a client.