Recommended Partition for cPanel WHM Centos 7
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
-
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 0 -
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 0 -
@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. 0 -
Ok,, it seems there is some issues with the boot partition or issues with mounting. would you show me the contents of /etc/fstab . 0 -
@techAMIGO Here is the content :) TQ^^ 0 -
Yes, I read and follow, but I do not know the command for " 1. Replace LABEL or UUID with a path to a partition," Google unable to found the guide :( 0 -
Hi, find the exact partition which is mounted to /boot/efi and also UUID both can be see with the command 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 kernel0 -
Hi techAMIGO, I am not expert on command code, I only know follow the guide step by step ^^ Attached file is lsblk -f Result I have no idea how to do it next.... 0 -
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 /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.0 -
Hi @techAMIGO It show me permission denied :eek: 0 -
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 /dev/sdb1 /boot/efi vfat defaults 0 0
4) continue the cloudlinux script0 -
Thanks, @techAMIGO ! And yes, no one should be creating new machines with CentOS 7 at this point. 0
Please sign in to leave a comment.
Comments
14 comments