Ali cloud server _ubuntu ECS system disk expansion systems _

   Question: Ali cloud server space is not enough, resulting in abnormal redis service and mongo first thought is to log the server will be removed to free up some log space after the offline backup, but still not enough. The following figure, the disk has been used 91%. 

    Below only the expansion disk recording steps are as follows:

1. Log Ali cloud ECS server, "this example Disk" -> select "Disk expansion, to expand the input capacity payment ok. 

2. Log cloud server, install growpart expansion formatting tools

    apt install cloud-guest-utils

3. Check the kernel version of the server. 

   

     Server Core version is now 4.4.0. 
4. View the size of an existing disk

From FIG analysis, / dev / vda capacity of 60G, although the partition / dev / vda1 only 40G. 

5. Check the disk partition size

6. Call growpart disk capacity is needed for the first several partitions and the corresponding expansion

    It is a partition of the system disk expansion, i.e. the first partition in the above step

6. Call resize2fs file system expansion

Command, he said: as / dev system disk / vda1 partition file system expansion.

7. Reiterates view the partition size

 

Published 107 original articles · won praise 29 · views 180 000 +

Guess you like

Origin blog.csdn.net/zhangyingchengqi/article/details/103308258