Skip to main content

Recommended Partition for cPanel WHM Centos 7

Comments

14 comments

  • techAMIGO
    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
  • dsteam
    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
  • techAMIGO
    @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
  • dsteam
    @techAMIGO Yes, cloudlinux is giving their own script to convert to it, but when I try to setup found another error >.< From the warning msg, it advise me refer
    0
  • techAMIGO
    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
  • dsteam
    @techAMIGO Here is the content :) TQ^^
    0
  • techAMIGO
    dsteam Ah yes,, As I thought the cloudlinux will not support LABEL with multiple partitions, you need to remove the LABEL from fast and add uuid instead of it , so it will point only to a single partition. for more info you can refer the doc
    0
  • dsteam
    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
  • techAMIGO
    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 kernel
    0
  • dsteam
    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
  • techAMIGO
    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
  • dsteam
    Hi @techAMIGO It show me permission denied :eek:
    0
  • techAMIGO
    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 script
    0
  • cPRex Jurassic Moderator
    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.