After a cloud disk is manually attached, the cloud disk is used as a data disk for the CVM and is in the offline state by default. You need to perform initialization operations on the data disk, such as formatting, partitioning, and creating a file system. Choose the initialization method based on your actual usage scenario:
- If the whole hard disk is only presented as an independent partition (that is, there are no multiple logical disks, such as disk D /vdb1 and disk E /vdb2), it is recommended that you do not use the partition but build the file system directly on the raw device.
- If the entire disk needs to be presented as multiple logical partitions (there are multiple logical disks), you need to first partition the disk and then build a file system on the partition.
Common disk partition forms include the Main Boot Record (MBR) and Global Partition Table (GPT). After the disk is put into use, switch the disk partition form to clear the original data on the disk. Therefore, a reasonable partition form should be selected according to actual needs.
The following table briefly describes the two partition formats.
| Partition Form | Maximum Disk Capacity Supported | Quantities of Partitions Supported | Partition Tools |
|---|---|---|---|
| MBR | 2TB | - 4 main partitions - 3 main partitions and 1 scale-out partition |
Windows operating system: disk management Linux operating system: - fdisk tool - parted tool |
| GPT | 18EB The current maximum cloud disk capacity supported is 16 TB. |
Do not limit the partition quantities. | Windows operating system: disk management Linux operating system: parted tool |
Select the appropriate operation guide according to the disk capacity and CVM operating system type:
- Disk capacity < 2 TB:
- Initializing Cloud Disks (Windows)
- Initializing Cloud Disks (Linux)
- Disk capacity ≥ 2 TB:
- Initializing Cloud Disks (Windows)
- Initializing Cloud Disks (Linux)