All Products
Search
Document Center

Cloud Storage Gateway:Manage an iSCSI gateway in the CSG console

Last Updated:Dec 19, 2024

This topic describes how to create an Internet Small Computer System Interface (iSCSI) gateway, add a cache disk, and create an iSCSI volume in the Cloud Storage Gateway (CSG) console.

Prerequisites

  1. An Alibaba Cloud account is created and real-name verification for the account is complete. For more information, see Create an Alibaba Cloud account.

    Note

    We recommend that you log on to the CSG console as a RAM user. For more information, see Use RAM to implement account-based access control.

  2. CSG is activated.

    If CSG is not activated, follow the on-screen instructions in the CSG console to activate CSG.

  3. A virtual private cloud (VPC) is created in the region where you want to create the iSCSI gateway. For more information, see Create a VPC with an IPv4 CIDR block.

  4. An Elastic Compute Service (ECS) instance is created in the region where you want to create the iSCSI gateway and runs on the VPC. For more information about how to create an ECS instance, see Create an ECS instance.

    Note

    If your on-premises host is connected to a VPC over an Express Connect circuit, you can also perform the steps by using the host.

  5. An Object Storage Service (OSS) bucket is created. For more information, see Get started by using the OSS console.

    Important

    iSCSI gateways support only Standard and Infrequent Access (IA) OSS buckets. iSCSI gateways do not support OSS buckets for which back-to-origin routing is configured.

Create an iSCSI gateway

Add a cache disk

  1. On the Gateways page, click the ID of the iSCSI gateway. On the page that appears, click Caches > Create Cache.

  2. Specify cache disk specifications by using Cache Calculator or Custom Cache.

    Note
    • Capacity

      • The capacity of a cache disk for a Basic gateway ranges from 20 GB to 4,096 GB.

      • The capacity of a cache disk for a Standard gateway ranges from 20 GB to 8,192 GB.

      • The capacity of a cache disk for an Enhanced or Performance Optimized gateway ranges from 20 GB to 32,768 GB.

    • Type

      Select Ultra Disk, Standard SSD, or ESSD based on your business requirements.

    If you add a cache disk to a Subscription gateway, you are redirected to the cache disk purchase page. For more information, see Purchase a cache disk.

Create an iSCSI volume

  1. On the Gateways page, click the ID of the iSCSI gateway. On the page that appears, click Volumes > Create.

  2. In the wizard, configure the parameters described in the following table.

    Configuration example

    Step

    Parameter

    Description

    Bucket Settings

    OSS Endpoint

    Select an endpoint for the region in which the bucket is located.

    Bucket Name

    Specify the name of the bucket. An iSCSI gateway does not support a bucket in the Archive storage class or with a back-to-origin routing configuration.

    Use SSL to Connect Bucket

    If you select Yes, the bucket is connected over SSL.

    Basic Information

    Volume Name

    Specify a name for the volume. The name must be 1 to 32 characters in length, and can contain lowercase letters and digits. The name must start with a lowercase letter.

    Recover

    Select whether to recover a volume that uses the specified OSS bucket as backend storage. Valid values:

    • Yes: When the OSS bucket is used as a volume, the system attempts to recover the volume based on the metadata of the volume, such as the size of the volume.

    • No: The system uses the associated OSS bucket to create a volume.

    Capacity

    If you set Recover to No, you must set the Capacity parameter. The capacity must be greater than or equal to 1 GB and less than or equal to 256 TB.

    Mode

    The mode that the gateway uses to read and write files. Valid values:

    • Write Through Mode: In Write Through mode, data reads and writes are performed on the OSS bucket.

    • Cache Mode: In Cache mode, data reads and writes are preferentially performed in the on-premises cache disk. Generally, iSCSI gateways have better read and write performance in Cache mode.

    Cache

    If you set Mode to Cache Mode, you must select a cache disk.

    Note

    Make sure that you have added a cache disk to the iSCSI gateway. Otherwise, no cache disk is available.

    Storage Allocation Unit

    If you set Recover to No, you must set the Storage Allocation Unit parameter. The supported units are 8K, 16K, 32K, 64K, and 128K. The default unit is 32K.

    Authorization

    The one-way Challenge-Handshake Authentication Protocol (CHAP) authentication.

    If you select CHAP from the Authorization drop-down list, you must set the following parameters:

    • CHAP Username of Initiator: Enter a CHAP username.

    • CHAP Password of Initiator: Enter a CHAP password. The password must be 12 to 16 characters in length.

  3. Use the iSCSI volume. For more information, see Use iSCSI volumes.