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.

/home partition is 94% full

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

  1. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    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?
     
  2. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,279
    Likes Received:
    36
    Trophy Points:
    48
    Location:
    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

    i.e.:

    /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.

    Mike
     
Loading...

Share This Page