After upgrading your VPS storage, you need to extend the partition to use the additional space.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.
Prerequisites
- A VPS with OnetSolutions
- Increased disk size (via upgrade)
- Root or sudo access
Extension Steps
Identify disk and partition
List available disks and partitions:Note the device name (e.g.,
/dev/vda) and partition number (e.g., 1 for /dev/vda1).Extend the partition
Use Replace
growpart to extend the partition:/dev/vda and 1 with your actual device and partition number.Resize the filesystem
Extend the filesystem to use the new space:Replace
/dev/vda1 with your actual partition.Installing Required Tools
The
growpart tool extends the partition, while resize2fs or xfs_growfs extends the filesystem to use the new space.growpart is not installed:
- Debian/Ubuntu
- CentOS/Rocky/Alma
Filesystem Commands
ext4 filesystem
ext4 filesystem
Most common Linux filesystem. Use
resize2fs:XFS filesystem
XFS filesystem
Default on CentOS/Rocky/Alma. Use
xfs_growfs:
