Relocating cPanel Accounts from /home to /home2: A Comprehensive Migration Guide

thumb_up 1  ·  sell Move cPanel accounts between /home directories, cPanel account migration /home to /home2, Transferring accounts in cPanel to a new /home directory

Sometimes the available disk space on the root or /home partition can be at the limit, and on those cases you will need to delete old content, old backups or move accounts/domains from /home to another partition with more available disk space.

How can I move accounts from /home to /home2 or another partition?

On WHM there is a function called ‘Rearrange an Account’ that is pretty much what you need to get rid of disk space issues on the /home partition. In order to move

WHM » Account Functions » Rearrange an Account

There you will see something like this:

Account User Name	username
Primary Domain Name	userwebsite.com
Current Home Directory	/home/username
Current Mount Point	/
Current Partition	/dev/sda3
Current Disk Usage	55748488 / 228535580 Blocks used, ( 26% Free )
New mount point for this account	/boot does not match “home”
/backup does not match “home”
/home2 (/dev/sdc1) 32% used

Choose /home2 if not selected by default, and then click on “Move Account” button.

Important: once you start the process, DO NOT STOP IT, because you may end up losing data and getting a corrupted cPanel account, see this message:

WARNING: Do not stop this process. If you have selected the wrong partition, let the process complete and then move it again.

Once you are done you should see this kind of results:

Results of move:

WARNING: Do not stop this process. If you have selected the wrong partition, let the process complete and then move it again.
Moving /home/username to /home2/username
Editing /etc/passwd entry
Editing /etc/proftpd/username entries
Updating vhost includes
Built /usr/local/apache/conf/httpd.conf OK
Done
Updating httpd.conf
Editing proftpd.conf entry
Updating webdisk configuration
Symlinking /home/username to /home2/username
Restarting Apache
Move Complete!

At this point you should be able to move account from /home to /home2 without any issues. Remember that it may take some time on big accounts with lot of GB of content, specially if you use old slow SATA drives.

 

The End! should you have any inquiries, we encourage you to reach out to the Vercaa Support Center without hesitation.

Răspunsul a fost util?

Articole similare

description

Enabling Global Gzip Compression in WHM for All Accounts and Websites

Apache mod_deflate module is one of the best friends of a cPanel system administrator. It allows you to save bandwidth and accelerate page…

arrow_forward
description

Validating and Confirming cPanel License Information

cPanel and WHM is the #1 leading control panel in the web hosting market. And time ago we posted a post about how to get a free cpanel…

arrow_forward
description

Changing SSH Port via WHM for Enhanced Security

This is a new way I found to reset ssh port from WHM control panel if you ever lost SSH access because you forgot what is the port you are…

arrow_forward
description

Essential Nginx Modules for cPanel and WHM: Top 4 Picks

As we all know, cPanel doesn’t fully support Nginx yet, it will be ready in the future as it is one of the most requested features from…

arrow_forward
description

A Guide to Utilizing the MultiPHP INI Editor in cPanel

With the new EasyApache 4 we have a new option called MultiPHP INI Editor. It’s a simple PHP editor for WHM users who need to change PHP…

arrow_forward
arrow_back « înapoi