Skip to main content

Documentation Index

Fetch the complete documentation index at: https://help.onetsolutions.net/llms.txt

Use this file to discover all available pages before exploring further.

After upgrading your VPS storage, you need to extend the partition to use the additional space.
Prerequisites
  • A VPS with OnetSolutions
  • Increased disk size (via upgrade)
  • Root or sudo access
Always backup your data before modifying disk partitions.

Extension Steps

1

Identify disk and partition

List available disks and partitions:
lsblk
Note the device name (e.g., /dev/vda) and partition number (e.g., 1 for /dev/vda1).
2

Extend the partition

Use growpart to extend the partition:
sudo growpart /dev/vda 1
Replace /dev/vda and 1 with your actual device and partition number.
3

Verify partition extension

Run lsblk again to confirm the partition shows the increased size.
4

Resize the filesystem

Extend the filesystem to use the new space:
sudo resize2fs /dev/vda1
Replace /dev/vda1 with your actual partition.
5

Verify the changes

Check disk space usage:
df -h
Your partition should now show the increased size.

Installing Required Tools

The growpart tool extends the partition, while resize2fs or xfs_growfs extends the filesystem to use the new space.
If growpart is not installed:
sudo apt install cloud-guest-utils

Filesystem Commands

Most common Linux filesystem. Use resize2fs:
sudo resize2fs /dev/vda1
Default on CentOS/Rocky/Alma. Use xfs_growfs:
sudo xfs_growfs /dev/vda1
To check your filesystem type, run: df -Th