LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-11-2014, 12:31 PM   #1
snowkitty
Member
 
Registered: Feb 2014
Distribution: kubuntu
Posts: 43

Rep: Reputation: Disabled
Booting issues with GRUB involving RAID and HDD's that have to be off during boot


Hardware: DX58SO & RS2BL080

Setup: There's 3x power supplies powering the system. One to mainboard, one to normal HDD's and Fans, and one to RAID array. The RAID is a 7 stack RAID5 using SATA interface for a SAS controller (hardware, not onboard). There's 5 SATA drives connected directly to the mainboard with the onboard RAID disabled, and the RAID card set as first boot device in sequence. The RAID is setup as a single chunk with an MBR partitioning on it contaning 3 primary partitions, ntfs, ntfs, ext4. GRUB was selected to install into the MBR during instalation. It is GRUB2.

Problem: When booting up to grub with everything on, grub will dumb to rescue mode reporting inability to find by UUID. Uppon performing the command ls, only the SATA drives show up in the list and grub is not seeing the RAID array it is installed onto and booting from. It the SATA drives are disconnected (or simply turned off) during boot, GRUB will boot correctly, showing proper menu entries, at which stage I am able to turn the SATA drives back on and things will go as normal with proper mounting of all partitions/drives.

Key notes: My current OS is highly irrelevant here as this is reproducible with any OS installed, this is an issue with GRUB and not the OS.

TLDR version: GRUB2 doesn't see the hardware RAID it's installed onto if other drives are connected to onboard SATA interface.
 
Old 02-11-2014, 06:07 PM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
That almost sounds like a BIOS problem.

You might check and see if there is a BIOS flag about disk identification. I have a vague memory recall (getting old) that what sometimes happens is that the SATA connections get recognized first (the raid controller takes more time as it is checking consistency and such), thus the BIOS sees the SATA disks... and because the RAID controller hasn't responded yet, assumes it doesn't exist.

When the SATA disks are disconnected/powered down, it waits for the controllers... in which case the RAID controller eventually comes ready.

Thus when grub loads, it only sees what the BIOS has identified.

The reason for checking the BIOS flags is that it is possible that the RAID connection could be set to require its presence, and cause the BIOS to wait for that to come ready.

Linux doesn't have a problem with the disks being powered up later as it does its own device discovery pass, and finds them even though the BIOS didn't.

Last edited by jpollard; 02-11-2014 at 06:09 PM.
 
Old 02-11-2014, 07:17 PM   #3
snowkitty
Member
 
Registered: Feb 2014
Distribution: kubuntu
Posts: 43

Original Poster
Rep: Reputation: Disabled
Wouldn't that make GRUB completely inaccessible and not even able to boot to it, since it's installed on that RAID?

The entire boot process, even accessing into BIOS is held up by waiting for the RAID controller to finish loading. I can actually enter the RAID controller config before I can enter system BIOS (though, I can key in for the system BIOS first).

If it'd help, I can make a video from my phone to show the exact process/problem.
 
Old 02-12-2014, 05:54 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
If grub is coming from the RAID I would think so.

It is definitely odd.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] GRUB RAID - problem booting with Debian 6 amd64 nicolasdiogo Linux - Server 5 03-13-2013 05:31 PM
Sabayon 8 Installation issues - Sata Raid unable to boot (via grub) leo_mancini Linux - Software 1 05-02-2012 09:32 PM
GRUB dual booting problems W/raid PappaSmurf2143 Linux - Desktop 3 05-11-2008 10:31 AM
[RAID1, GRUB] Secondary HDD can't boot up when primary HDD fails Akhran Linux - Newbie 2 05-04-2006 04:17 AM
Grub - not booting my xp on hdd prabhatsoni Linux - General 10 10-10-2005 08:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration