You can only detach a system disk when the server status is Stopped.
If the file system on your system disk is damaged and the server cannot be started, you can detach the system disk and attach it to another server as a data disk. After the file system is fixed, you can re-attach the disk to the original server as the system disk.
If you no longer need a system disk or want to replace it with a new one, you can detach it.
For an attached system disk, the disk function is displayed as System disk, and the disk status is displayed as In-use in the disk list. After the system disk is detached, the disk function changes to Bootable disk, and the status changes to Available.
Bootable disks are the system disks detached from servers. A bootable disk can be re-attached to a server to be used as a system disk or data disk depending on the disk function selected.
For an attached data disk, the disk function is displayed as Data disk, and the disk status is displayed as In-use in the disk list. After the data disk is detached, the disk function remains unchanged, and the status changes to Available. For a shared disk, the status changes to Available only after it is detached from all its servers.
You can attach SCSI disks to BMSs and use them as data disks.
After a system disk is detached, some operations cannot be performed on the original server and the system disk. The restrictions are as follows:
Server: starting the server, remote login, resetting the password, changing server billing mode, changing server specifications, changing the OS, reinstalling the OS, creating images, creating backups, adding disks, changing the security group, and changing the VPC
Before detaching an EVS disk from a running Windows server, ensure that no programs are reading data from or writing data to the disk. Otherwise, data will be lost.
Before detaching an EVS disk from a running Linux server, you must log in to the server and run the umount command to cancel the association between the disk and the file system, and ensure that no programs are reading data from or writing data to the disk. Otherwise, you will not be able to detach the disk.
Click in the upper left corner and select the desired region and project.
Choose Storage > Elastic Volume Service.
The Elastic Volume Service page is displayed.
Choose a way to detach the disk by determining whether you want to check server information first.
If yes, perform the following procedure:
In the disk list, click the name of the to-be-detached disk.
The disk details page is displayed.
Click the Attachments tab to view the servers where the disk has been attached.
Click to select servers and click Detach Disk.
Shared EVS disks support batch detachment so that you can select multiple servers at a time.
The Detach Disk dialog box is displayed.
Click Yes to detach the disk.
If no, perform the following procedure:
In the disk list, locate the row that contains the target disk and choose More > Detach in the Operation column.
The Detach Disk dialog box is displayed.
Click to select servers.
Shared EVS disks support batch detachment so that you can select multiple servers at a time.
Click Yes to detach the disk.
In the disk list, the disk status is Detaching, indicating that the disk is being detached from the server.
If a shared disk has been attached to multiple servers and you only detach it from some of the servers, the disk status will go back to In-use after the disk has been detached from the servers. The disk status changes to Available only after the disk has been detached from all the servers.