Recommended Partition for cPanel WHM Centos 7

dsteam

Active Member
Sep 6, 2016
26
2
53
Malaysia
cPanel Access Level
Root Administrator
Dear Seniors and Expert Sifu,

Recommended Partition for cPanel WHM Centos 7
Server spec : 2x2TB HDD, 32GB Ram
Mainly for host customer website and emails

1 Primary XFS /boot 2GB
2 Primary XFS / ( All Space left )
3 Primary SWAP swap 16GB

is it need any other partition? example /home ?

And Type should I use XFS Or Ext4?

Please advise :-D
Thank you very much
 

Attachments

techAMIGO

Well-Known Member
Nov 6, 2019
59
41
18
Kerala, india
cPanel Access Level
Root Administrator
Hi dsteam

The partition style is ok, it is not necessary to create /home as a separate partition. it will work perfectly fine. but some says separating /home is good.. no other partition is needed in generally. if you separate /home as a different partition make sure to give necessary space to / not less than 150GB if its a big shared server, as MySQL dbs are stored in /var/lib/mysql and all installed softwares goes to /

Also, you can go with xfs filesystem as it supports intensive I/O workloads than older filesystems.

And another suggestion is to go with Almalinux8 instead of centos7
 
  • Like
Reactions: dsteam

dsteam

Active Member
Sep 6, 2016
26
2
53
Malaysia
cPanel Access Level
Root Administrator
Hello techAMIGO,

Thanks for your reply, helps alot.

How ab Almalinux8 and Cloudlinux OS Shared?
If I want to limit the resources like LVE manager?
What is your suggestion?

Thanks again
 

techAMIGO

Well-Known Member
Nov 6, 2019
59
41
18
Kerala, india
cPanel Access Level
Root Administrator
@dsteam

If you want to limit the recourses then go with CloudLinux, even if you go with Almalinux you need to convert the OS to CloudLinux to use the LVE manager ( Cloud Linux manager) , but conversion is not a big deal as cloudlinux is giving their own script to convert to it.
 

techAMIGO

Well-Known Member
Nov 6, 2019
59
41
18
Kerala, india
cPanel Access Level
Root Administrator
  • Like
Reactions: dsteam

techAMIGO

Well-Known Member
Nov 6, 2019
59
41
18
Kerala, india
cPanel Access Level
Root Administrator
Hi,
find the exact partition which is mounted to /boot/efi and also UUID
both can be see with the command
Code:
 lsblk -f
then comment out current entry from fstab and add it as new entry for /boot/efi with the UUID


Make sure to double confirm you're replacing the correct line and adding the correct entry else the server won't boot the kernel
 

techAMIGO

Well-Known Member
Nov 6, 2019
59
41
18
Kerala, india
cPanel Access Level
Root Administrator
From the screenshot I can see the /boot/efi is mount from /dev/sdb1 which means all UEFI boot files are located under sdb1.

so the entry in fstab should be like
Code:
  /dev/sdb1  /boot/efi  vfat   defaults 0  0
after that the script will work fine..
but, I recommend contacting a sysadmin to perform a check in this case as the server might lead to unbootable if the boot files are missing in the partition, so I will not recommend doing anything blindly.
 
  • Like
Reactions: dsteam

techAMIGO

Well-Known Member
Nov 6, 2019
59
41
18
Kerala, india
cPanel Access Level
Root Administrator
HI @dsteam,

It's not a command :confused:.
it needs to be added to /etc/fstab file instead of the current LABEL entry, Be careful while editing /etc/fstab if you don't know how to edit, please don't for it, wrong entry makes the server unbootable.. so I'm again suggesting to contacting a sysadmin to perform the same if you're unaware how to do it. It can be done in a few minutes.

so again,
1) edit the /etc/fstab file
2) remove the line with LABEL=EFI_SYSPART
3) add the line
Code:
   /dev/sdb1  /boot/efi  vfat   defaults 0  0
4) continue the cloudlinux script
 
  • Like
Reactions: cPRex