Create a cloud-based file gateway and configure file shares in the Cloud Storage Gateway (CSG) console to access OSS buckets through standard NFS or SMB protocols.
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.
NoteCreate a RAM user and log on to the CSG console as the RAM user.
CSG is activated. If CSG is not activated, follow the on-screen instructions in the CSG console to activate CSG.
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 on the VPC in the region where you want to create the file gateway.
NoteIf your on-premises host is connected to the VPC over an Express Connect circuit, the host can also be used to perform the steps.
An OSS bucket is created. For more information, see Get started with the OSS console.
ImportantFile 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
On the Gateways page of the CSG console, click Create.
In the Create Gateway wizard, configure parameters as described in the following table and retain default settings for other parameters.
In the Confirmation step, check the configuration information. If nothing is wrong, click Completed.
Attach a cache disk
On the Gateways page, click the ID of the gateway. On the page that appears, click .
Specify cache disk specifications by using Cache Calculator or Custom Cache settings.
Cache Calculator: Cache disk settings are automatically recommended based on your application requirements.
Custom Cache: You need to manually configure a cache disk type and capacity.
NoteCapacity
The supported capacity range of a cache disk varies with the gateway edition:
Basic: 40 GB to 4,096 GB
Standard: 40 GB to 8,192 GB
Enhanced or Performance Optimized: 40 GB to 32,768 GB
Type
Select Ultra Disk, Standard SSD, or ESSD. Select ESSD.
If you attach a cache disk to a subscription gateway, you are redirected to the cache disk purchase page.
Create a share
On the Gateways page, click the ID of the file gateway. On the page that appears, click .
In the Bucket Settings step, configure the parameters described in the following table.
In the Basic Information step, configure the parameters described in the following table.
(Optional) In the Advanced Settings step, configure the parameters described in the following table.
(Optional) In the Replication Mode Advanced Settings step, configure the parameters described in the following table.
In the Confirmation step, check the configuration information. If nothing is wrong, click Completed.
Access a share
After you create a share, access it from the client. For more information, see Access shares.