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.

Recommended Partitioning Scheme for Cpanel Installation

Discussion in 'General Discussion' started by aeternaleto, Apr 8, 2008.

  1. aeternaleto

    aeternaleto Member

    Joined:
    Sep 5, 2007
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Im trying to nail down the recommended partitions for a basic cPanel installation. I just formatted my new CentOS 5 machine and was wondering if someone can double check to ensure that it looks ok. I've seen numerous threads about separating /var, /usr and /tmp.

    Code:
    [root@localhost tmp]# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/sda5             899G  1.3G  851G   1% /
    /dev/sda2             2.0G   36M  1.9G   2% /tmp
    /dev/sda1              99M   17M   77M  18% /boot
    tmpfs                 2.0G     0  2.0G   0% /dev/shm
    
    
    [root@localhost tmp]# cat /etc/fstab
    LABEL=/                 /                       ext3    defaults        1 1
    LABEL=/tmp              /tmp                    ext3    defaults        1 2
    LABEL=/boot             /boot                   ext3    defaults        1 2
    tmpfs                   /dev/shm                tmpfs   defaults        0 0
    devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
    sysfs                   /sys                    sysfs   defaults        0 0
    proc                    /proc                   proc    defaults        0 0
    LABEL=SWAP-sda3         swap                    swap    defaults        0 0
    As you can see I've separated /tmp from the main partition however I didn't see the need to actually separate /var and /usr.

    Is there a particular reason that I should or does my default setup look ok and I can continue to install cpanel?
     
  2. WebHostDog

    WebHostDog Well-Known Member

    Joined:
    Sep 3, 2006
    Messages:
    144
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Website Owner
    Separating /var and /home is a good idea. If somebody fill up your /home partition the emails and MySQL and logs will still work.
     
  3. aeternaleto

    aeternaleto Member

    Joined:
    Sep 5, 2007
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    That's a good point however I'm not that worried about that happening. This is just for about 20 customers who have less than 100GB of data in total which never really increases.

    I guess the above layout should be fine. I was more worried about the tmp directory then anything else.

    Thank you for your reply.
     
Loading...
Similar Threads - Recommended Partitioning Scheme
  1. PCZero
    Replies:
    3
    Views:
    411

Share This Page