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.

Help with partitioning...

Discussion in 'Data Protection' started by sentryhosting, Aug 2, 2009.

  1. sentryhosting

    sentryhosting Registered

    Joined:
    Aug 2, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I have a server set up with 500 GB Hard Drive. I will be using the server to host websites for customers and businesses.

    I am finding it diffcult to find out what to assign to each section and as far as I know the following partitioning is OK?

    /
    /home
    /boot
    /tmp
    /var
    /usr
    swap

    The thing I am not sure of is what space to allocate to each section.

    Your help would be greatly appreciated.

    Thanks
     
  2. eth00

    eth00 Well-Known Member
    PartnerNOC

    Joined:
    Mar 30, 2003
    Messages:
    723
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    NC
    cPanel Access Level:
    Root Administrator
    It really just depends on what you want and what you are comfortable with.

    By default MySQL is stored in /var/ so you may want to make sure that is large enough for your planned DBs, or plan to move MySQL (very easy).

    The advantage of multiple partitions is if one is corrupt not everything is. If you have to reimage the machine you also don't have to wipe all of the partitions (such as home).

    One easy way out is simply put 100mb for /boot, SWAP space, then / and have no other partitions. I generally put 2-4Gb of SWAP depending on the machine. This gives you a lot of flexibility and you do not have to worry so much about a partition filling up. Of course if you are using LVM then you can resize the partitions if you are comfortable with it.

    Anyways no easy answer, lots of different options. If you are just starting out and playing around only doing the 3 partitions is going to be the easiest to handle and work with.
     
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,447
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  4. Dannyblaze

    Dannyblaze Member
    PartnerNOC

    Joined:
    Sep 28, 2004
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Gatineau, Quebec, Canada
    Hi sentryhosting,

    I found that on shared hosting servers, /var will fill up quickly because of MySQL (as mentioned above), so you want to be sure you give it lots of space.

    You could could consider something like this:

    swap -- 4000MB
    /boot -- 200MB
    / -- 5000MB
    /usr -- 20000MB
    /var -- 60000MB
    /home -- 150000MB
    /backup -- Fill remaining

    You don't have to worry about /tmp if you are installing cPanel on the server. cPanel will create a secure /tmp partition for you.

    Have a good day!
     
Loading...

Share This Page