Table of Contents
How can I resize an ext root partition at runtime? #
This may happen after upgrading your VPS, but the file system does not extend automatically.
run df -l
Take note of the main file system of the VPS
In my case its is
/dev/vda1
Run the following command to resize the file system
resize2fs /dev/vda1
Results:
Successful
Filesystem at /dev/vda1 is mounted on /; on-line resizing requiredold_desc_blocks = 3, new_desc_blocks = 7The filesystem on /dev/vda1 is now 12595200 blocks long.
Alternatively, you can use the following command.
growpart /dev/vda1 # To Grow the partition; note the space
resize2fs /dev/vda1 # To Grow the filesystem