[Bug 463033] New: grub not installed when selected target only root on md RAID logical
https://bugzilla.novell.com/show_bug.cgi?id=463033 Summary: grub not installed when selected target only root on md RAID logical Product: openSUSE 11.1 Version: Final Platform: x86 OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Installation AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: mrmazda@ij.net QAContact: jsrain@novell.com Found By: --- Created an attachment (id=262841) --> (https://bugzilla.novell.com/attachment.cgi?id=262841) save_y2logs output I fully partitioned 2 SATA HD on ICH7 prior to booting 11.0 and 11.1 installers using Grub with previously downloaded linuxes and initrds. I used Knoppix to install openSUSE 10.2 Grub and ChristmasTux message on ext2 sda1, and configured menu.lst to be able to boot a default kernel from either (hdX,7) or (hdX,8) using ROOT=LABEL=, or by chainloading to either (hdX,7) or (hdX,8). During 11.0 boxed DVD installation expert partitioning I selected sda1 to mount on /disks/hda/boot and various non-native partitions to mount as sdX via default. I then set up sdX7-13 as md0-6, specified md1 (sdX8) for 11.0 /, and formatted all md devices ext3, including assigning labels. I specified md1 / as the only Grub installation location, and mounting Linux partitions by-label. Installation proceeded normally into successful kexec "reboot". No succeeding boot via chainloading from sda1 to / has succeeded. When I try, I get Grub error 13. Booting is only possible so far via the preinstalled 10.2 Grub and menu.lst on sda1. The day after 11.0 install to md1 I did a HTTP 11.1 install to md2 (sdX9). The results are exactly the same as with 11.0. In both 11.0 & 11.1, /etc/grub.conf (2 lines, 66 bytes for 11.1) and /etc/grub.conf.old (3 lines, 126 bytes for 11.1) exist. The 3 line files refer to both (hd0,X) and (hd1,X), while the 2 line files actually used by the installer only refer to (hd0,X). I used dd to dump the first sectors of sda8, sda9, sdb8, sdb9 & md2 to files. All 5 512 byte files contain nothing but nulls, which to me seems to mean the 11.0 & 11.1 installers never actually succeeded in installing Grub to their / partitions, even though /var/log/YaST2/y2log_bootloader claim they did. I have md3 reserved to install 11.2 Factory as soon as a working .28 kernel installer is available. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=463033
Felix Miata
https://bugzilla.novell.com/show_bug.cgi?id=463033
User mrmazda@ij.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=463033#c1
--- Comment #1 from Felix Miata
https://bugzilla.novell.com/show_bug.cgi?id=463033
User mrmazda@ij.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=463033#c2
--- Comment #2 from Felix Miata
https://bugzilla.novell.com/show_bug.cgi?id=463033
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=463033
User jreidinger@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=463033#c3
Josef Reidinger
https://bugzilla.novell.com/show_bug.cgi?id=463033
User jreidinger@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=463033#c4
Josef Reidinger
https://bugzilla.novell.com/show_bug.cgi?id=463033
User mrmazda@ij.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=463033#c5
--- Comment #5 from Felix Miata
I study logs and you have interesting disc setup ;) Why is set boot_custom is due to missing ability to parse dm raid from
But I have md RAID. Is md RAID missing too?
grub.conf, but it is not fatal (only confuse gui).
Confused me. What means "only confuse gui"?
failing md raid I don't know why...what subpackage of kernel you have -base, normale or -extra?
RPM query shows pae, pae-base and pae-extra of .27-9.1 installed.
please attach messages, this should include information why boot.md fail.
Since my previous comments boot.md no longer fails on either 11.0 or 11.1. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=463033
User mrmazda@ij.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=463033#c6
Felix Miata
Also try run grub install and after it please post what contain mbr of partition where grub write stage1 code.
I checked to find as of 30 Dec 21:17 /etc/grub.conf contains 3 lines: setup --stage2=/boot/grub/stage2 --forcelba (hd0,8) (hd0,8) setup --stage2=/boot/grub/stage2 --forcelba (hd1,8) (hd0,8) quit I then ran 'grub-install'. I see the PBR now contains Grub code. The behavior is changed. When I try to use the 10.2 Grub on sda1 to select the following stanzas: title chainload to /dev/hda9 (1 line) chainloader (hd0,8)+1 title chainload2 to /dev/hda9 (2 lines) root (hd0,8) chainloader +1 title chainload3 to /dev/hda9 (noverify 2 line) rootnoverify (hd0,8) chainloader +1 All return me to a (non-gfx) grub menu from sda1. If I drop to Grubs command line and enter 'chainloader (hd0,9)+1' or 'root (hd0,8)' 'chainloader +1' manually, I get error 13. I tried deleting the HPFS sda2 and creating IBM Boot Manager in its place. Selecting the 11.0 md1 or 11.1 md2 partitions returns a "Selected partition is not formatted" message. That message is the usual result of a missing Grub. DFSee confirms the absence of Grub on (hd0,8), so I again did 'dd if=/dev/sda9 of=sda9bs4.bin bs=512 count=1' after rebooting, and the result contains only nulls. So, what I hypothesize is happening is when grub "writes" during setup to a partition that is part of md RAID, it goes to some buffer that gets cleared before reboot instead of actually being written to disk. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=463033
User jreidinger@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=463033#c7
Josef Reidinger
https://bugzilla.novell.com/show_bug.cgi?id=463033
User mrmazda@ij.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=463033#c8
Felix Miata
OK, then you maybe hit parted bug, which zeroed some partition. Do you ran before reboot yast2 bootloader or yast2 disk or directly use parted?
I did not do: yast2 bootloader yast2 disk parted So I did just now: 1.# grub-install 2.# yast bootloader (made minor edits to default stanza) 3.# dfsee (confirmed presence of Grub on (hd0,8)) 4.reboot 5.get error 13 trying to chainload (hd0,8) 6.reboot 11.1 from sda1 stanza (without chainloading) 7.# dfsee (confirmed Grub missing from (hd0,8) again) 8.checked /etc/grub.conf to see it is now 2 lines again: setup --stage2=/boot/grub/stage2 --forcelba (hd1,8) (hd0,8) quit 9.restored 3 line grub.conf 10.edited grub.conf to do hd0,7 & hd1,7 11.# grub-install (while md1/hd0,7&hd1,7 unmounted) 12.# dfsee (confirmed presence of Grub on (hd0,7)) 13.reboot 14.get 11.0's Grub menu by chainloading (hd0,7) 15.boot 11.0 successfully So, it appears that, as long as an md device is mounted, Grub can't be successfully written to its partitions via native Grub setup command. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=463033
User jreidinger@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=463033#c9
Josef Reidinger
https://bugzilla.novell.com/show_bug.cgi?id=463033
User mrmazda@ij.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=463033#c10
--- Comment #10 from Felix Miata
https://bugzilla.novell.com/show_bug.cgi?id=463033
User jreidinger@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=463033#c11
Josef Reidinger
https://bugzilla.novell.com/show_bug.cgi?id=463033
User jreidinger@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=463033#c12
Josef Reidinger
https://bugzilla.novell.com/show_bug.cgi?id=463033
User mrmazda@ij.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=463033#c13
--- Comment #13 from Felix Miata
https://bugzilla.novell.com/show_bug.cgi?id=463033
User duwe@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=463033#c14
Torsten Duwe
https://bugzilla.novell.com/show_bug.cgi?id=463033
User jreidinger@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=463033#c15
Josef Reidinger
https://bugzilla.novell.com/show_bug.cgi?id=463033
Josef Reidinger
participants (1)
-
bugzilla_noreply@novell.com