Question

How do I add a new volume/disk to my droplet for WHM/cPanel to use as /home2/ & how can I downgrade/downsize

Posted August 10, 2020 175 views
CentOSNetworkingDigitalOcean Volumes

Hi,

Mount a volume for /home2/ in WHM/cPanel

I created a volume and it provides me some details like you can see below:

# Create a mount point for your volume:
$ mkdir -p /mnt/home2

# Mount your volume at the newly-created mount point:
$ mount -o discard,defaults,noatime /dev/disk/by-id/scsi-0DO_Volume_home2 /mnt/home2

# Change fstab so the volume will be mounted after a reboot
$ echo '/dev/disk/by-id/scsi-0DO_Volume_home2 /mnt/home2 ext4 defaults,nofail,discard 0 0' | sudo tee -a /etc/fstab

You can see I named the disk home2, but I can’t figure out how I am supposed to add it to WHM/cPanel to allow me to create cPanel accounts on that disk.

Should I be mounting to /home2/ instead? or should I be creating a symlink from /mnt/home2/ to /home2/?

Downsizing a droplet

So when we originally setup this droplet, we accidently chose a Disk, CPU & RAM resize which put the SSD to 60GB…

We want to downsize the disk so we can access some of the other droplet types. For example we want to have the “CPU Optimized Dedicated CPU, 4vCPU, 8GB RAM” droplet.

If we offload 30GB of our files to a volume/block storage which brings us down to 15GB on the main droplet can we create a backup / snapshot of the instance and “downgrade”?

Use a different droplets disk space OR migrate everything across to a pre-made droplet…

We found out that DigitalOcean just willy nilly provides IP’s that have been abused, are blocked by major email providers and is utterly useless for emails… because our main droplet can’t send emails to several providers.

We had to create a $5 droplet and setup a postfix relay server which works good for now. The server however has 20GB of spare disk space… how can we utilize this space?

Can we mount this disk to the main server?

OR / AND

Is there a way to easily fully migrate everything from our current “main” droplet across to the new droplet (Migrate cPanel/WHM, Railgun, Redis, CloudLinux, Imunify360, ConfigServer, MariaDB… etc) and all the configuration that goes with it.

Instead of having to do loads of manual reconfiguring…

Thanks

Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!