1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Enlarge a Volume on VPS Cloud
This guide explains how to increase the storage volume of your VPS Cloud once the change of offer has been made.
- 1 volume for the operating system of your choice (/dev/vda)
- 1 volume for storing your data (/dev/vdb), this is the one that will be increased
SSH commands to increase storage volume
If you choose XFS for example, it is necessary to install the appropriate tools (if they are not already present):
sudo apt install xfsprogs
Then increase the volume with the following SSH commands:
sudo xfs_grow /dev/vdb
And if you choose EXT4 :
sudo resize2fs /dev/vdb
Extend volume after increasing storage volume
Two scenarios can arise once you have extended the storage volume of your cloud server under Linux. Note that no data is deleted when increasing space by changing your unmanaged cloud plan.
First scenario
In the case where the whole volume is used without a partition, it is not necessary to do a resizepart, since there is no partition.
sudo umount /dev/vdb
sudo fsck.ext4 -f /dev/vdb
sudo resize2fs /dev/vdb
Second scenario
In the case of a volume which contains a partition (/dev/vdb1), it is necessary to start by stopping the processes which uses this volume then it is necessary to unmount the partition.
sudo umount /dev/vdb1
You must then increase the size of the partition with parted which has the command resizepart, which is not the case with fdisk .
sudo parted /dev/vdb
GNU Parted 3.2
Using /dev/vdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) resizepart 1 100%
(parted) quit
sudo fsck.ext4 -f /dev/vdb1
sudo resize2fs /dev/vdb1
What about the System volume?
It is not possible to enlarge the size of the system volume.
For Linux, we provide 20 GB, enough for any Linux distribution.
For Windows, we provide 100GB in C drive, enough for Windows. The applications must be installed on drive D. If you have 50 GB, you can request 100 GB by contacting our support (specifying a time slot for the operation because there are a few minutes of interruption to be expected).