If you’re facing the issue of being limited to 4GB of web space on your VPS after resetting your VPS, or perhaps another reason, do not despair. This guide will walk you through expanding your VPS server space.
1. Connect to your VPS
Open your SSH client and connect to your VPS server.
2. Resize the filesystem
Once you’re logged in, run the following command:
resize2fs /dev/vda1
3. Verify the new size
Wait for the process to complete (this may take several minutes), then verify the new disk size:
df -h
You should now see the full provisioned size of your VPS available to the root partition.