The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

home2 on rootfs

Discussion in 'General Discussion' started by Szilveszter Zsigmond, Jun 29, 2015.

  1. Szilveszter Zsigmond

    Joined:
    Jun 29, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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
     
  2. lldeepakll

    lldeepakll Well-Known Member

    Joined:
    May 20, 2012
    Messages:
    86
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    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
     
  3. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    yes /home2 need to be its own partition
     
  4. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
  5. Szilveszter Zsigmond

    Joined:
    Jun 29, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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.
     
    #5 Szilveszter Zsigmond, Jun 30, 2015
    Last edited by a moderator: Jun 30, 2015
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page