Installing cPanel for first time: Partition

Balcones

Member
Apr 4, 2013
5
0
1
cPanel Access Level
Root Administrator
Hello all, What are some recommended partition settings for cPanel? I am looking to have customers on the server and would like to make my server future proof so I won't have to re-configure something later on. I have set mines to:

/boot 1024MB PRIMARY EXT4 |
/swap 16384MB PRIMARY SWAP |
/ 40960MB PRIMARY EXT4 |
/usr 36864MB LOGICAL EXT4 |
/var 65536MB LOGICAL EXT4 |
/home remaining LOGICAL EXT4 |

Is this too much or okay? This is a CentOS 6.4 box, Intel Xeon Quad w/ HT, 8 gigs of RAM, and 2 x 1TB drives (RAID1)
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Could you expand on your question a bit more? For example, are you asking what size you should make those partitions if you decide to separate them as individual partitions?

Thank you.
 

Balcones

Member
Apr 4, 2013
5
0
1
cPanel Access Level
Root Administrator
Like my server provider (OVH.ca) is defaulting me to have 20Gigs for /, 512MB for Swap, and home rest of the drive. Would that be ideal because my server a Intel Xeon Quad w/ HT, 8 gigs of RAM, and 2 x 1TB drives (RAID1) and Swap seems to little.

And hearing that you should use as swap 2 times the amount of physical RAM.

- - - Updated - - -

The thing is, I am not advanced at partioning at setup and redoing it over incase I am using the server for customers. Would the configurations above on the first post would be ideal or not? Is it too much I am giving to the server?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Ideally, your partition setup should be:

Partition Size
/ - Grow to fill disk (We recommend at least 40 GB.))
swap - 2x the server's RAM


You can view the guides if you opt for advanced partitioning at:

Advanced Partitioning Options

I don't see any problems with the partition setup you provided in your initial post based on these recommendations.

Thank you.