add 2nd HDD and move some users to it

morteza3245

Well-Known Member
Sep 16, 2013
163
1
68
cPanel Access Level
Root Administrator
Hello
my 2th HDD name is /data,
cpanel dont know automatically that, how i can add that in cpanel?

and already i saw option for change directory of a user in cpanel, but now i cant Find, can you help me about that please?

Thanks.
 

dalem

Well-Known Member
PartnerNOC
Oct 24, 2003
2,983
159
368
SLC
cPanel Access Level
DataCenter Provider
Log into your server via SSH

umount /data

mkdir /home2

edit your /etc/fstab and change the line /data and put /home2 be sure to enable the quotas (make it look the same as your primary home partition)


mount /home2
 

vanessa

Well-Known Member
PartnerNOC
Sep 26, 2006
959
76
178
Virginia Beach, VA
cPanel Access Level
DataCenter Provider
In /etc/wwwacct.conf, make sure to set HOMEMATCH to 'home' (no slash). cPanel will automatically provision to whatever /home* folder has the most space available. If you only want it to provision on /home3, set HOMEDIR to /home3 and blank out the HOMEMATCH directive.

You can use the rearrange accounts function in WHM. There's a way to do it manually from command line as well.