docs
udisk
Operating Guide
Extend Cloud Disk
Single-partition data disk_Linux

Single Partition Data Disk_Linux

This operation example assumes that the data disk capacity is less than 2TiB. If the data disk capacity is more than 2TiB, please refer to the chapter "2TiB Disk Partition Expansion".
If only one partition has been assigned to the host before, and the ext3/4 file system is used, the expansion can be done as follows.

Note:

It is recommended not to partition the cloud disk on the cloud host to avoid affecting the expansion of the cloud disk.
Please confirm before the disk expansion operation. If there is data in the data disk, it is recommended that you back up the data first.
The cloud disk can only be expanded when it is in the available state. Because the cloud disk needs to be unloaded, it will interrupt your business, so please operate with caution.
</ WRAP>

Operation Instructions:

This example uses the fdisk command as a case. The parted command cannot be used interchangeably with the fdisk command.

In this example, the cloud disk mount point is /dev/vdb, please operate according to the actual situation. If you do not see the corresponding device, please check the cloud disk mounting information and status.

Specific operation:

Check the current mount situation, file system type, and partition situation.

`Note: The result of lsblk command shows that there is only one partition vdb1 under vdb, which is a single partition, which can be expanded according to the scheme described in this document. For other situations, please refer to the corresponding document for expansion.`

Unload the cloud disk in the operating system and console, see the section on unloading the cloud disk for detailed steps. Expand the cloud disk through the cloud disk console.

Mount the cloud disk in the console, see the section on mounting the cloud disk for detailed steps. After the mounting is complete, check the disk size in the operating system.

Use the fdisk command to delete the original partition and create a new partition.

`Note: Deleting a partition will not cause data loss in the data disk.`

Check the file system and expand it. Note: Under different file systems, the commands for checking and expanding are different. Please confirm your file system type and operate according to the corresponding operation steps.

ext4 file system

Perform e2fsck -f /dev/vdb1 and resize2fs /dev/vdb1 for inspection and expansion operations.

Use the mount command to re-mount the disk.

xfs file system

Run xfs_repair /dev/vdb1 to check the file system.

Use the mount command to re-mount the disk.

Run the xfs_growfs command to expand.

  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved