Jun 29, 2015
2
0
1
Romania
cPanel Access Level
Root Administrator
Hello,

Here is my partition table(server: centos7, xfs filesystem, cpanel/whm):
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 931G 33G 899G 4% /
/dev/sdb2 923G 540G 383G 59% /home
/dev/sda1 250M 9.8M 240M 4% /boot/efi

The question: Is there any possible solution to be used the rootfs(/) for something? I thought that making a home2 directory in rootfs is a good idea, but cpanel don't want to use it for new accounts. Probably the reason is that home2 is not a separate partition!? I tried to rearrange an account but the following message appear:

Account User Name szilveszter
Primary Domain Name domain.tld
Current Home Directory /home/domain
Current Mount Point /home
Current Partition /dev/sdb2
Current Disk Usage 401491024 / 967358980 Blocks used, ( 42% Free )
New mount point for this account /boot/efi does not match “home”
Sorry, there is only one usable partition detected on this machine matching “home”

Thanks,
Szilveszter
 

lldeepakll

Well-Known Member
May 20, 2012
85
3
58
India
cPanel Access Level
Root Administrator
Hi,

Login to WHM » Server Configuration » Basic cPanel & WHM Setup. Click on Basic Config and Checkmark/Select Non default button and enter /home2 in given box manually. In front of:

" Enter the location where you wish for new users’ home directories to be created. By default all directories matching the "Home Directory Prefix" are checked for available disk space and the directory with the most free space will be used."

Click on Save

Then create a new account and hopefully it should be created in /home2


Thanks
 
Jun 29, 2015
2
0
1
Romania
cPanel Access Level
Root Administrator
Hello guys,

I have already tried the @lldeepakll method, but the whm still created the accounts on the /home dir, but now i rearranged an account and the /home2 option is alive, and after 2 unsuccessful try the new accounts are created in the /home2. I don't understand why this didn't work for the first time. Thank you for your help.

Szilveszter.
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,215
363
Hello :)

I am happy to see the issue is now resolved. Note that internal case number 189681 is slightly related to this problem. It seeks to address an issue where if you have /home2 or another home partition set as default, and /home is not its own partition, but resides under "/", and you choose to later rearrange an account back to /home, it is not available.

Thank you.