Create, delete, and rename file gateways in the Cloud Storage Gateway (CSG) console.
Prerequisites
-
An Alibaba Cloud account is created and real-name verification for the account is complete. For more information, see Create an Alibaba Cloud account.
NoteWe recommend creating a RAM user and logging on to the CSG console as the RAM user for routine operations.
-
CSG is activated. If CSG is not activated, follow the on-screen instructions in the CSG console to activate it.
-
A virtual private cloud (VPC) is available in the region where you want to create the file gateway. For more information, see VPCs and vSwitches.
-
An ECS instance is created in the VPC where you want to deploy the file gateway.
NoteIf your on-premises host is connected to the VPC over an Express Connect circuit, you can use the host instead of an ECS instance.
-
An OSS bucket is created. For more information, see Get started with the OSS console.
Important-
File gateways support Standard, Infrequent Access (IA), and Archive OSS buckets. Buckets with mirroring-based back-to-origin are not supported.
-
Do not associate a gateway with an Archive bucket. Instead, store files in a Standard or IA bucket and configure a lifecycle rule to transition them to Archive or Cold Archive. This avoids unnecessary restoration operations.
-
When a client writes a file, the gateway calls CopyObject to store the file modification time as object metadata. For Archive or Cold Archive objects, CopyObject triggers restoration, which slows uploads and may cause upload failures.
-
Create a file gateway
-
Go to the Gateways page of the CSG console and click Create.
-
In the Create Gateway wizard, configure the parameters described in the following table and retain default settings for other parameters.
-
In the Confirmation step, verify the configuration and click Completed.
-
After the gateway is created, the system automatically deploys and starts the gateway. This process takes approximately 5 to 10 minutes. The gateway enters the Running state after successful activation and deployment.
-
The share configured during gateway creation is also created. To create a different share, see Attach a cache disk and Create a share.
Related operations
The Gateway List page also supports the following operations.
|
Operation |
Description |
|
Delete a gateway |
Locate the file gateway and click Delete. Note
|
|
Rename a gateway |
Locate the file gateway and choose to rename the gateway. |
|
Switch to a subscription |
After creating a pay-as-you-go gateway, switch its billing method to subscription. Choose and purchase as needed. For more information, see Switch from pay-as-you-go to subscription. Important
Do not modify any configuration information except for the billing cycle. |
|
Upload support data |
Choose to upload gateway logs for troubleshooting. |
|
Complete payment |
For a subscription gateway with pending payment, choose to return to the purchase page and complete the payment. |
|
Change expiration policy |
For a subscription gateway, choose to change the expiration policy. For more information, see Switch an expiration policy. |