All Products
Search
Document Center

Cloud Storage Gateway:Manage cloud resources

Last Updated:Dec 17, 2024

This topic describes how to manage cloud resources in the local file gateway console, including binding, unbinding, and speed tests.

Prerequisites

  1. You have deployed the local file gateway console. For more information, see Deploy an on-premises console for a file gateway.
  2. An Object Storage Service (OSS) bucket is created. For more information, see Create buckets.

    Note
    • CSG supports Standard, Infrequent Access (IA), and Archive OSS buckets.

    • If you request to read an archived file from a gateway for which the archive feature is disabled, a request to restore the file is initiated. If the file gateway uses a Network File System (NFS) share, no error is returned, but a certain level of I/O latency occurs. If the file gateway uses a Server Message Block (SMB) share, a short-lived error occurs, and the read operation is successful after the restoration process is complete.

    • When a client writes a file to a file gateway, the gateway records at least two actions: writing the file and setting the file modification time. The gateway merges the two actions where possible. However, the gateway may still initiate multiple operations on the object to the bucket where the object is stored. The CopyObject operation is called to store the file modification time as a piece of metadata of the object in the bucket. If the object is an Archive or Cold Archive object, this operation requires object restoration, which takes some time to complete. This increases the time required for object uploads and even causes upload failures if not enough time is left to upload data in the cache. We recommend that you do not connect a gateway to an Archive bucket. If files that are written from a file gateway to OSS are infrequently modified, we recommend that you store the files in a Standard or IA bucket first and configure a lifecycle rule that changes the storage class of the files to Archive or Cold Archive. This reduces unnecessary restoration operations and optimizes storage costs and efficiency.

Bind a cloud resource

  1. Open your browser, enter https://<IP address of the file gateway> in the address bar, and then press Enter.

  2. In the dialog box that appears, enter your username and password, and then click OK.

  3. On the Cloud Resources page, click Bind.
  4. In the Bind Cloud Resource dialog box, set the parameters. The following table describes the parameters.

    Parameter

    Description

    Resource Name

    Enter the name of the cloud resource that you want to bind.

    Cross-region Binding

    Set the parameter.

    • If you select Yes, you can access a bucket that resides in a different region from the specified gateway.

    • If you select No, you can access only a bucket that resides in the same region as the specified file gateway.

    Note

    The time zone of the on-premises file gateway must be the same as the time zone of the OSS bucket.

    Region

    Select a region where the bucket resides.

    Bucket Name

    Select a bucket that you want to bind to the file gateway.

    Use SSL

    If you select Yes, you can connect to the OSS bucket over SSL.

  5. Click OK.

Other supported operations

On the Cloud Resources page, you can also perform the following operations.

Operation Description
Unbind a cloud resource Find the target cloud resource and click Unbind.

After the cloud resource is unbound, its data is retained. You can access and delete the data in the Alibaba Cloud Object Storage Service (OOS) console.

Test a cache disk Find the target cloud resource and click Speed Test to test the upload and download speed of cloud resources.

What to do next