All Products
Search
Document Center

Cloud Storage Gateway:Manage iSCSI volumes

Last Updated:Sep 18, 2024

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

Prerequisites

  • An iSCSI gateway is created. For more information, see Create an iSCSI gateway.

  • If you need to create an iSCSI volume that has the Cache mode enabled, make sure that a cache disk is added to the iSCSI gateway. For more information, see Add a cache disk.

Note

If you want to create an iSCSI volume that has the Write-through mode enabled, you do not need to add a cache disk to the gateway.

Create an iSCSI volume

  1. Log on to the CSG console.

  2. Select the region where the iSCSI gateway resides.

  3. In the left-side navigation pane, click Gateways. On the page that appears, click the iSCSI gateway ID to open the Volumes page.

  4. Click Volumes in the left-side navigation pane, and then click Create in the upper-right corner.

  5. In the Bucket Settings step, configure the parameters and click Next. The following table describes the parameters.

    Parameter

    Description

    Cross-region Binding

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

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

    Note

    If you select a public endpoint of the specified bucket, you may be charged for download traffic.

    OSS Endpoint

    The endpoint of the region in which the bucket is located.

    Use SSL to Connect Bucket

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

  6. In the Basic Information step, configure the parameters and click Next. The following table describes the parameters.

    Parameter

    Description

    Volume Name

    The name of the iSCSI volume. The name must be 1 to 31 characters in length, and can contain letters and digits.

    Recover

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

    • Yes: When the associated 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 configure the Capacity parameter.

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

    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 preferentially 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.

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

    • To add a cache disk to an iSCSI gateway, see Add disks.

    • To add a cache disk to an on-premises gateway, see Add disks.

    Storage Allocation Unit

    If you set Recover to No, you must set the Storage Allocation Unit parameter. Valid values: 8K, 16K, 32K, 64K, and 128K. Default value: 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.

  7. In the Confirmation step, verify your settings and click OK.

Related 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.

Warning

If you select the Delete data in the OSS buckets at the same time check box, all data stored in the OSS bucket will be deleted after the iSCSI 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