Koozali.org: home of the SME Server

GRUB Loading stage2... [FIXED]

Offline judgej

  • *
  • 375
  • +0/-0
GRUB Loading stage2... [FIXED]
« on: May 28, 2014, 12:52:26 AM »
Well, this is going to be fun :-(

I ran the SME 8 updates today, just as I have run updates previously for the last 15 years, but for the first time, the server will now not reboot.

It hangs with the message "GRUB Loading stage2...". Is this something that can be fixed by reinstalling grub? Or can I back out of one of the recent updates?

I'm using a Proliant Microserver, with the buildin hardware RAID (so SME sees just one disk), and with a BIOS dated around 2011, and which I can not upgrade without some kind of support agreement (thanks HP for that bait-and-switch!). This server has installed all the SME 8 updates fine for the last year and worked without a hitch, but I am wondering if the latest update has widened the compatibility issues between this BIOS and whatever version of CentOS is being used.

My hope is someone else has encountered this and has a simple solution.

-- Jason
« Last Edit: May 30, 2014, 10:16:38 PM by judgej »
-- Jason

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: GRUB Loading stage2...
« Reply #1 on: May 28, 2014, 08:03:57 AM »
did you try to boot with the previous kernel?

Offline judgej

  • *
  • 375
  • +0/-0
Re: GRUB Loading stage2...
« Reply #2 on: May 28, 2014, 10:06:14 AM »
did you try to boot with the previous kernel?

No, I haven't tried this. Presumably I need to boot from a recovery disk and edit grub.conf to set the kernel? Or is there a key I need to press to get a prompt? I'm burning myself a new CDROM now.
« Last Edit: May 28, 2014, 10:09:46 AM by judgej »
-- Jason

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: GRUB Loading stage2...
« Reply #3 on: May 28, 2014, 10:09:14 AM »
when you boot your server, after post screen, you should see a list of bootable kernel.. choose the previuos (should be the second from top)

Offline judgej

  • *
  • 375
  • +0/-0
Re: GRUB Loading stage2...
« Reply #4 on: May 28, 2014, 10:21:46 AM »
when you boot your server, after post screen, you should see a list of bootable kernel..

No, I'm not seeing that. It jumps straight from the last stage of the POST (telling me all the disks pass the SMART tests) to "GRUB Loading stage2..."

From what I can tell, reading around, GRUB is asking the BIOS for access to some part of the disk that the BIOS can't give it, and just locks up because it cannot get any further. What I can't work out is what could have changed in the last update to make this happen. Maybe a new grub.conf is on the disk, and has been moved just a little too far from the start of the disk? This is why I have been trying to get a BIOS update, in case there are fixes in there. Or maybe grub just got corrupted during the update and needs reinstalling. Dunno, kind of guessing now.
« Last Edit: May 28, 2014, 10:32:51 AM by judgej »
-- Jason

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: GRUB Loading stage2...
« Reply #5 on: May 28, 2014, 10:43:42 AM »
start with cd in rescue mode, mount existing instance of SME

then check /boot for space left and edit menu.lst to boot from a different kernel

Offline judgej

  • *
  • 375
  • +0/-0
Re: GRUB Loading stage2...
« Reply #6 on: May 28, 2014, 10:54:26 AM »
Bizarrely, all my CDROMs are 702Mbytes and SME 8.1 is 722Mbytes and won't fit on. I'll download SME 8.0 and see if that works for me.

Edit: no, 722Mbyte also. I'll go shopping today and try tonight, if a DVD-ROM does not work in the meantime.
« Last Edit: May 28, 2014, 10:58:38 AM by judgej »
-- Jason

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: GRUB Loading stage2...
« Reply #7 on: May 28, 2014, 11:07:19 AM »
I installed several SMEs on HP microserver via usb

read here: http://wiki.contribs.org/Install_From_USB

Offline judgej

  • *
  • 375
  • +0/-0
Re: GRUB Loading stage2...
« Reply #8 on: May 28, 2014, 11:36:18 AM »
I installed several SMEs on HP microserver via usb

read here: http://wiki.contribs.org/Install_From_USB

Brilliant - thank you. I'll give that a try.
-- Jason

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: GRUB Loading stage2...
« Reply #9 on: May 28, 2014, 02:20:56 PM »
I'm using a Proliant Microserver, with the buildin hardware RAID (so SME sees just one disk)...

That server doesn't have hardware RAID. It has "fakeraid" mediated by the BIOS. Water under the bridge now, but you would have been better off with linux software RAID.

Offline judgej

  • *
  • 375
  • +0/-0
Re: GRUB Loading stage2...
« Reply #10 on: May 28, 2014, 03:14:27 PM »
That server doesn't have hardware RAID. It has "fakeraid" mediated by the BIOS. Water under the bridge now, but you would have been better off with linux software RAID.

I'll bear that in mind next time I install on one of these servers. However, is it really water under the bridge? If I pull one of the hard drives, turn off fakeraid, can SME S/W RAID be turned on and the second disk put back in to sync up? Obviously I need to get this server to boot first, but if it is worth tackling later, and is feasible, I'll give it a go.
-- Jason

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: GRUB Loading stage2...
« Reply #11 on: May 28, 2014, 05:53:09 PM »
no

the only way to act is to backup, reinstall and restore..

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: GRUB Loading stage2...
« Reply #12 on: May 28, 2014, 07:48:58 PM »
the only way to act is to backup, reinstall and restore..

Not quite. I think it would be possible to do a fresh install on a single disk, then boot with the fakeraid disk added, and then follow the "restore from another disk" process. Then turn off fakeraid, and add the second desk into the RAID array.

But backup, reinstall and restore would probably be safer.

Offline judgej

  • *
  • 375
  • +0/-0
Re: GRUB Loading stage2...
« Reply #13 on: May 29, 2014, 01:59:56 AM »
Bit stuck on rescue mode.

I have booted "linux rescue" or "sme rescue" (different sources list different commands) from a USB key. The boot process now wants me to select the source of the rescue image. It gives me a choice of CDROM, HD, NFS image, FTP or HTTP. None of them include the USB key, so far as I understand. So can a rescue not be done from a USB key?

I was expecting the rescue mode to drop me into a prompt, but I guess not.
« Last Edit: May 29, 2014, 02:17:04 AM by judgej »
-- Jason

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: GRUB Loading stage2...
« Reply #14 on: May 29, 2014, 03:14:07 AM »
So can a rescue not be done from a USB key?

Possibly not. I don't know if it has ever been tested. Or it might depend on how you copy the iso image to the key. Can you try a CDROM/DVD?