- User Guide
- Getting Started
- Attach an EVS Disk
- Attaching a Non-Shared Disk
Attaching a Non-Shared Disk¶
Scenarios¶
Separately created EVS disks are data disks. In the disk list, the function of such disks is displayed as Data disk, and the status is displayed as Available. In this case, you need to attach the data disks to servers for use.
A system disk must be created together with a server and is automatically attached. In the disk list, the function of such disks is displayed as System disk, and the status is displayed as In-use. After a system disk is detached, the disk function changes to Bootable disk, and the status changes to Available.
Note
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 details, see Attaching an Existing System Disk.
This section describes how to attach a non-shared disk.
Prerequisites¶
The non-shared disk status is Available.
Notes and Constraints¶
ECSs created from ISO images are only used for OS installation. They have limited functions and cannot have EVS disks attached.
A non-shared disk can only be attached to one server.
The disk and the server must be in the same region and AZ.
A disk can only be attached when the ECS status is Running or Stopped.
A frozen EVS disk cannot be attached.
Attaching the Disk on the EVS Console¶
Log in to the management console.
Click in the upper left corner and select a desired region and project.
Choose Storage > Elastic Volume Service.
The Elastic Volume Service page is displayed.
In the disk list, locate the disk and click Attach.
The Attach Disk dialog box is displayed.
Select a server and then select the disk function from the drop-down list. Ensure that the disk and the server are in the same AZ.
One device name can be used for one disk only. For how to obtain the disk name in the OS, see FAQ "How Do I Obtain My Disk Name in the ECS OS Using the Device Identifier Provided on the Console?" in the Elastic Cloud Server FAQs.
Click OK to go back to the disk list page. The status of the disk is Attaching, indicating that the disk is being attached to the server. When the disk status changes to In-use, the disk is successfully attached.
Initialize the disk.
After the disk has been attached, the disk can only be used after you have initialized it on the server. For details, see Initialize an EVS Data Disk.
Attaching the Disk on the ECS Console¶
Log in to the management console.
Click in the upper left corner and select a desired region and project.
Choose Compute > Elastic Cloud Server.
In the search box above the upper right corner of the ECS list, enter the ECS name, IP address, or ID to search for the ECS.
Click the name of the ECS.
The ECS details page is displayed.
Click the Disks tab. Then, click Attach Disk.
The Attach Disk page is displayed.
Select the target disk and specify it as the system disk or a data disk.
Note
If no disks are available, click Create Disk in the lower part of the list.
For the restrictions on attaching disks, see FAQ "What Are the Requirements for Attaching an EVS Disk to an ECS?" in the Elastic Cloud Server User Guide.
The device names for the local disks and EVS disks attached to a disk-intensive ECS comply with the following rules:
System disk: sda or vda
Local disk: the device names in alphabetical order following sda or vda
EVS disk: the device names in alphabetical order following those used by local disks
Click OK.
After the disk is attached, you can view information about it on the Disks tab.
Follow-Up Operations¶
If you are attaching a new disk, you must then log in to the server and initialize the disk before it can be used. To learn how to initialize disks, see Initialize an EVS Data Disk.
Helpful Links¶
If your disk cannot be attached to a server, see Why Can't I Attach My Disk to a Server?.
If the disk you are going to attach contains data, see Attaching an Existing EVS Disk.
If the attached data disk is not showing up, see Why Can't I View the Attached Data Disk on the Server?.