Different /home directory for certain accounts?

bronco92

Member
Nov 18, 2006
12
0
151
I have a server with approx 300 accounts on it. They are all stored at:

/home/accountname/

The hard-drive with the /home folder in it is getting full.

I would like add all future new accounts to a separate hard-drive:

/home2/accountname/

How can this be specified when creating the account in WHM?
 

eth00

Well-Known Member
PartnerNOC
Mar 30, 2003
721
1
168
NC
cPanel Access Level
Root Administrator
If you mount it as /home2/ it will automatically use it for accounts. It should place all new accounts on the new one. You can also use WHM -> rearrange accounts to move some over to the other drive.
 

vheeds

Member
Feb 22, 2010
13
0
51
You can accomplish this task by following the below mentioned procedure:

* Login to WHM
* Go to Main >> Account Information >> List Accounts
* In the 'Please choose a new mount point for this account:' drop down menu, you can choose the new drive and click 'move account' button.
 

madaboutlinux

Well-Known Member
Jan 24, 2005
1,051
2
168
Earth
If you want to setup all the new accounts on /home2 partition, you need to mention the partition name in

WHM >> Server Configuration >> Basic cPanel/WHM Setup
The option is

Enter the location where you wish for new users’ home directories to be created

change it from /home to /home2 and the very next domain that you add, will be created on /home2/.

BTW, in case you want to move some old domains home directories from /home to /home2, just move the /home/username folder to /home2 and create a symlink i.e.

mv /home/username /home2/
ln -s /home2/username /home/username