bolt Valebyte VPS from $4/mo — NVMe, 60s deploy.

Get a VPS arrow_forward

Expand Your VPS Server's Disk Space

calendar_month March 25, 2025 schedule 2 min read visibility 568 views
person
Valebyte Team
Expand Your VPS Server's Disk Space
summarize

TL;DR

  • Back up all data and secure administrator privileges before attempting to expand your VPS disk space.
  • Increase disk size in the hosting control panel, then run sudo reboot to apply the changes.
  • Verify the new disk capacity by executing the df -h command in the server terminal.
  • Use resize2fs for ext4 or xfs_growfs for XFS filesystems to expand the partition to the new limit.

Expanding Disk Space on a VPS Server

An illustration showing a full server disk icon next to a larger, empty disk icon with an arrow, symbolizing the expansion of VPS disk space. Sometimes your VPS hosting server might run out of disk space. This can happen due to a large amount of data, installed programs, or simply due to miscalculations during server planning. But don't worry, we have a solution! In this article, we'll show you how to expand disk space on your VPS server.

Before you start expanding disk space, you need to perform a few preparatory steps. First, make sure you have full administrator privileges on the server. Second, back up all important data so that you can restore the system if necessary. Only after completing these steps can you proceed to expand the disk space.

Step 1: Increasing the Disk Size

The first step to expanding disk space on a VPS server is to increase the disk size. To do this, go to your hosting provider's control panel and increase the disk size according to your needs. This is usually done with a few mouse clicks and takes only a few minutes.

After increasing the disk size, you need to reboot the server for the changes to take effect. To do this, simply execute the command sudo reboot in the terminal. After rebooting, check that the disk size has actually increased by entering the command df -h to view disk space information.

Need More Disk Space for Your VPS?

Is your project growing and demanding more room? Choose the perfect VPS plan to scale your server effortlessly. — from €4.49/mo.

Explore VPS Plans →

Step 2: Expanding the Partition

After increasing the disk size, you need to expand the partition so that the operating system can use the new space. You can use the resize2fs utility for ext2, ext3, and ext4 filesystems, or xfs_growfs for the XFS filesystem.

To expand the partition, execute the appropriate command in the terminal. For example, for an ext4 filesystem, it might look like this: sudo resize2fs /dev/sda1. Make sure you specify the correct disk and partition name, otherwise you may encounter unexpected problems.

rocket_launch Quick pick

Need a dedicated server?

Compare prices from top providers. Configure and order in minutes.

Browse dedicated servers arrow_forward

Conclusion

Now you have all the necessary knowledge to successfully expand disk space on your VPS server. By following our instructions, you can accomplish this task easily and quickly, without any hassle. We hope this article was helpful to you!

Need Maximum Performance and Storage?

For the most demanding projects where every millisecond and gigabyte counts. Discover the power of dedicated servers.

Find Your Server →
support_agent
Valebyte Support
Usually replies within minutes
Hi there!
Send us a message and we'll reply as soon as possible.