All Products
Search
Document Center

Cloud Storage Gateway:OSS bucket storage classes for a file gateway

Last Updated:Apr 16, 2026

Cloud Storage Gateway (CSG) file gateways support Standard, Infrequent Access (IA), and Archive storage classes of OSS buckets, each with different behaviors for read and write operations.

Supported storage classes

CSG file gateways support the following OSS bucket storage classes:

  • Standard

  • Infrequent Access (IA)

  • Archive

Read behavior for archived files

When a read request targets an archived file, the gateway automatically starts a restore operation. The behavior differs by share protocol:

  • NFS shares: The request does not return an error but experiences I/O latency during restoration.

  • SMB shares: A temporary error may occur. The read operation succeeds after the file is restored.

Write behavior and archive limitations

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 these actions where possible but may still send multiple operations on the object to the bucket. Setting the modification time triggers a CopyObject operation to store the timestamp as object metadata. For Archive or Cold Archive objects, this operation requires restoration, which increases upload time and may cause upload failures if cache data cannot be uploaded in time.

Do not connect a gateway directly to an Archive or Cold Archive bucket. Instead, use a Standard or IA bucket and configure a lifecycle rule to transition objects to Archive or Cold Archive after they are written. This approach eliminates unnecessary restoration operations and optimizes both storage costs and efficiency.