Partitioning big HDDs for use with cPanel

Bdzzld

Well-Known Member
Apr 3, 2004
410
5
168
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.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,466
31
473
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.
 

eagle

Well-Known Member
Jan 17, 2003
139
0
166
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.
 

Bdzzld

Well-Known Member
Apr 3, 2004
410
5
168
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.
 

Bdzzld

Well-Known Member
Apr 3, 2004
410
5
168
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.
 

Website Rob

Well-Known Member
Mar 23, 2002
1,504
1
318
Alberta, Canada
cPanel Access Level
Root Administrator
Bdzzld said:
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.
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'.