This topic describes how to manage iSCSI volumes in the Cloud Storage Gateway console, including how to create, modify, delete, and view iSCSI volumes.

Prerequisites

  1. You have created a block gateway. For more information, see Create a block gateway.
  2. You have added a cache disk to the block gateway. For more information, see Add a cache disk.

    If you need to create an iSCSI volume that has the Cache mode enabled, you must add a cache disk to the block gateway first.

Create an iSCSI volume

  1. Log on to the CSG console.
  2. Select the region where you want to create a block gateway.
  3. On the Gateway Clusters page, find and click the target block gateway.
  4. Click Volumes and click Create in the upper-right corner.
  5. On the Bucket Setting tab, set the following parameters, and click Next.
    Parameter Description
    Allow Cross-region Bucket
    • Yes: specifies that you can access the bucket that stays in the different region from the specified gateway.
    • No: specifies that you can access only the bucket that stays in the same region as the specified gateway.
    Note If you select an Internet endpoint of the target bucket to bind your cloud resource to the block gateway, you may be charged for external download traffic.
    Bucket Endpoint Specifies the endpoint of an existing bucket.
    Connect to Bucket over SSL Specifies whether to connect to a bucket over SSL. Valid values: Yes and No.
  6. On the Basic Information page, set the following parameters and click Next.
    Parameter Description
    iSCSI Volume Name Specify a name for the volume. The name can be up to 31 characters in length and can contain letters and digits.
    Recovery This parameter determines whether to recover the volume when the volume fails.
    • Yes: If you select Yes and the associated OSS bucket is used as a volume, then the system attempts to recover the volume based on the metadata of the volume, such as the size of the volume.
    • No: If you select No, the system uses the associated OSS bucket to create a new volume.
    Size When you set Recovery to No, you must specify the cache size.

    The cache size must be no less than 1 GB and no more than 262,144 GB.

    Mode You can select Cache Mode or Write Through Mode.
    • Write Through Mode: This mode writes files to Alibaba Cloud OSS buckets and directly reads data from Alibaba Cloud.
    • Cache Mode: This mode performs read and write operations on local cache disks first. Typically, the Cache mode provides better read and write performance.
    Cache When you set Mode to Cache Mode, you must select a cache disk.

    Make sure that you have added a cache disk to the block gateway. Otherwise, no cache disk is available.For more information about cache disks of block gateways deployed on Alibaba Cloud, see Add a cache disk.

    Allocation Unit When you set Recovery to No, you must set the Allocation Unit parameter. The default size is 32 KB. You can select 8 KB, 16 KB, 32 KB, 64 KB, or 128 KB.
    Authorization Method One-way CHAP authentication is supported.

    If you select CHAP, you must set the following parameters.

    • CHAP User Name: Specify a CHAP username.
    • CHAP Password: Specify a CHAP password. The password must be 12 to 16 characters in length.
  7. Click Next to go to the Summary tab, make sure that the specified information is correct, and then click OK.

Other supported operations

On the Volumes page, you can also perform the following operations.

Operation Description
Modify an iSCSI volume Find the target iSCSI volume and click Edit in the Actions column.
Delete an iSCSI volume Find the target iSCSI volume and click Delete in the Actions column.

When you delete an iSCSI volume, you can choose whether to delete the data stored in the associated OSS bucket at the same time.

Note
  • After you delete an iSCSI volume that has the Cache mode enabled, the corresponding cache disk is detached from the volume.
  • After you delete an iSCSI volume, all data stored in the volume is deleted. Proceed with caution.
View iSCSI volume information Find the target iSCSI volume and click the plus sign (+) to show the volume information. The volume information includes the operation status, total amount of downloaded data, IP address, capacity, port, whether CHAP is enabled, total amount of uploaded data, whether OSS bucket SSL is used, LUN ID, volume status, and whether the volume is enabled.

What to do next