Skip to content
VDS · Backups and disk

Disk is running out: how to increase it

What to do when disk space is insufficient: cleanup, moving data outside, or upgrading to a higher tier — and why you can’t shrink the disk back.

Updated August 23, 2026

Disk space on a VDS is tied to the tier: 40 GB on VDS-1 and up to 250 GB on VDS-6. You can't buy extra space separately — the size changes with the plan. Before paying more, check whether the space is actually taken up by data.

Step one: make sure the space is actually used

df -h /
sudo du -x -h -d1 / | sort -h | tail -10
docker system df
journalctl --disk-usage

Very often, logs, build cache and old images take up half the disk. For a detailed breakdown, see disk space. By freeing up 30-40 % with cleanup, you'll postpone the upgrade by several months.

Step two: move out what doesn't have to live here

  • Backups — they belong on another site, not on the same disk.
  • User-uploaded files — to S3 object storage; the application will serve links.
  • Archives and media — to a separate cheap storage with SFTP access.
  • Image registry — the most resource-hungry service, see your own registry.

Step three: upgrade to a higher tier

You upgrade the plan in the machine's control panel, and it only works upward. The surcharge is calculated for the remaining days of the paid period — you don't lose the money you've already paid.

From tierTo tierDisk becomes
VDS-1VDS-280 GB
VDS-2VDS-3120 GB
VDS-3VDS-4160 GB
VDS-4VDS-5200 GB
VDS-5VDS-6250 GB

Along with the disk, cores, memory and the write-speed cap grow — see disk speed.

Downgrading is not available: the disk doesn't shrink. You can shrink the file system, but not the virtual disk underneath it without risking data loss. So pick a tier with a year's headroom, not “just in case, two years ahead”.

After the upgrade

Usually the partition and file system expand automatically on boot. Check:

lsblk
df -h /

If lsblk shows a larger disk but df shows the old size, expand manually:

sudo growpart /dev/sda 1
sudo resize2fs /dev/sda1        # ext4
sudo xfs_growfs /               # xfs

For LVM layouts, the order is different:

sudo pvresize /dev/sda3
sudo lvextend -l +100%FREE /dev/mapper/vg-root
sudo resize2fs /dev/mapper/vg-root

For more details, see partitions and file systems. Expanding the file system is done on a mounted partition and doesn't touch the data, but a backup beforehand is still mandatory.

What to do if you're out of space right now

When the disk is completely full, some commands stop working: the system can't even write a temporary file. The order of actions:

journalctl --vacuum-size=100M
apt clean
docker builder prune -f
sudo truncate -s 0 /var/lib/docker/containers/*/*-json.log

This will free up a gigabyte or two and restore control. Then follow the steps above.

Common mistakes

  • You deleted files but the space didn't come back. A process is holding the deleted file open: sudo lsof +L1 and restart the service.
  • You upgraded a tier without figuring out the cause. A log leak will fill 250 GB too, just later.
  • You expanded the partition without a backup. A mistake in the partition number in growpart costs you all your data. Make a backup first.
  • You forgot about inodes. df -i: there's space, but you can't create files. Deleting piles of small files helps, not increasing the disk.