Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

add 2nd HDD and move some users to it

Discussion in 'General Discussion' started by morteza3245, Feb 3, 2014.

  1. morteza3245

    morteza3245 Well-Known Member

    Joined:
    Sep 16, 2013
    Messages:
    138
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Hello
    my 2th HDD name is /data,
    cpanel dont know automatically that, how i can add that in cpanel?

    and already i saw option for change directory of a user in cpanel, but now i cant Find, can you help me about that please?

    Thanks.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Eric

    Eric Administrator
    Staff Member

    Joined:
    Nov 25, 2007
    Messages:
    751
    Likes Received:
    11
    Trophy Points:
    143
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Howdy,

    The easy way to make cPanel start using it is to mount it as /homeN so /home2 or /home3 and so on. You can change your fstab in etc and cPanel will start using it.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. morteza3245

    morteza3245 Well-Known Member

    Joined:
    Sep 16, 2013
    Messages:
    138
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Thank you
    can you let me know how i can change name /data to /home2 ?

    i haven't any data on /data (means 2th HDD)

    Thanks.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,772
    Likes Received:
    93
    Trophy Points:
    353
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    Log into your server via SSH

    umount /data

    mkdir /home2

    edit your /etc/fstab and change the line /data and put /home2 be sure to enable the quotas (make it look the same as your primary home partition)


    mount /home2
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. morteza3245

    morteza3245 Well-Known Member

    Joined:
    Sep 16, 2013
    Messages:
    138
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Thanks so much,
    now how i can ensure cpanel known my /home3 ?
    and how i can change a user directory from /home1 to /home3 ?

    Thanks.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    834
    Likes Received:
    29
    Trophy Points:
    178
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    In /etc/wwwacct.conf, make sure to set HOMEMATCH to 'home' (no slash). cPanel will automatically provision to whatever /home* folder has the most space available. If you only want it to provision on /home3, set HOMEDIR to /home3 and blank out the HOMEMATCH directive.

    You can use the rearrange accounts function in WHM. There's a way to do it manually from command line as well.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. morteza3245

    morteza3245 Well-Known Member

    Joined:
    Sep 16, 2013
    Messages:
    138
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Thanks,
    now my 1th HDD is 95% full, i want move some user to home3, how i can change directory user1 from 1th HDD to 2HDD (home3) ?

    Thanks.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. cPanelJared

    cPanelJared Technical Analyst

    Joined:
    Feb 25, 2010
    Messages:
    1,835
    Likes Received:
    21
    Trophy Points:
    143
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice