I know some of you use Webmin/Virtualmin in cloud providers, like Vultr, DigitalOcean, etc.
Those Cloud providers besides selling the VPS itself with pre-determined disk for each vps level, it also sells Block Storages / Volume, which is basically a new disk available to be mounted in your vps, pretty much like an external drive.
The problem with this type of disk expansion is that it doesn’t expand the root filesystem by itself, you need to mount this somewhere else. So probably the safest bet it to mount in /home, so every virtual domain will be alocated to this new disk.
My question is: What is the safest procedure to copy everything from the actual /home folder that is still in the local disk, to the new one (keeping all permissions and ownerships) and then mount the new disk into the /home?
Besides that, is it safe to after that, resize this new disk when I eventually need more space? For example, I’ll buy a 100GB disk, copy everything from the local one to this new block, and when this 100GB is not enough anymore, I will just go to the Cloud Control panel and ask for a resize in this block, for 100GB+ (of course, with the VPS off). Then I’d start the VPS and see if the new space is already recognized or if it would need to be resized in the webmin control panel.
Can you guys tell me a short and safe procedure to this happen?