Solve the problem that the tower panel still does not display the upgraded capacity after online expansion of Alibaba's Cloud Virtual Machine hard disk
I believe many people know that after Alibaba Yunyun's hard drive upgrade, it was discovered thatBaotaThe capacity still has not taken effect. The following is an operation tutorial.Be sure to take a snapshot backup before operating to avoid irreversible data loss.
First log in to Alibaba Cloud backend and choose to upgrade and expand your hard disk online.

After Alibaba Cloud upgraded, the following panels still have not changed to 60G hard drive capacity.

1. Install the expansion tool first
Install the growpart expansion formatting tool:
yum install cloud-utils-growpart xfsprogs -y
2. View disk information
Run the following command to view disk information:
fdisk -l
3. Expansion of zoning
Here, my disk is supposed to be [/dev/vda1], so I need to run the following command:
growpart /dev/vda 1
[Note: ] There are spaces after vda1, which are not consecutive.
4. File system expansion
Run the following command to extend the file system:
resize2fs /dev/vda1
[Note: ] At this time, vda1 is continuous with no spaces in the middle.
5. Finish and run the following command again:
df -h
Check the disk usage of the file system, as shown in the figure [/dev/vda1] has become [60G];
If you need annual technical operation and maintenance services, you can contact online customer service for consultation.
© Website copyright and disclaimer
1.[honmau Media] independently owns the copyright of all materials on relevant pages of this website;
2. No one is allowed to copy it without the express written permission of [honmau Media];
3. The articles that do not indicate "honmau Media" on this website are all from the Internet and are only for everyone to learn and refer;
4. If there is any infringement/violation/irregularity, please contact customer service QQ or email to delete it, please understand;
5.[honmau Media] reserves the right to correct, modify and update this statement at any time.legal notice