How to increase web usage space

I have a VPS where I have hestiacp installed, but I’m running out of space.

My provider does not allow increasing my current disk space.

What they do is create a new partition.

Is there a way that when I create that new partition I can mount the websites on that new partition, and have the hestiacp work on that new partition?

Yes. Mount the partition with directory /home

And do I have to copy the files again to the new partition home?

Yes. You will have to.
Currently the websites are under /home. If you mount a new partition to the same folder, the current contents of /home will disappear (not deleted). And you will have no access to it. So best to move the files to a backup folder. Then move it back after you mount it.

1 Like

I prefer to mount the new storage to a tempory location, such as /mnt, and use rsync to archive the current contents of the new mount point, /home, for example. The new volume can then be unmounted. After it has been successfully copied, I like to delete the contents of the new mount point to recover the space. The new volume can then be mounted. Be sure to update the fstab so that the new volume is mounted automatically at boot.

My approach is service affecting and will require completion during a maintenance window. I prefer to conduct such operations from a temporary live boot environment like GRML.

I use a different approach.

I mount the new drive as /home2

And then I move some users to home2 with a script.

Then I add a symlink from
/home/user1 to /home2/user1

Bear in mind this is not supported by hestiacp and before deleting an user you should move it back to the original folder.

2 Likes