Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 14 of 14
  1. #1
    Member BlackRain's Avatar
    Join Date
    May 2003
    Posts
    36

    Default Create New Account Puts directory on backup hard drive?

    Today, I used WHM to create a new account for new domain name.

    The only problem is that the WHM/CPanel software is building the new account on the backup hard drive and not the primary where all the other domain directorys are?

    Anyone know how to correct this?

    Homeroot: /home2

    Should be

    Homeroot: /home
    Last edited by BlackRain; 06-09-2009 at 02:20 PM.

  2. #2
    Member BlackRain's Avatar
    Join Date
    May 2003
    Posts
    36

    Default

    I confirmed my default "Default Home Directory" is /home in Main >> Server Configuration >> Basic cPanel/WHM Setup.

    However, each time a create a new account it gets put in /home2

    Is there any way to change this?


  3. #3
    Member BlackRain's Avatar
    Join Date
    May 2003
    Posts
    36

    Default

    Upon further reading it looks like the reason Cpanel/WHM is forcing the new account to the backup harddrive is this:

    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.
    There has to be a way around this as I have plenty of room on the original drive.

  4. #4
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by BlackRain View Post
    Today, I used WHM to create a new account for new domain name.

    The only problem is that the WHM/CPanel software is building the new account on the backup hard drive and not the primary where all the other domain directorys are?

    Anyone know how to correct this?

    Homeroot: /home2

    Should be

    Homeroot: /home
    I'm confused. What's the reasoning behind creating a /home2 on your drive that should only be used for backups?

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jul 2005
    Location
    New Jersey, USA
    Posts
    397

    Default

    If home2 is just being used for backups, you should name it /backup

    This will avoid the conflict with the auto drive balancing and will also avoid quota conflicts.

  6. #6
    Member
    Join Date
    Sep 2001
    Posts
    189

    Default

    Quote Originally Posted by cPanelDavidG View Post
    I'm confused. What's the reasoning behind creating a /home2 on your drive that should only be used for backups?
    The same problem. I want to create new accounts on /home, not in /home2!!! Why when I set default to /home but get new accounts in /home2 ???
    Alex Andreyev,
    http://www.WHost.INFO - NEW web hosting directory.

  7. #7
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by H2Hosting.com View Post
    The same problem. I want to create new accounts on /home, not in /home2!!! Why when I set default to /home but get new accounts in /home2 ???
    To enforce a specific path, please use the following feature in WHM and customize both options specified below:

    WHM: Main >> Server Configuration >> Basic cPanel/WHM Setup
    * Default Home Directory
    * Home Directory Prefix

    For example, the following should work to enforce new accounts being created in a path of "/home" and not a different path such as "/home2":
    1.) Set the option "Default Home Directory" to "/home"
    2.) Unset the option "Home Directory Prefix" so that it is blank or empty (i.e., not defined).

    Related Documentation: Basic cPanel/WHM Setup

  8. #8
    Member
    Join Date
    Sep 2001
    Posts
    189

    Default

    Quote Originally Posted by cPanelDon View Post
    To enforce a specific path, please use the following feature in WHM and customize both options specified below:

    WHM: Main >> Server Configuration >> Basic cPanel/WHM Setup
    * Default Home Directory
    * Home Directory Prefix
    Thank you. It works fine.
    Alex Andreyev,
    http://www.WHost.INFO - NEW web hosting directory.

  9. #9
    Member
    Join Date
    Aug 2007
    Posts
    20

    Default

    I have the same problem...what would be the proper way to move these accounts back over to the proper /home directory..I would have to delete the symbolic link as well i take it .

  10. #10
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by l00ph0le View Post
    I have the same problem...what would be the proper way to move these accounts back over to the proper /home directory..I would have to delete the symbolic link as well i take it .
    Rearranging accounts between partitions may be performed using WHM via the following menu path:
    WHM: Main >> Account Functions >> Rearrange an Account
    Documentation: Rearrange Accounts

  11. #11
    Member
    Join Date
    Aug 2007
    Posts
    20

    Default

    Thanks for that tip..I actually deleted the symbolic link, and did a cp -rp from the one drive to another..everything seems to be ok..I figured since the system was viewing a symbolic link that cpanel would not notice the difference between the 2.

    Now I realize that I am not sure which directory cpanel is dumping mail and other data into...Cpanel assums the account is in home2 when I manually moved everything back over to home via copy..What to do now?

  12. #12
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by l00ph0le View Post
    Thanks for that tip..I actually deleted the symbolic link, and did a cp -rp from the one drive to another..everything seems to be ok..I figured since the system was viewing a symbolic link that cpanel would not notice the difference between the 2.

    Now I realize that I am not sure which directory cpanel is dumping mail and other data into...Cpanel assums the account is in home2 when I manually moved everything back over to home via copy..What to do now?
    So that a more accurate diagnoses can be formed please let us know the following:
    1.) Are any related errors or symptoms presently being experienced?
    2.) Was the original home directory removed from the /home2 partition, or was it just renamed?
    3.) If the directory was removed or renamed, was a new symlink created in its place?
    4.) Were any configurations manually edited to use the new home directory path?
    5.) Please let us know the output of the following two commands, where "username" should be replaced by that of the affected user account:
    Code:
    # stat /home/username
    # stat /home2/username
    If needing to create a new symlink, here is a basic example that can be used, where "newpath" and "oldpath" represent the new and old home partitions:
    Code:
    # ln -insv /newpath/username /oldpath/username

  13. #13
    Member
    Join Date
    Aug 2007
    Posts
    20

    Default

    Don,

    Thanks for the tips..
    Cpanel was still dumping e-mail and user information into the old directories on /home2, since i had not deleted the old directory while i made sure everything was working.. If i deleted a directory cpanel was throwing out an error.

    So basically I deleted the directories on /home(as I had copied them there), used whm to reassign the user account and everything seems to be ok at this point.

    Why does cpanel create a symlink on /home2 after moving the directories with reassign account?

  14. #14
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by l00ph0le View Post
    Don,

    Thanks for the tips..
    Cpanel was still dumping e-mail and user information into the old directories on /home2, since i had not deleted the old directory while i made sure everything was working.. If i deleted a directory cpanel was throwing out an error.

    So basically I deleted the directories on /home(as I had copied them there), used whm to reassign the user account and everything seems to be ok at this point.

    Why does cpanel create a symlink on /home2 after moving the directories with reassign account?
    The symlink is useful as a precautionary measure; for example, a user may have custom scripts that define a full path, and by utilizing a symlink such issues should be negated while allowing time for the custom scripts to be manually updated by a system administrator or by the user.

Similar Threads & Tags
Similar threads

  1. Backup on secondary hard drive and then on NAS ?
    By TapanB in forum Data Protection
    Replies: 2
    Last Post: 08-09-2011, 05:06 AM
  2. Hard Drive backup AND Remote FTP Backup
    By andy7t in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-13-2006, 09:43 AM
  3. URGENT: restoring backup from old hard drive
    By bhznat in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 12-11-2004, 01:36 AM
  4. URGENT: restoring backup from old hard drive
    By bhznat in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-23-2004, 06:41 PM
  5. Backup Hard Drive
    By ThaMATRiX in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 11-09-2004, 04:04 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube