You may find yourself in the situation when you would like any new account created from WHM (WebHost Manager) to be created on a different partition. I will assume that a new cPanel account is currently created on the /home partition and due the low disk space from this partition, you will need to use another one (/home2 in my example) to store any new accounts.
WHM (WebHost Manager) is reading the configuration of a new account (at creation time) from /etc/wwwacct.conf , where it has defined the values for the default IP, the homedir, the hostname, the nameservers etc:
root@server [~]# cat /etc/wwwacct.conf | grep HOMEDIR
HOMEDIR /home
You will simply need to edit this file and change the HOMEDIR path to the new partition (in my example it was /home2):
root@server [~]# cat /etc/wwwacct.conf | grep HOMEDIR
HOMEDIR /home2
Once a new account is created, the home directory will be created on the new partition:
+=======================================+
| New Account Info |
+=======================================+
| Domain: dragostest.com
| Server Ip: 67.210.111.70
| UserName: dragos
| PassWord: root1234
| HomeRoot: /home2/dragos
| NameServer1: ns1.fedorovici.com / 67.210.111.70
| NameServer2: ns2.fedorovici.com / 67.210.111.70
| Contact Email: dragos@fedorovici.com
+=======================================+
If you consider moving an existent account into the new partition, starting with WHM (WebHost Manager) 11.28 a feature allows you to perform this process automatically (you can change the hard drive on which an account will be stored). This feature is only relevant to servers with more than one hard disk. This feature can be useful if one hard drive is beginning to fill or if you have added an additional hard drive with which you intend to split the load.
To change an account’s hard drive:
1. Select the desired account from the list.
* You may use the Account Search feature to search for an account by domain or by user.
2. Click Rearrange.
3. Select the drive from the pull-down menu.
4. Click Move Account.
That’s all for today!