Detaching a Disk from an HECS
Scenarios
Detach an EVS disk from an HECS.
- Disks mounted on /dev/sda or /dev/vda function as system disks. Before detaching a system disk from an HECS, you must stop the HECS.
- Disks mounted on other mount points functions as data disks. In addition to detaching a data disk from a stopped HECS, a data disk can also be detached from a running HECS if the HECS OS supports online detachment.
This section describes how to detach a disk from a running HECS.
Constraints
- The disk must be mounted on a mount point other than /dev/sda or /dev/vda.
Disks mounted on /dev/sda or /dev/vda are system disks and cannot be detached from running HECSs.
- Before detaching an EVS disk from a running Windows HECS, make sure that VMware Tools has been installed on the HECS and is running properly.
For how to install VMTools, see Optimization Process.
- Before detaching an EVS disk from a running Windows HECS, ensure that no program is reading data from or writing data to the disk. Otherwise, data will be lost.
- SCSI EVS disks cannot be detached from running Windows HECSs.
- Before detaching an EVS disk from a running Linux HECS, you must log in to the HECS and run the umount command to cancel the association between the disk and the file system. In addition, ensure that no program is reading data from or writing data to the disk. Otherwise, the disk will fail to detach.
- The disk is not locked.
Precautions
- On a running Windows HECS, if the disk is not in the offline state, the system forcibly detaches the disk. If this occurs, the system may generate a xenvbd alarm. You can ignore this alarm.
To view the disk status, perform the following operations:
- Click Start in the task bar. In the displayed Start menu, right-click Computer and choose Manage from the shortcut menu.
The Server Manager page is displayed.
- In the navigation tree, choose Storage > Disk Management.
The disk list is displayed in the right pane.
- View the status of each disk.
- Click Start in the task bar. In the displayed Start menu, right-click Computer and choose Manage from the shortcut menu.
- Do not detach a disk from a running HECS that is being started, stopped, or restarted.
- Do not detach a disk from a running HECS whose OS does not support this feature. OSs supporting EVS disk detachment from a running HECS are listed in OSs Supporting EVS Disk Detachment from a Running HECS.
- For a running Linux HECS, the drive letter may be changed after an EVS disk is detached from it and then attached to it again. This is a normal case due to the drive letter allocation mechanism of the Linux system.
- For a running Linux HECS, the drive letter may be changed after an EVS disk is detached from it and the HECS is restarted. This is a normal case due to the drive letter allocation mechanism of the Linux system.
OSs Supporting EVS Disk Detachment from a Running HECS
- For the first part, see Formats and OSs Supported for External Image Files.
- For the second part, see Table 1.
Table 1 OSs supporting disk detachment from a running HECS OS
Version
CentOS
7.3 64-bit
7.2 64-bit
6.8 64-bit
6.7 64-bit
Debian
8.6.0 64-bit
8.5.0 64-bit
Fedora
25 64-bit
24 64-bit
SUSE
SUSE Linux Enterprise Server 12 SP2 64-bit
SUSE Linux Enterprise Server 12 SP1 64-bit
SUSE Linux Enterprise Server 11 SP4 64-bit
SUSE Linux Enterprise Server 12 64-bit
openSUSE
42.2 64-bit
42.1 64-bit
Oracle Linux Server release
7.3 64-bit
7.2 64-bit
6.8 64-bit
6.7 64-bit
Ubuntu Server
16.04 64-bit
14.04 64-bit
14.04.4 64-bit
Windows (SCSI EVS disks cannot be detached from a running HECS.)
Windows Server 2008 R2 Enterprise 64-bit
Windows Server 2012 R2 Standard 64-bit
Windows Server 2016 R2 Standard 64-bit
Red Hat Enterprise Linux
7.3 64-bit
6.8 64-bit
For HECSs running OSs not listed in the preceding table, stop the HECSs and then detach the disks to prevent any possible problems that may occur.
Procedure
- On the Hyper Elastic Cloud Server page, click the name of the target HECS. The HECS details page is displayed.
- Click the Disks tab. Locate the target disk and click Detach.
Last Article: Attaching a Disk to an HECS
Next Article: Expanding Disk Capacity
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.