Help & DocumentationCloud Block StorageCloud Disk Life CycleConnecting an Elastic Cloud Disk To A CVM

Connecting an Elastic Cloud Disk To A CVM

Last updated: 2019-08-06 16:00:23

PDF

A non-elastic cloud disk (a cloud disk whose lifecycle follows the CVM instance) is automatically connected to the created CVM instance when it is created, and cannot be changed. Meanwhile, you can manually mount the elastic cloud disk to any instance in the same availability zone. You can determine how many more cloud disks can be mounted on each instance during mounting. For more information on cloud disk quantity limits, please see Usage Constraints.

Connecting Elastic Cloud Disk to Instance via Console

The ordinary HDD cloud disk can be mounted as a data disk, but cannot be mounted as a system disk.

1) Log in to Tencent Cloud Console.

2) Enter CVM -> Cloud Disk tab.

3) On the cloud disk list page, click More -> Mount to CVM button next to the cloud disk in the status of To be Mounted and Support Mounting/Unmounting to mount a single cloud disk.
Or on the cloud disk list page, select the cloud disks in the status of To be Mounted and Support Mounting/Unmounting, and click the Mount button on the top to mount cloud disks in batch.

4) In the pop-up box, select the CVM on which to mount the cloud disk, and click OK. After the mounting is completed, you can log in to the CVM to view the cloud disk mounting status.

The mounted cloud disk cannot be used immediately. It requires a series of operations such as partitioning and formatting. For more information on how to perform the operations, please see Partitioning, Formatting, and File System Creation on Windows System and Partitioning, Formatting, Mounting and File System Creation on Linux System.

Solution to Problem of Some Created CVM Instances Unable to Identify Elastic Cloud Disk

All images available support the connection/unmounting of elastic cloud disks. Note: Perform "unmount" (Linux) or "offline" (Windows) operation before taking out (unmounting) the cloud disk, otherwise it may not be identified when remounting.

However, if you have purchased the following types of CVMs and plan to add elastic cloud disk to the CVM:

CVM OS Version
CentOS 5.11 64-bit
5.11 32-bit
5.8 64-bit
5.8 32-bit
Debian 6.0.3 32-bit
Ubuntu 10.04 64-bit
10.04 32-bit
OpenSuse 12.3 64-bit
12.3 32-bit

It is recommended that you add the driver to get the hot-plugging feature by running the following command in the instance before you purchase the elastic cloud disk:

modprobe acpiphp

In addition, after you shut down or reboot the CVM, you need to load the acpiphp driver module again. It is recommended that you set the acpiphp module to "load automatically when CVM starts up". The setting methods for various series are as follows:

CentOS 5 series

Run the following command to create a file:

vi /etc/sysconfig/modules/acpiphp.modules

And add the following content in the file:

 #!/bin/bash
 modprobe acpiphp >& /dev/null

Run the following command to add executable permissions. After the settings are completed, the script can be loaded when the CVM starts up:

chmod a+x /etc/sysconfig/modules/acpiphp.modules

Debian 6 series and Ubuntu 10.04 series

Run the following command to modify the file:

vi /etc/modules

Write the following:

acpiphp

OpenSUSE 12.3 series

Run the following command to modify the file:

vi /etc/sysconfig/kernel

Write the following:

MODULES_LOADED_ON_BOOT="acpiphp"