This topic describes how to manage an iSCSI volume in the local gateway console. You can create, enable, disable, delete, repair, and extend an iSCSI volume. You can also configure CHAP authorization in the local gateway console.
- You have deployed the local block gateway console. For more information, see Deploy the local block gateway console.
- You have bound the cloud resources. For more information, see Bind a cloud resource.
- 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
- Open your browser, and in the address bar, enter
https://<IP address of the target block gateway>to connect to the local block gateway console.
- In the dialog box that appears, enter the username and password, and click OK.
- Select the ISCSI volumes tab, and click Create.
- In the Create iSCSI dialog box that appears, set the following parameters.
Parameter Description Name Specifies the name of the iSCSI volume that you want to create. The name must be 1 to 31 characters in length, and can contain letters and digits. Use Recovery Mode Specifies whether to restore a volume that uses the specified OSS bucket as backend storage. Valid values: Yes and No.
- Yes: uses the metadata such as the capacity of the specified volume to restore the volume.
- No: uses the specified OSS bucket to create a volume.
Capacity When you set Use Recovery Mode to No, you must set the Capacity parameter.
Valid values: 1 GB to 256 TB.
Cloud Resource Specifies the cloud resource that you have bound to the gateway. Enabled Specifies whether to enable the specified iSCSI volume.
You can set this parameter to No to disable the specified iSCSI volume.
Data Access Mode Specifies the mode that CSG uses to read and write files. Valid values: Write-through Mode and Cache Mode.
- Write-through Mode: writes files directly to an OSS bucket, and reads data directly from the bucket.
- Cache Mode: writes files to and reads files from a target local cache disk in priority. Typically, the Cache mode provides better read and write performance.
Cache When you set Data Access Mode to Cache Mode, you must specify a cache disk. Storage Allocation Unit When you set Use Recovery Mode to No, you must set the Storage Allocation Unit parameter. Valid values: 8 KB, 16 KB, 32 KB, 64 KB, and 128 KB. Default value: 32 KB.
Configure CHAP authorization
- On the ISCSI volume tab, find the target iSCSI volume, and click Settings.
- In the Configure CHAP authorization dialog box, complete the following configurations.
- Authorization Method: Select CHAP to configure CHAP.
- CHAP User Name: Specify a CHAP username.
- CHAP Password: Specify a CHAP password. The password must be 12 to 16 characters in length.
- Click Confirm.
Other supported operations
On the ISCSI volumes tab, you can also perform the following operations.
|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.
|Extend the iSCSI volume||If the iSCSI volume space is insufficient, you can choose
to extend the volume. |
The extended capacity must be larger than the original capacity.
Note To extend the iSCSI volume, you need to stop all I/O operations. After you extend the volume, you need to scan and discover the new extended space on the host.
|Disable an iSCSI volume||Find the target iSCSI volume, and choose
to temporarily disable the iSCSI volume. |
A disabled iSCSI volume cannot be used.
|Enable an iSCSI volume||Find the target iSCSI volume, and chooseto enable the SCSI volume.|
|Fix the iSCSI volume||If the iSCSI volume fails, chooseto repair the volume.|