Knowledge base
1000 FAQs, 500 tutorials and instructional videos. Here, there are only solutions!
Increase a Volume on a Cloud VPS
This guide explains how to increase the storage capacity of your Cloud VPS after the plan change has been completed.
Introduction
- By default, the Cloud VPS comes with two volumes:
- 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.
- 1 volume for the operating system of your choice (
- Note: depending on the operating system installed, the system volume may be named
/dev/sda,/dev/sda1or/dev/vda; the same applies to the data volume/dev/sdb,/dev/sdb2or/dev/vdb. Therefore, you should replace these indications with those that correspond to your situation.
SSH commands to increase storage volume
If you choose XFS, for example, you need to install the appropriate tools (if they are not already installed):
sudo apt install xfsprogsThen, increase the volume using the following SSH commands:
sudo xfs_grow /dev/vdbAnd if you choose EXT4:
sudo resize2fs /dev/vdb
Expanding the volume after increasing storage space
Two scenarios may occur after you have expanded the storage volume of your Linux server. Note that no data is deleted when increasing the space by changing your VPS plan.
First scenario
If the entire volume is used without a partition, there is no need to perform a resizepart, as 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 that contains a partition (/dev/vdb1), you must first stop the processes that are using this volume, and then unmount the partition.
sudo umount /dev/vdb1
Next, you need to increase the size of the partition using parted, which has the resizepart command, unlike 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 increase the size of the system volume.
For Linux, Infomaniak provides 20 GB, which is sufficient for any Linux distribution.
For Windows, Infomaniak provides 100 GB on the C drive, which is sufficient for Windows. Applications should be installed on the D drive. If you have 50 GB, you can request 100 GB (contact Infomaniak support, specifying a time slot for the operation, as there will be a few minutes of downtime).
Link to this FAQ: https://faq.infomaniak.com/2507
Has this FAQ been helpful?