Well, the provider pointed me to a forum post regarding Ubuntu, not CentOS, so I was a bit hampered & the fact that I'd never touched grub has not helped either
The system boots to grub & leaves me here: -
vKVM_GRUB_useless.png
The system is using software RAID1, so I've struggled to get anything more than a half booted system, which kernel panics or other crap outcome...
I had a go at using Super Grub Disk to help me repair the problem but it seems like it was unable.
I also tried the CentOS NetInstall/Recovery CD/ISO which showed some promise (where I thought I'd be able to do "chroot /mnt/sysimage ; grub-install /dev/md2" or something), but the system crashes just after it says you're about to be able to do that stuff.
I tried manually going to the CLI (skipping the auto mounting etc), but I couldn't find appropriate instructions to follow in order to dig myself out of the hole.
OK, I've (with a LOT of trial & error) got the system to boot, but now I need to re-install grub, as it's definitely not happy with the status quo...
The original /boot/grub/grub.conf was like this: -
Code: Select all
default=0
timeout=5
title linux centos6_64
kernel /bzImage-3.2.13-xxxx-grs-ipv6-64 root=/dev/md2 ro
root (hd0,0)
However, when attempting to run that from the "grub>" prompt like this: -
Code: Select all
grub> kernel /bzImage-3.2.13-xxxx-grs-ipv6-64 root=/dev/md2 ro
grub> root (hd0,0)
grub> boot
It doesn't go to plan, as there only seems to be /dev/md127 (/) & /dev/md126 (/boot). When I try to use one of the new/available "md" devices, I get an incomplete boot (probably obviously).
Right, the latest is that I have used the netinstall.iso shell, to individually mount the separate partitions and manually edit the /boot/grub/grub.conf and /etc/fstab for the changed /dev/md* devices.
I booted up again & manually entered the worky details like so: -
Code: Select all
grub> kernel /bzImage-3.2.13-xxxx-grs-ipv6-64 root=/dev/md127 ro 1
grub> root (hd0,0)
grub> boot
This allowed me to boot up (into single user mode for now) and from there I tried to reinstll grub with: -
vKVM_grub-install.png
But on reboot, it still fails to boot automatically. Now I'm stumped
And this is just in order to get the provider's crappy grsec kernel back into action, not even started to figure out how to boot the one I installed with yum...