Resize your VPS storage Print

  • 21

Some OS templates of our budget VPS SSD KVM hosting come with smaller predefined storage allocation even though you've requested 15G or more.

You may find your VPS is only has 2GB of space, but this is easy to fix.

Check to see current size:
[root@vps-kvm ~]# df -h /
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1       2.0G  1.5G  334M  82% /

But fdisk -l shows 16G:
[root@vps-kvm ~]# fdisk -l

Disk /dev/vda: 16.1 GB, 16106127360 bytes, 31457280 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000dcb5c

To fix run the following command:
[root@vps-kvm ~]# resize2fs /dev/vda1

Then check again:
[root@vps-kvm ~]# df -h /
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1        14G 1010M   13G   8% /


Please don't hesitate to request help with this if needed.


Was this answer helpful?

« Back