Custom partitions with cPanel CentOS ISO?

shenzy

Well-Known Member
Apr 27, 2008
73
3
58
Chile
cPanel Access Level
Root Administrator
Hello,
I download the Centos Cpanel iso, but the install is "very" automatic, and I want use specifics partitions.
Is there any way to make that step (partitioning) manually?
 

shenzy

Well-Known Member
Apr 27, 2008
73
3
58
Chile
cPanel Access Level
Root Administrator
Re: Custom partitions with Canel Centos ISO?

Hello, my last server was installed with a centos minimal iso, and cpanel install via line command (wget).. and this partitions:
(Server with 2 Disk of 1TB in Raid 1 (sda) and other Disk of 1TB for Backups (sdb), with a HP Smart Array P420/1GB controller)

Filesystem Size Used Avail Use% Mounted on
/dev/sda2 296G 25G 256G 9% /
tmpfs 7,8G 0 7,8G 0% /dev/shm
/dev/sda1 339M 52M 271M 16% /boot
/dev/sdb1 917G 388G 484G 45% /hdd2
/dev/sda6 610G 211G 369G 37% /home
/dev/sda5 4,0G 145M 3,6G 4% /tmp

This server works fine, and the new server is identical.
¿Will there be any benefit to using the ISO downloaded from cpanel, compared to using the Minimal Centos ISO?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,211
363
Re: Custom partitions with Canel Centos ISO?

Will there be any benefit to using the ISO downloaded from cpanel, compared to using the Minimal Centos ISO?
I recommend installing CentOS manually and configuring your advanced partition scheme. You can then install cPanel using the instructions at:

cPanel - Installation Guide

Thank you.
 

StelarBlack

Member
Dec 7, 2014
7
0
1
cPanel Access Level
Root Administrator
Hi,

What is so called best practice with partitioning hard disk for cPanel/WHM CentOS instalations? Only two partitions swap and / (ext3), or should I create additional partitions for /boot, /tmp and /var? What about LVM, if I decide to add more disk space later? Thanks in advance.
 

StelarBlack

Member
Dec 7, 2014
7
0
1
cPanel Access Level
Root Administrator
@Infopro, thank you,

I have studied all of installation guides, but I 've seen many partition layouts, so I am a little bit confused, especially in installing cPanel/WHM on virtual host, where LVM is must, if you host many VPS.
 

Telematica_at

Member
Oct 6, 2015
17
0
51
Austria
cPanel Access Level
Root Administrator
Hello,

I also want to know something about the current recommended partition setup, but the links don't work anymore.
I want to do a clean 11.52 install on a VMWare VPS with CentOS 7 and upgrade it then to CloudLinux.
It should be a new reselling Setup.

I was thinking about this partition scheme:

1x SWAP = 4 GB
1x OS / = 20 GB
1x SQL /var = 10GB
1x Userdata /home = 10 GB

is this best practice to be flexible to extend with LVM if i need more diskspace?

Or just do it like this way:
1x SWAP = 4 GB
1x OS / = 40GB+


I was thinking about to exclude the SQL /var to a dedicated partition that I can create a standalone vps for sql. or is this not best practice? better to keep all in one place?
 

Telematica_at

Member
Oct 6, 2015
17
0
51
Austria
cPanel Access Level
Root Administrator
Hello,

thanks but there is just a notice:

For some servers, additional partitions are beneficial. This is particularly true for servers with high email volume. The OS can only access a limited number of files per partition.

so when is it beneficial by VPS setups?


thanks.

My thinking is the following:

1x SWAP = 4 GB
1x OS = 20 GB
1x Userdata /home = 10 GB (growing if i need more space)

I think if I do the userdata folder /home on a dedicated partition, I would be more flexible, or not?
 
Last edited by a moderator: