Manage file gateways
This topic describes how to create, delete, and rename file gateways 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.
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 file gateway
Go to the Gateway List page on the Cloud Storage Gateway console, and click Create.
On the configuration page, use the following settings to create a cloud-based file gateway. Keep the default values for any settings not mentioned.
Review your configuration on the summary page and click Finish.
Automatic deployment takes about 5 to 10 minutes. When the status changes to Running, the file gateway is activated and the deployment is complete.
The gateway creates a default share. If this share does not meet your needs, see Add a cache and Create a share to create a new one.
Related operations
On the Gateway List page, you can also perform the following operations.
|
Actions |
Description |
|
Delete a gateway |
Find the target file gateway and click Delete. Note
|
|
Rename a gateway |
Find the target file gateway and choose to rename the gateway. |
|
Switch to subscription |
After creating a pay-as-you-go gateway, you can switch its billing method to subscription. Choose and complete the purchase as needed. For more information, see Switch from pay-as-you-go to subscription. Important
Do not modify any configuration settings other than the billing cycle. |
|
Upload support data |
After creating the gateway, choose to upload gateway logs for troubleshooting. |
|
Purchase |
If you have an unpaid subscription gateway, choose to return to the purchase page and complete the payment. |
|
Change expiration policy |
For a subscription gateway, choose to change its expiration policy. For more information, see Change an expiration policy. |