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!

/home partition is 94% full

Discussion in 'General Discussion' started by thewebhosting, Jul 6, 2008.

  1. thewebhosting

    thewebhosting Well-Known Member

    May 9, 2008
    Likes Received:
    Trophy Points:
    I am seeking for a suggestion. My /home partition is 94% full. I have two hard drives. How can I create a new partition /home2 in second drive and use it to host my new domains?

    Any ideas?
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. mtindor

    mtindor Well-Known Member

    Sep 14, 2004
    Likes Received:
    Trophy Points:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    This is but one way, and probably not the most correct.... but:

    Presume your new partition is /dev/sda7 and you want that to be your new /home2.

    1. If it isn't formatted, format it

    mke2fs -j /dev/sda7
    - this formats /dev/sda7 as an EXT3 filesystem

    2. Edit /etc/fstab and save it
    - add an entry for /dev/sda7 mapping it to /home2


    /dev/sda7 /home ext3 defaults,usrquota 1 2

    3. Log in to WHM, go to Basic WHM / Cpanel Setup

    Set Home Directory Prefix to home2 and save it

    Test by creating a new account. If /home2 contains more free space than /home, then I believe the new account will be created on /home2.

    Summary: basically I told you to format the drive, then add it to /etc/fstab so that it is mounted upon bootup properly and is set to use quotas. Then in WHM I told you to set the additional directory that it uses to create new accounts.

    Caveat: I don't remember if you have to do anything else to enable the quotas besides having the entry in /etc/fstab mentioning usrquota. It is possible that you have to 'initialize' the quotas on the new one. I'm not sure.

    But that should get you started.

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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