• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question Unable to boot server GRUB

NeoTrafy

New Pleskian
Hello and sorry in advance, it's not 100% related to plesk but it is a little bit because the problem came because of a file inside of one of the subscriptions.

Today I had an email of OVH saying my server was hacked (it was nothing more than a wordpress plugin of a client messing around) but it ended with my server forced to Rescue Mode and I'm not able to boot normally anymore.
My server has 2 disks:
Disk /dev/nvme1n1: 1920.4 GB, 1920383410176 bytes, 3750748848 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: gpt Disk identifier: F41751A6-C420-475C-BB59-E768E17AA2AB
1 2048 1048575 511M EFI System primary
2 1048576 42006527 19.5G Linux RAID primary
3 42006528 3114004479 1.4T Linux RAID primary
4 3114004480 3175442431 29.3G Linux swap primary
Disk /dev/nvme0n1: 1920.4 GB, 1920383410176 bytes, 3750748848 sectors (same as nvme1n1)
Disk /dev/md3: 1572.9 GB, 1572862885888 bytes, 3071997824 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/md2: 21.0 GB, 20970405888 bytes, 40957824 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes
I followed this tutorial (using grub2 commands instead of grub) and it looked promising until the "grub-install /dev/sdx (NOTE that this is the drive and not the partition. try grub-install --recheck /dev/sdxy if it fails)". Tried everything (md2, md3, nvme1n1,...) but all I get is "grub2-install: error: cannot find EFI directory." I already checked if I had the EFI folder and it was there in /boot/efi/EFI/centos. So I have no idea what's wrong. I really need help to solve this and I'm going to pay for the help. Anyone able to help via anydesk or teamviewer? It's really super urgent.
 
FYI - given that it's urgent I'd recommend reaching out to an emergency support company rather than posting here
 
I followed this tutorial (using grub2 commands instead of grub) and it looked promising until the "grub-install /dev/sdx (NOTE that this is the drive and not the partition. try grub-install --recheck /dev/sdxy if it fails)". Tried everything (md2, md3, nvme1n1,...) but all I get is "grub2-install: error: cannot find EFI directory."
Apparently the EFI partition is not RAIDed. So it is nvme0n1p1 or nvme1n1p1, ideally both should have the same content.

BUT.

Why do you reinstall grub anyways?
Normally the provider's host admin panel selects what system the server boots into, so you'd have to change it back there.
 
Back
Top