Back
VPS

Resize the disk after an upgrade

After upgrading your Victus VPS plan the virtual disk grows, but Linux needs the partition and filesystem expanded to actually use the new space.

resize diskgrow partitiongrowpartresize2fsupgradedisk full

When you upgrade a Victus VPS plan, the underlying virtual disk is enlarged automatically. But the operating system still sees the old partition size until you grow the partition and expand the filesystem on top of it. This is a two-step process and is safe to run on a mounted, live root filesystem for ext4.

Confirm the plan upgrade first

The extra disk space only appears after the VPS has been rebooted following the plan change. Check the plan in the panel and reboot once before resizing inside the OS.

See what the OS currently thinks

bash
# Block devices and partition sizes
lsblk

# Mounted filesystem usage
df -h /

You will typically see the disk (e.g. vda) reporting the new larger size, while the partition (e.g. vda1) and / still show the old size. That gap is what you are reclaiming.

Grow the partition, then the filesystem

bash
# Install the tool if needed
apt update && apt install -y cloud-guest-utils

# 1. Grow partition 1 on /dev/vda (note the SPACE before the 1)
growpart /dev/vda 1

# 2a. Expand an ext4 filesystem
resize2fs /dev/vda1

# 2b. OR expand an XFS filesystem (uses mountpoint)
xfs_growfs /

# Verify
df -h /

Mind the space in growpart

The device and partition number are separate arguments: "growpart /dev/vda 1", not "growpart /dev/vda1". Getting this wrong is the most common mistake.

Not sure if it is ext4 or XFS?

Run findmnt -no FSTYPE / — use resize2fs for ext4/ext3, and xfs_growfs for xfs. LVM setups need an extra lvextend -r step; check lsblk for an lvm layer first.

No reboot needed

growpart and resize2fs work online on a running system. Once df -h shows the full size, the new space is immediately usable.

Related in VPS

First login over SSH (find your IP + root password)Locate your Victus VPS IP address and root password in the control panel, then connect over SSH from Windows, macOS or Linux for the first time.Reset the root passwordChange your Victus VPS root password from inside the machine, or reset it from the panel or rescue mode if you are locked out.Reinstall / rebuild the OSWipe your Victus VPS and reinstall a fresh Ubuntu template from the control panel, including how to back up first and what survives.Open firewall ports (ufw)Use ufw on your Victus Ubuntu VPS to open the ports your apps need — web, game and custom services — without locking yourself out of SSH.Cannot connect / SSH connection refusedDiagnose and fix the common reasons an SSH connection to your Victus VPS is refused, times out, or rejects your password/key.Create and restore snapshotsTake point-in-time snapshots of your Victus VPS before risky changes and roll back to them from the panel if something breaks.Boot into rescue modeBoot your Victus VPS into a rescue environment to repair a broken boot, fix fstab, reset the root password, or recover files when the OS will not start.Mount a custom ISOAttach and boot your Victus VPS from a custom ISO to install an operating system that is not offered as a stock template.IPv6 networking basicsUnderstand and configure the IPv6 address on your Victus VPS — find your address, test connectivity, and bind services to IPv6.Install a one-click appDeploy common software on your Victus VPS in minutes using the one-click app installer in the control panel.Check CPU/RAM/disk usageMonitor CPU, memory and disk usage on your Victus VPS from the panel graphs and with standard Linux commands to spot bottlenecks.Add a swap fileAdd a swap file to your Victus VPS to survive memory spikes and avoid the OOM killer when RAM is tight.