View/extend/connect/delete a data disk
After a data disk is created, you can view the disk information, extend disk size, attach the disk to (or detach it from) a VCS instance, and delete the disk.
(※ System disk currently does not support the following management functions.)
For the differences between Tenant Admins and Tenant Users using VCS instance, please refer to User roles and permissions.
View data disks
View the ID, created time, name, size, type, state, description, attached VCS instance, and mount path of your data disk.
- TWSC Portal
- TWCC CLI
- Enter Data Disk Management page, then you can view the summary information of the disk.
- Click on one of your data disks and enter the Data Disk Details page, then you can view the detailed disk information.
- View the ID, name, created time, mount path, size, state and type of the disk.
twccli ls vds
Extend data disks
After the data disk is created, the capacity can be extended in the unmounted state.
- TWSC Portal
- TWCC CLI (Not yet supported)
Method 1:
- Enter the data 「Data Disk Management」 page, click the on the right side of the disk and click 「EXTEND」。
- Enter the extend size value, and click OK.
Method 2:
- Click your data disk, enter the 「Data Disk Details」 page, and click 「EXTEND」 next to the Size field.
- Enter the extend size value, and click OK.
- The data disk status must be
AVAILABLE
(unmounted) to expand capacity. - Modifying data on a disk carries a certain risk of data loss. Before modifying the disk, we recommend that you create a disk snapshot so that you can restore any changes later.
Attach to VCS instances
After a data disk is created, you need to attach it to a VCS instance and initialize it in the VCS instance before using it.
- TWSC Portal
- TWCC CLI (Not yet supported)
- The newly created data disk will appear at the top of the Data Disk Management list. When it enters the
AVAILABLE
state, you can attach it to an instance and use it.
- Click the list to enter Data Disk Details page, and click ATTACH.
- When Attach Disk window pops up, select the VCS instance you want to attach to and click OK.
The drop-down list only displays VCS instances that can be attached with data disks (in a state other than Stopped
).
- After the data disk is attached to the VCS instance, you can click REFRESH. The attached instance will be displayed in the section below, the disk will be in the
IN-USE
state.
- To change disk types or disk sizes, please refer to HowTo: Change data disk.
- After the data disk is attached to the VCS instance, you need to initialize it before using it. For the steps, please refer to:
- After you attach a disk to your instance, the mount path of the disk will show on the Data Disk Details page, and the path can be different from the path you see in your VCS instance. Please contact Technical Support when you find inconsistent paths of a disk.
Detach from a VCS instance
To delete a data disk or attach it to another VCS instance, please detach it from the original VCS instance before performing other operations.
For detailed steps of unmounting and detaching data disks, please refer to Detach a data disk.
Delete a data disk
You can delete a disk when it is no longer in use. Once deleted, it will not be billed anymore.
- Be careful before deleting the data disk. Once the disk is deleted, it cannot be recovered.
- If the state of the data disk is
IN-USE
, the disk must be detached from the VCS instance and enter theAVAILABLE
state first before it can be deleted. If the state of the data disk isRESERVED
, it means that this data disk is attached to a VCS instance, and the instance state isStopped
. Please start the VCS instance first before detaching or deleting the data disk. - When a snapshot of the data disk exists, the disk cannot be deleted. Please delete the disk snapshot before deleting the data disk.
- TWSC Portal
- TWCC CLI
- Enter Data Disk Management page > select the data disk(s) you want to delete > click DELETE at the top.
- Or click next to the data disk > click DELETE.
- Or enter Data Disk Details page> click DELETE at the top.
Command
twccli rm vds -id # Data disk ID
[-f] # Whether a force deletion
- The parameters in the square brackets [ ] are optional and the rest are required.
Examples
- Delete the data disk with ID
376749
.
twccli rm vds -id 376749
- Force to delete (without warning) the data disk with ID
376716
.
twccli rm vds -id 376749 -f