Recommended Partitioning Scheme for Cpanel Installation

aeternaleto

Member
Sep 5, 2007
10
0
51
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:
[[email protected] 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


[[email protected] 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?
 

WebHostDog

Well-Known Member
Sep 3, 2006
144
1
166
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.
 

aeternaleto

Member
Sep 5, 2007
10
0
51
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.
 
Thread starter Similar threads Forum Replies Date
DataDork Installation & Updates 3