How to setup cPanel on 15k SAS drives and email accounts on 7.2K drives?

craigrobo1

Registered
Feb 5, 2012
3
0
51
cPanel Access Level
Root Administrator
Hi,

I posted this in the email forum but think I should have put it in this forum...

I'm about to press the button on a server where I want to have the operating system (cPanel) running on the 15K SAS drives but the email storage on the slower 7.2K drives as these drives offer so much more storage.

Is what I am trying to do possible, if so how do I do it?

Thanks,
Craig
 

KostonConsulting

Well-Known Member
Verifed Vendor
Jun 17, 2010
255
1
68
San Francisco, CA
cPanel Access Level
Root Administrator
Re: How to setup cPanel on 15k SAS drives and email accounts on 7.2K drives

Craig,
cPanel stores mail in /home/$user/mail. To enact your setup, create a 'post' hook for WHM Accounts::Create that moves /home/$user/mail to the other drive/partition and then creates a symlink back to /home/$user/mail. More info on cPanel's hooks here : Introduction to Standardized Hooks