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.

Partitioning big HDDs for use with cPanel

Discussion in 'General Discussion' started by Bdzzld, Oct 17, 2005.

  1. Bdzzld

    Bdzzld Well-Known Member

    Joined:
    Apr 3, 2004
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    Hi,

    I've got a 250GB large HDD which I'd like to use with cPanel.
    What advise can you give me about the size and name of each partition?

    I've seen the 80GB HDD example on this site, but my HDD is over 3x that size and I'm not sure which partitions to expand and which ones not.

    Thanking you in advance.
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Generally speaking, the most significant partitions on a server running cPanel are:

    /home - where all the user sites go

    /var - because MySQL databases live, by default, in /var/lib/mysql and also because of log files in /var/log

    /tmp - needs to be a reasonable size to cope with load needs. I'd recommend 1GB as minimum, more if you can spare it

    /usr /boot and / can generally be assigned the sizes cPanel recommends, however if you are going to store backups on the same disk in /backup either create a separate partition or keep in mind the size of /backup when creating the / partition.
     
  3. eagle

    eagle Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    16
    If you are running Fedora Core and doing a lot of 'automated' kernel upgrades, it is nice to have a larger / . Otherwise you will be cleaning up every month.
     
  4. Bdzzld

    Bdzzld Well-Known Member

    Joined:
    Apr 3, 2004
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    Hi,

    I've had the following partition scheme for my 160GB HDD :

    / => 2GB
    /boot => 100MB
    /tmp => 2GB
    /var => 18GB
    /usr => 14GB
    swap => 1GB (ram size)
    /home => remaining

    What should I do with the remaining 80GB? Should I add it all to /home ?

    Thanks.
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Yup, that's what I would do. Personally, I'd make /usr smaller and give it to /home if possible.
     
  6. Bdzzld

    Bdzzld Well-Known Member

    Joined:
    Apr 3, 2004
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    Okay,

    Should I bring the /usr partition down to 4GB then?
    Would that be sufficient?

    On my other servers aruond 14% is being used of the 14GB /usr partitions.

    Thanks.
     
  7. Website Rob

    Website Rob Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    1,506
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Alberta, Canada
    cPanel Access Level:
    Root Administrator
    I would suggest no less than 8 GB for /usr and you can feel safe with max. 12. Also, make 'tmp' just 1 GB and give the other GB to 'home'.
     
Loading...

Share This Page