Question

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

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


This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

alexdo
Site Moderator
Site Moderator badge
November 12, 2020
Accepted Answer

Hello, ryanClam

Login to WHM –> Basic WebHost Manager® Setup –> set /home2 directory instead of /home

By default all directories matching the “Home Directory Prefix” are checked for available disk space and the directory with the most free space will be used.

Additional home directories matching the following value will also be used for new home directory creations. (Leaving this value blank disables the feature.) Only mount points are considered. This option only takes one value.

Hope that this helps! Regards, Alex

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.