Bug 234724

Summary: grub is not being installed on SiI 3112 RAID 1 set
Product: [Fedora] Fedora Reporter: Michael Wiktowy <michael.wiktowy>
Component: grubAssignee: Peter Jones <pjones>
Status: CLOSED INSUFFICIENT_DATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: triage
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: bzcl34nup
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-07 01:23:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 150226, 224205    

Description Michael Wiktowy 2007-03-31 21:37:54 UTC
Description of problem:
I installed F7test3 via the LiveCD and grub is not being written to the MBRs of
the RAID 1 set. The existing incorrect MBR remains and prevents proper booting.

Version-Release number of selected component (if applicable):
F7LiveCD

How reproducible:
Consistently happens but I have only tried reinstalling twice

Steps to Reproduce:
1. install F7test3 via the liveCD
2. make sure that you select the option to write grub to the MBR of
/dev/mapper/.... RAID set
  
Actual results:
grub does not get written to the MBR

Expected results:
grub should be written in the proper way to boot the mirrored installation.

Comment 1 Michael Wiktowy 2007-04-04 05:00:28 UTC
Some more info.
I tried to install the MBR manually and got a bit further:

###
[root@localhost ~]# grub --device-map=/dev/null

    GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename.]

grub> device (hd0,1) /dev/mapper/sil_ahaeabccebbg2

grub> device (hd0) /dev/mapper/sil_ahaeabccebbg 

grub> root (hd0,1)
 Filesystem type is ext2fs, partition type 0x83

grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  15 sectors are embedded.
succeeded
 Running "install /boot/grub/stage1 (hd0) (hd0)1+15 p (hd0,1)/boot/grub/stage2
/boot/grub/grub.conf"... failed

Error 22: No such partition

grub> find /boot/grub/stage
 Possible files are: stage1 stage2

grub> find /boot/grub/stage1
 (hd0,1)

grub> find /boot/grub/stage2
 (hd0,1)

grub> find /boot/grub/grub.conf
 (hd0,1)

grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  15 sectors are embedded.
succeeded
 Running "install /boot/grub/stage1 (hd0) (hd0)1+15 p (hd0,1)/boot/grub/stage2
/boot/grub/grub.conf"... failed

Error 22: No such partition
###

Still failed ... have yet to see how far it boots.

Comment 2 Michael Wiktowy 2007-04-04 05:04:04 UTC
Some more info from when I activated my RAID ... this should have been before
the rest as grub will not let you define these as devices until you activate them:

###
[fedora@localhost ~]$ su -
[root@localhost ~]# dmraid -s
*** Set
name   : sil_ahaeabccebbg
size   : 625140400
stride : 0
type   : mirror
status : ok
subsets: 0
devs   : 2
spares : 0
[root@localhost ~]# dmraid -ay
[root@localhost ~]# dmraid -s
*** Active Set
name   : sil_ahaeabccebbg
size   : 625140400
stride : 0
type   : mirror
status : ok
subsets: 0
devs   : 2
spares : 0
[root@localhost ~]# ls -la /dev/mapper/ {pressed tab}
control            livecd-rw          sil_ahaeabccebbg   sil_ahaeabccebbg1 
sil_ahaeabccebbg2  sil_ahaeabccebbg3  
[root@localhost ~]# 
###

Comment 3 Michael Wiktowy 2007-04-04 05:30:23 UTC
(In reply to comment #1)
> Still failed ... have yet to see how far it boots.

Now the stage1 is installed in the MBR of the RAID set but I get a continuous
never-ending stream of "GRUB Loading stage1.5" messages even when I pull out the
second SATA drive of the RAID set.


Comment 4 Michael Wiktowy 2007-05-03 19:12:48 UTC
I am now getting to the point where I get a grub prompt and then can't boot to a
kernel because when I try to set the boot partition I get the following error:
Error 18: Selected cylinder exceeds maximum supported by BIOS
... even though installing and booting to one single disk of the ones used in
teh RAID set works fine.

I am under the impression that most people just recommend that users do software
RAID even if there is some hardware-assisted RAID on their controller card.

I would be happy with an anaconda solution that allows Linux to just completely
ignore the dmraid-ness of the machine when it is enabled in the BIOS and just
install grub and initrd as if it was a plain software RAID 1. That would allow
me to have my Windows partition (that has no concept of plain software RAID) to
use the BIOS RAID and my Linux partition to happily use pure software RAID.

I'm not sure if the Sil 3112 RAID BIOS would actively interfere with this scheme
though.

Comment 5 Bug Zapper 2008-04-03 23:52:38 UTC
Based on the date this bug was created, it appears to have been reported
against rawhide during the development of a Fedora release that is no
longer maintained. In order to refocus our efforts as a project we are
flagging all of the open bugs for releases which are no longer
maintained. If this bug remains in NEEDINFO thirty (30) days from now,
we will automatically close it.

If you can reproduce this bug in a maintained Fedora version (7, 8, or
rawhide), please change this bug to the respective version and change
the status to ASSIGNED. (If you're unable to change the bug's version
or status, add a comment to the bug and someone will change it for you.)

Thanks for your help, and we apologize again that we haven't handled
these issues to this point.

The process we're following is outlined here:
http://fedoraproject.org/wiki/BugZappers/F9CleanUp

We will be following the process here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping to ensure this
doesn't happen again.

Comment 6 Bug Zapper 2008-05-07 01:23:27 UTC
This bug has been in NEEDINFO for more than 30 days since feedback was
first requested. As a result we are closing it.

If you can reproduce this bug in the future against a maintained Fedora
version please feel free to reopen it against that version.

The process we're following is outlined here:
http://fedoraproject.org/wiki/BugZappers/F9CleanUp