Elevate to Alma Linux 8 goes to Grub Rescue
I'm trying to upgrade CentOS 7 to AlmaLinux 8
I've used Elevate script and everything seems to be working properly until my server won't boot.
I enabled KVM and shows GRUB Rescue.
I can't find any errors.
-
I can't understand what's wrong with Grub.
At first I taught it was lack os space, but al the kernel files seems to be generated correctly.
Then something with BLS, but was not the case either. (https://www.linode.com/community/questions/23142/almalinux-86-grub-2-boot-failures-and-resolution)
0 -
Have you forcefully rebooted the server after it didn't come back online? Stage 4 could take up to 20-30 minutes and if the server was rebooted during the process it could result in a corrupt system.
How did you elevate the server exactly? What command(s) did you use?
Andrew N. - cPanel Plesk VMWare Certified Professional
Do you need immediate assistance? 20 minutes response time!*
EmergencySupport - Professional Server Management and One-time Services0 -
I did reboot the system, only 3 hours after
I follow this guide: https://cpanel.github.io/elevate/
wget -O /scripts/elevate-cpanel \ https://raw.githubusercontent.com/cpanel/elevate/release/elevate-cpanel ; chmod 700 /scripts/elevate-cpanel
/scripts/elevate-cpanel --check --upgrade-to=almalinux
/scripts/elevate-cpanel --start --upgrade-to=almalinux
0 -
It is hard to say without having a look at the system. Reinstalling grub might do the trick on the drives. It could also be a bug as per:
https://access.redhat.com/solutions/7004146
Andrew N. - cPanel Plesk VMWare Certified Professional
Do you need immediate assistance? 20 minutes response time!*
EmergencySupport - Professional Server Management and One-time Services0 -
The solution its behind a paywall.
cPanel have live support?
0 -
Nope but they are watching the forum, they will advise shortly I think.
Andrew N. - cPanel Plesk VMWare Certified Professional
Do you need immediate assistance? 20 minutes response time!*
EmergencySupport - Professional Server Management and One-time Services0 -
Any tip how to reinstall GRUB2?
root@rescue ~ # lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 3G 1 loop
sda 8:0 0 2.7T 0 disk
├─sda1 8:1 0 16G 0 part
│ └─md0 9:0 0 16G 0 raid1
├─sda2 8:2 0 1G 0 part
│ └─md1 9:1 0 1022M 0 raid1
├─sda3 8:3 0 1T 0 part
│ └─md2 9:2 0 1023.9G 0 raid1
├─sda4 8:4 0 1.7T 0 part
│ └─md3 9:3 0 1.7T 0 raid1
└─sda5 8:5 0 1M 0 part
sdb 8:16 0 2.7T 0 disk
├─sdb1 8:17 0 16G 0 part
│ └─md0 9:0 0 16G 0 raid1
├─sdb2 8:18 0 1G 0 part
│ └─md1 9:1 0 1022M 0 raid1
├─sdb3 8:19 0 1T 0 part
│ └─md2 9:2 0 1023.9G 0 raid1
├─sdb4 8:20 0 1.7T 0 part
│ └─md3 9:3 0 1.7T 0 raid1
└─sdb5 8:21 0 1M 0 partroot@rescue ~ # mkdir /mnt/md2
root@rescue ~ # mount /dev/md2 /mnt/md2
root@rescue ~ # mount -o bind /proc /mnt/md2/proc
root@rescue ~ # mount -o bind /dev /mnt/md2/dev
root@rescue ~ # mount -o bind /sys /mnt/md2/sys
root@rescue ~ # mkdir /mnt/boot
root@rescue ~ # mount -o bind /mnt/boot/ /mnt/md2/boot
root@rescue ~ # chroot /mnt/md2 /bin/bash
root@rescue ~ # grub2-mkconfig -o /boot/grub2/grub.cfgStill gives me the same error :(
0 -
I had the same issue - ARG! System won't boot while upgrading to Rocky 8 – cPanel - I got no support from hetzner at all, my first point of call now is to cancel cpanel through them and go direct.
I also got into rescue and tried a bunch of things, couldn't find any solution, so gave up and re-installed whm from scratch and restored all my accounts (After wasting 24hours of no support or getting anywhere) - I hope you do find a solution!
to get into the os - you will need to know which drive is which, your setup is different to mine, but mine was:
mount /dev/md2 /mnt
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
mount /dev/md1 /mnt/boot (I think boot)
chroot /mnt0 -
I cant mount boot directly from /mnt
I did
root@rescue ~ # mount /dev/md1 /mnt/boot
root@rescue ~ # mount -o bind /mnt/boot/ /mnt/md2/bootNow I tryed to change GRUB_ENABLE_BLSCFG to false in /etc/default/grub
Still no luck
0 -
The worst part
root@rescue / # /usr/local/cpanel/scripts/pkgacct
Can't load '/usr/local/cpanel/3rdparty/perl/536/cpanel-lib/x86_64-linux/auto/DBD/mysql/mysql.so' for module DBD::mysql: libssl.so.10: cannot open shared object file: No such file or directory at /usr/local/cpanel/3rdparty/perl/536/lib/XSLoader.pm line 94.
at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/x86_64-linux/DBD/mysql.pm line 19.
Compilation failed in require at /usr/local/cpanel/Cpanel/Compat/DBDmysql.pm line 18.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Compat/DBDmysql.pm line 18.
Compilation failed in require at /usr/local/cpanel/Cpanel/MysqlUtils/Connect.pm line 18.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/MysqlUtils/Connect.pm line 18.
Compilation failed in require at /usr/local/cpanel/Cpanel/Pkgacct/Components/Mysql.pm line 23.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Pkgacct/Components/Mysql.pm line 23.
Compilation failed in require at /usr/local/cpanel/scripts/pkgacct line 83.
BEGIN failed--compilation aborted at /usr/local/cpanel/scripts/pkgacct line 83.0 -
Do you have a storage box on hetzner? I already had a backup, but before I wiped I zipped up the whole home folder and scp'd it to the storage box
0 -
My last backup was made 31/12 :(
1 Backup for week, I thought it was a secure upgrade, I was wrong.
They should warn all users that is not safe. Better to start fresh and migrate accounts.
1 -
Pires,
It is marked as experimental. It is shown on the github page you pulled the script from. After you chroot into your system fro rescue you should be able to reinstall grub with "grub2-install /dev/X" replace X with your drive name i.e sda,sdb,nvme etc... thereafter you can run grub2-mkconfig to re-generate the config files.
otherwise restoring everything from backups would be the best alternative.
Andrew N. - cPanel Plesk VMWare Certified Professional
Do you need immediate assistance? 20 minutes response time!*
EmergencySupport - Professional Server Management and One-time Services0 -
If you have a storage box - gzip and upload, then restore from your backup, and then unzip over the top... I agree, my impression was 30mins job done. 3 days later I'm still sorting the aftermath, wish I hadn't done it now.
0 -
I'm sorry to hear you ran into issues! We'd be happy to take a look at the system if you need us to!
0 -
AndrewN how i contact you, i have a problem, went triyng to update system fail and now looks like this image. And all my websites it´s down since yesterday.
0 -
Alex,
Looks like you were able to reach me by clicking on my signature :) I just replied to your mail.
Andrew N. - cPanel Plesk VMWare Certified Professional
Do you need immediate assistance? 20 minutes response time!*
EmergencySupport - Professional Server Management and One-time Services0 -
Thanks Andrew
1 -
I don't usually do this kind of thing, but the occasion is worth it. Today this crack AndrewN solved a problem for me that may be simple for many but for us it was a big headache. He really is an excellent professional and if you really need serious, fast and honest support... you should contact him.
2 -
Thanks for the kind words, Alex Malave! Andrew has been an excellent contribute to the Forum for some time now, and I'm glad he was able to help with your situation!
1
Please sign in to leave a comment.
Comments
20 comments