Increase the storage of my VPS

When upgrading your offer, the VPS is automatically restarted in order to apply the new RAM and CPU values, concerning storage. You need to run some commands.

# Allows to display the partition to be increased
root@vxxx:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 40G 0 disk
├─sda1 8:1 0 100M 0 part /boot/efi
└─sda2 8:2 0 39.9G 0 part /

In this example the root is on /dev/sda2.

Therefore, it is necessary to increase this partition.

growpart /dev/sda 2 && resize2fs -p /dev/sda2

To manage your VPS, here is the support link.

Updated on 12 October 2022

Related Articles