Portal Home > Knowledgebase > Articles Database > Is this a good partition table?


Is this a good partition table?




Posted by BalconesCom, 06-05-2013, 08:08 PM
Is this a good partition table for a Cpanel server looking to host many clients without overselling? /boot 1024MB PRIMARY EXT4 | /swap 8192MB PRIMARY SWAP | / 40960MB PRIMARY EXT4 | /usr 36864MB LOGICAL EXT4 | /var 65536MB LOGICAL EXT4 | /home remaining LOGICAL EXT4 | This is on a CentOS 6.4 box with Quad Core Xeon, 2 x 1TB drive (RAID 1) and 8GB of RAM.

Posted by jzukerman, 06-05-2013, 08:44 PM
Boot seems a bit large to me. How many kernels do you plan to store? I usually keep 2, the latest current and one revision old (as that one probably worked fine). Personally I'd set boot to be 256M. I'll let others comment on the rest as I am not 100% on where cPanel stores the majority of log files, binaries, etc.

Posted by BalconesCom, 06-05-2013, 09:19 PM
Yeah I see that 265M would be ideal. What do you think about the other partitions, would it be future proof for future customers needs, and so I not having to touch the partition in the near future.

Posted by net, 06-05-2013, 09:40 PM
You need to consider also whenever it upgrades the kernel as it can fill up the boot unless you have time to monitor it and remove old kernels. 512MB is recommended but 1GB won't hurt since you have big drives. As for the other partition, it depends on what are you putting there especially for mysql databases.

Posted by BalconesCom, 06-05-2013, 10:04 PM
I would consider. Also, would there be a way to resize /usr and /var whenever I see it becomes bloated? What is everyone using for /usr and /var their shared server environment?

Posted by RRWH, 06-05-2013, 10:36 PM
short answer No - it is not good at all Long answer is this is How I personally like to do things and it has proven to be a good, flexible solution /boot 256M ext3 - I still have a few servers where I have only 100M /boot partitions and it is still fine, but prefer a bit more breathing space. Rest of disk as an LVM PV in the LVM PV I usually set it up as below (initially and allocate additional space as required: SWAP (sized based on RAM in server, in this case go with 8G ) / 4G (ext4 for all these filesystems) /tmp 2G /var 16G /usr 8G /home 100G I find that over time, you will need to grow the /home and the /var - and I ususally do this when I hit 80% utilization. * Note I NEVER set up /backup on the same physical disk as CPanel - It is always on a 2nd disk in the Server. Last edited by RRWH; 06-05-2013 at 10:51 PM.

Posted by bune, 06-06-2013, 04:45 PM
16Gb for var would be less as var would hold mysql + logs which would need minimum 50Gb for long term plans



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Reseller Hosting (Views: 649)
ExcellHosting.net (Views: 641)
Checking Port Speed (Views: 666)
Cyberlynk.net down (Views: 755)

Language: