Resize your VPS storage

Some KVM OS templates 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.
  • 21 Users Found This Useful
Was this answer helpful?

Related Articles

How do I manage my VPS Server?

We provide you with a very simple interface for controlling your VPS hosting with unmetered...

How to install MySQL

Here is a step by step how to install MySQL and secure it for your unlimited bandwidth VPS. You...

How to Install Apache2 and PHP5 on Ubuntu

Installing Apache2 and PHP5 is super simple on Ubuntu: # apt-get install apache2# apt-get...

How to Install MySQL on Ubuntu

Learn how to install MySQL on your DDoS protected dedicated server or DDoS protected VPS if...

Installing Node.js on CentOs 5

Installing node.js on a cheap VPS with unlimited bandwidth is pretty simple. For more information...