[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 <mrmazda@ij.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|grub not installed when selected target only |grub not installed when selected target only |root on md RAID logical |root on md RAID1 logical -- 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#c1 --- Comment #1 from Felix Miata <mrmazda@ij.net> 2008-12-30 19:25:00 MST --- I opened YaST2 bootloader in 11.1 and found only "custom boot partition" selected. The custom partition selected is illegible, as the YaST2 layout is broken for >96 DPI screens - the field is too short to display enough information about what is selected. I saved after switching selection from custom to root, redid dd on sda9 and sdb9, found Grub in them, but still get error 13 trying to chainload to the 11.1 RAID1 partition. -- 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#c2 --- Comment #2 from Felix Miata <mrmazda@ij.net> 2008-12-30 19:28:26 MST --- /var/log/boot.msg for 11.1 always shows "Failed features: boot.md; Skipped features: boot.cycle". -- 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 Andreas Jaeger <aj@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |jreidinger@novell.com |ovo.novell.com | -- 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#c3 Josef Reidinger <jreidinger@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #3 from Josef Reidinger <jreidinger@novell.com> 2009-01-22 00:59:38 MST --- OK, I look in logs what happen. Grub error 13(Invalid or unsupported executable format) looks like you have corrupted kernel images. -- 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#c4 Josef Reidinger <jreidinger@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |mrmazda@ij.net --- Comment #4 from Josef Reidinger <jreidinger@novell.com> 2009-01-22 02:44:42 MST --- I study logs and you have interesting disc setup ;) Why is set boot_custom is due to missing ability to parse dm raid from grub.conf, but it is not fatal (only confuse gui). failing md raid I don't know why...what subpackage of kernel you have -base, normale or -extra? please attach messages, this should include information why boot.md fail. Also try run grub install and after it please post what contain mbr of partition where grub write stage1 code. Thanks -- 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#c5 --- Comment #5 from Felix Miata <mrmazda@ij.net> 2009-01-22 07:26:20 MST --- Created an attachment (id=266878) --> (https://bugzilla.novell.com/attachment.cgi?id=266878) /var/log/messages from 11.1 on host big31 (In reply to comment #4)
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 <mrmazda@ij.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|mrmazda@ij.net | --- Comment #6 from Felix Miata <mrmazda@ij.net> 2009-01-22 07:26:28 MST --- Created an attachment (id=266879) --> (https://bugzilla.novell.com/attachment.cgi?id=266879) output of 'dd if=/dev/sda9 of=sda9bs3.bin bs=512 count=1' (In reply to comment #4)
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 <jreidinger@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |mrmazda@ij.net --- Comment #7 from Josef Reidinger <jreidinger@novell.com> 2009-01-22 07:39:51 MST --- 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? and answers confused gui means that it doesn't check boot from root and check boot custom md and dm is handled almost same (sorry for confuse I often change these two raid types :) -- 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#c8 Felix Miata <mrmazda@ij.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|mrmazda@ij.net | --- Comment #8 from Felix Miata <mrmazda@ij.net> 2009-01-22 08:34:48 MST --- I just notice that init shows error for boot.md, but it does not show up in /var/log/messages. (In reply to comment #7)
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 <jreidinger@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |DUPLICATE --- Comment #9 from Josef Reidinger <jreidinger@novell.com> 2009-01-26 09:01:20 MST --- OK, so what break your configuration is step 2, because also minor change in yast bootloader call parted (it is bug, which is fixed and maintenance for it is in stack). parted bug is tracked in bug 467576 and bootloader unnecessary call of parted in bug 461613 *** This bug has been marked as a duplicate of bug 461613 *** https://bugzilla.novell.com/show_bug.cgi?id=461613 -- 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#c10 --- Comment #10 from Felix Miata <mrmazda@ij.net> 2009-01-26 10:17:01 MST --- Bug 461613 does not show having ever been an 11.0 bug, but this bug is identical in both 11.0 and 11.1. I'll be surprised if the fix for that bug fixes this bug, because as I indicated in comment 8, even native grub doesn't work, and AFAIK it never calls parted. -- 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#c11 Josef Reidinger <jreidinger@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|DUPLICATE | --- Comment #11 from Josef Reidinger <jreidinger@novell.com> 2009-01-26 10:52:04 MST --- OK, reopen it....I overlook that it happen also on 11.0 -- 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#c12 Josef Reidinger <jreidinger@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO Info Provider| |duwe@novell.com --- Comment #12 from Josef Reidinger <jreidinger@novell.com> 2009-01-26 10:52:31 MST --- torsten - do you have any idea why error 13 shown when try to chainload? -- 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#c13 --- Comment #13 from Felix Miata <mrmazda@ij.net> 2009-01-26 11:07:00 MST --- Josef, it seems rather obvious to me. Grub is not actually writing to the disk, as the PBR is always empty upon boot, though it seems non-empty after running Grub's setup. -- 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 duwe@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=463033#c14 Torsten Duwe <duwe@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED CC| |duwe@novell.com Info Provider|duwe@novell.com | --- Comment #14 from Torsten Duwe <duwe@novell.com> 2009-03-02 04:54:28 MST --- If it's RAID1, this is probably a duplicate of bnc#462578 . RAID0 is unsupported. You might get it to work if you find a 100% corresponding BIOS device (-> fake RAID), but bnc#462578 would still apply then . -- 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#c15 Josef Reidinger <jreidinger@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |ASSIGNED Depends on| |462578 --- Comment #15 from Josef Reidinger <jreidinger@novell.com> 2009-03-02 05:16:25 MST --- OK, I mark that this bug depends on bug 462578 and after fix, we should try, if problems gone. -- 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 Josef Reidinger <jreidinger@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium -- 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.
participants (1)
-
bugzilla_noreply@novell.com