Skip to Content
VPS hosting

Extending the disk inside the system after increasing storage

When you increase storage from Editing a VPS or by moving to a larger plan, the virtual disk itself grows. But the operating system divides the disk into partitions, which hold file systems, and these may keep their old size until you extend them. This article explains how to check for this and extend them.

Before you start

Changing partitions is a sensitive operation. Take a snapshot or a backup first, and copy the commands exactly after matching the disk and partition names to what appears on your server.

Step 1: Has the new space appeared?

Reboot the server if you haven't done so since the increase, then run:

lsblk
df -hT /
  • lsblk shows the disk (such as vda or sda) with its total size, and the partitions under it (such as vda1).
  • df -hT / shows the size and type (ext4 or xfs) of the root file system.

Possible results:

  • The df size matches the new size: the system extended itself automatically at boot, and you don't need to do anything. This happens on many modern templates.
  • The disk shows the new size, but the partition or file system shows the old size: continue with the steps below.
  • The disk itself shows the old size: the increase hasn't been applied yet. Check that the change completed in History, reboot the server, and contact technical support if it stays the same.

Step 2: Extending on Linux

In this example, the disk is vda and the root partition is vda1. Replace them with what lsblk shows on your server.

Install the growpart tool if it isn't already installed:

apt install cloud-guest-utils      # Ubuntu / Debian
dnf install cloud-utils-growpart   # AlmaLinux / Rocky / Oracle / CentOS

Extend the partition to the end of the disk. Note the space between the disk name and the partition number:

growpart /dev/vda 1

If you see a NOCHANGE message, the partition already fills the whole disk.

Extend the file system according to its type in the df -hT / output:

resize2fs /dev/vda1

Verify with df -h /; it should show the new size. No reboot is needed.

Extending on Windows Server

Right-click the Start button and choose Disk Management.

The new space appears after the C: partition, labeled Unallocated. If it doesn't appear, choose Action → Rescan Disks.

Right-click the C: partition and choose Extend Volume, then complete the wizard with the default values.

If the Extend Volume option is grayed out, there is another partition between C: and the new space (usually the Recovery partition). Don't delete it before taking a backup, and contact technical support if you're not sure.

How is this guide?

On this page