Extend VPS disk space after an upgrade (Linux/Windows)
- 20.02.2026 00:57
-
- performance
- vps
When you upgrade your VPS plan (for example increasing disk size), the virtual disk becomes larger – but your operating system may still show the old partition size until you extend the partition and filesystem inside the VPS.
This article shows the typical steps for Linux and Windows. If you are not comfortable with disk operations, take a backup first.
Before you start
- Back up important data (snapshot/backup, or at least a copy of critical files).
- Confirm the VPS disk was upgraded in My.GARMTECH.
- Reboot the VPS if the OS does not detect the new disk size.
Linux: extend partition and filesystem
The exact commands depend on your partition layout. The most common setup is one main partition (e.g. /dev/vda1 or /dev/sda1).
1) Check current layout
lsblk
df -h
Identify:
- the disk device (for example
/dev/vda), - the partition number (for example
1), - the filesystem type (ext4 or xfs are common).
2) Grow the partition
If growpart is available:
sudo growpart /dev/vda 1
If growpart is not installed, install cloud-utils (package name depends on the distribution) or use your distribution’s partitioning tools.
3) Grow the filesystem
For ext4:
sudo resize2fs /dev/vda1
For XFS (run against the mount point, often /):
sudo xfs_growfs /
4) Verify
lsblk
df -h
If you use LVM
With LVM, the steps differ (PV resize + LV extend + filesystem resize). Use the layout from lsblk to confirm whether LVM is in use.
Windows: extend the volume
- Log in to the VPS via RDP.
- Open Disk Management (search for “Create and format hard disk partitions”).
- Right‑click the system volume (usually C:) → Extend Volume.
- Follow the wizard to use the unallocated space.
Note: “Extend Volume” may be disabled if the unallocated space is not adjacent to the partition. In that case, you may need a different partition layout approach.