How to expand/add a cloud machine's hard disk

1.Select the machine to be operated through the customer backend for upgrade/downgrade operation. For specific operation methods, please refer to: Public cloud upgrade/downgrade operation: Public cloud upgrade/downgrade operation

2.For example: The current data disk is a solid-state drive (high efficiency) 100G, and its capacity is expanded from 100G to 3000G

3.Log in to the machine, currently taking centos7.9 system as an example
From the figure below, the data disk vdb has been expanded to 3T, but the mount point /home is still 100G
According to the file system format of the mount point, execute the command: xfs_growfs /home/, and check again that the expansion is complete.


Command usage scenario explanation:
Execute df -Th to check that xfs is the file system format of the mount point. Different formats require different commands.
xfs_growf   #Expanding the xfs file system
resize2fs     #Expanding the ext4 file system

4.The following are the references for adding a new hard disk to the cloud machine
Note: When adding a new hard disk, you can only add different types of hard disks. Hard disks of the same type can only be expanded, not added
As shown in the picture, add a 2000G solid-state hard drive, log in to the machine to mount it after payment 

5.Look at the figure below, you can see that the new hard disk vdc has been added and needs to be mounted

6.Create a mount point and execute the mount
mkdir /www   #Create a mount point 
mount /dev/vdc /www   #Mount the vdc disk to /www
vi /etc/fstab   #Set the boot-up automatic mount, and the writing format refers to the figure below

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Manual installation of the operating system on the public cloud

1.Log in to the raksmart backend and click on "Products & Services."   2.Enter the cloud...

To enable Google two-factor authentication in the public cloud

To ensure the security of user Rak Cloud management panel, Rak Cloud service panel supports...

How to build an internal network in the public cloud

To create an internal network for cloud virtual machines, ensure that the machines are on the...

How to enter rescue mode in public cloud

1. If the server's operating system cannot boot normally but you need to back up data, you can...

Operating the Public Cloud Snapshot/Backup Function

1.In the backend, go to "Product Services" and click on "Public Cloud." Find the desired product...