In the left-side navigation pane, click iSCSI Volumes to go to the iSCSI Volumes page. You can create and delete a volume, enable and disable iSCSI, and configure CHAP for a volume on this page.
1、To create a volume, click in the upper-right corner.
2、Specify the volume name, capacity, cloud resource, whether to enable iSCSI, cache mode, and cache disk, and distribution unit.
3、After you enter the required information, click OK to create the volume.
Use Recovery Mode: If you select Yes and the corresponding OSS bucket is used as storage for the volume, the system attempts to use the metadata, such as the volume capacity, to restore the volume. If you select No, the system directly uses the corresponding OSS bucket to create a new volume.
Data Access Mode: The Cache mode allows read and write operations to use local cache disks first. The Write-through mode writes files to Alibaba Cloud OSS buckets and directly reads data from Alibaba Cloud. Typically, the Cache mode provides better read and write performance.
After the volume is created, it is displayed on the iSCSI Volumes page, as shown in the following figure:
You can click to the left of the Name column to view the volume attributes, as shown in the following figure:
1、After a volume is created, you can click to configure CHAP for the volume. The drop-down list includes two options: None and CHAP.
Note: Only one-way CHAP is supported.
2、Select None or CHAP, and then click OK.CHAP: The AccessKey Secret must be from 12 to 16 characters in length.
1、After a volume is configured, you can click to disable it. After the volume is disabled, you cannot use it.
2、Click OK to disable the volume, as shown in the following figure:
1、If a volume is disabled, you can click Enable in the Actions column to enable the volume, as shown in the following figure:
1、If you no longer need a volume, you can click to delete it.
2、Click -> to delete the volume, as shown in the following figure:
3、When you delete a volume, you can determine whether to delete the data stored in the OSS bucket. If you choose to delete the data stored in the OSS bucket, the volume information is deleted from the iSCSI Volumes page.
Note: If you delete a volume that has the Cache mode enabled, data stored in the cache disk is also deleted.
If the volume capacity cannot meet your requirements, you can expand the volume. You must stop all I/O activities before you expand the volume capacity. After you expand the volume capacity, scan the host to discover the resized volume. Click More in the Actions column and select Expand.
Note: You must specify a capacity larger than the current capacity.
After you expand the volume capacity, the new capacity is displayed in the Capacity column, as shown in the following figure:
When an error occurs with a volume, you can repair the volume. To repair a volume, click More in the Actions column and select Repair.