Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Apr 2006
    Posts
    14

    Default accounts created on home2 instead on home

    Very strange problem. The /usr, /root, /var , /tmp and /home partitions are located on one HDD, and the /home2 partition is located on second HDD.
    Although specified in /etc/wwwacct.conf that the home parition is /home, the accounts
    get automatically created on /home2 .

    When you umount /home2 the accounts are created on /home . Why this is happening and from where cPanel "decides" on which HDD to create the new accounts ?

    Thanks.

  2. #2
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,597

    Default

    Quote Originally Posted by vasko View Post
    Very strange problem. The /usr, /root, /var , /tmp and /home partitions are located on one HDD, and the /home2 partition is located on second HDD.
    Although specified in /etc/wwwacct.conf that the home parition is /home, the accounts
    get automatically created on /home2 .

    When you umount /home2 the accounts are created on /home . Why this is happening and from where cPanel "decides" on which HDD to create the new accounts ?

    Thanks.
    Change the HOMEMATCH variable in basic server config/edit setup in whm.

  3. #3
    Member
    Join Date
    Apr 2006
    Posts
    14

    Default

    Thanks. I have just removed the whole entry. Any ideas why this happens since HOMEMATCH=HOMEDIR ?
    Does not make a lot of sense.....

  4. #4
    Member cpanelinfoseeker's Avatar
    Join Date
    Oct 2002
    Location
    NE Illinois
    Posts
    320

    Default

    If there are multiple directories startinng with "home" (/home, /home1, /home2) the logic is to evenly distribute the load on each "home" drive to balance them out. It looks for the home directory with the lowest content and adds to that one. I'm not sure if it is space or percentage that the comparison is made on, it has been a while...

    Ron

  5. #5
    Member
    Join Date
    Apr 2006
    Posts
    14

    Default

    Thanks again !: )

    That is what I assumed but could not find anything regarding this type of balancing. Anyway - this clears things out. Thanks for your help !!!

Similar Threads & Tags
Similar threads

  1. Replies: 1
    Last Post: 03-17-2011, 07:13 PM
  2. Replies: 3
    Last Post: 08-08-2010, 02:23 PM
  3. accounts going to /home2 not /home
    By PDW in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-13-2009, 09:41 AM
  4. move /home2 accounts to /home
    By asmithjr in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-12-2008, 06:48 PM
  5. I have /home and /home2.. can I backup both to /home2?
    By fog in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 10-27-2002, 01:23 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube