[Bug 785226] New: grub2 with raid1 no longer working after update on 15.10.2012
https://bugzilla.novell.com/show_bug.cgi?id=785226 https://bugzilla.novell.com/show_bug.cgi?id=785226#c0 Summary: grub2 with raid1 no longer working after update on 15.10.2012 Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: x86-64 OS/Version: openSUSE 12.2 Status: NEW Severity: Critical Priority: P5 - None Component: Bootloader AssignedTo: jsrain@suse.com ReportedBy: mail@frank-ansari.de QAContact: jsrain@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.92 Safari/537.4 Grub2 used to work but after updating to kernel 3.4.11-2.16 the system did not come up again. The system is a server from Hetzner. I requested a Lara console from the support and found this error message from Grub2: error: file '/grub2/i386-pc/normal.mod' not found. There must be something wrong with the paths because the file is there of course. I tried to remake the config both with Yast and grub2-mkconfig. Nothing worked so I had to go back to Grub Legacy.
From the Grub rescue console I did this:
set prefix=(hd0,2)/boot/grub2 set root=(hd0,2) insmod normal insmod linux linux /vmlinuz root=/dev/md2 initrd /initrd boot This makes the system boot correctly. Reproducible: Always Steps to Reproduce: 1. 2. 3. -- 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=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c1
--- Comment #1 from Frank Ansari
https://bugzilla.novell.com/show_bug.cgi?id=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c2
--- Comment #2 from Frank Ansari
https://bugzilla.novell.com/show_bug.cgi?id=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c3
--- Comment #3 from Frank Ansari
https://bugzilla.novell.com/show_bug.cgi?id=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c4
--- Comment #4 from Frank Ansari
https://bugzilla.novell.com/show_bug.cgi?id=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c
Frank Ansari
https://bugzilla.novell.com/show_bug.cgi?id=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c
Frank Ansari
https://bugzilla.novell.com/show_bug.cgi?id=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c
Jiri Srain
https://bugzilla.novell.com/show_bug.cgi?id=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c5
Alexander van Kaam
https://bugzilla.novell.com/show_bug.cgi?id=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c6
--- Comment #6 from Frank Ansari
https://bugzilla.novell.com/show_bug.cgi?id=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c7
--- Comment #7 from Frank Ansari
https://bugzilla.novell.com/show_bug.cgi?id=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c8
--- Comment #8 from Frank Ansari
https://bugzilla.novell.com/show_bug.cgi?id=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c9
--- Comment #9 from Michael Chang
Seems that the bootloader has some hardcoded path where it looks for the *.mod files and config. And if this path is wrong (as it seems to be) nothing is working.
The prefix is hardcoded to core.img when creating it by grub2-mkimage, however on i386-pc it's LZMA compressed so you cannot observe the hardcoded path in it by hexdump -C or other means.
How can we fix this?
There's an --compression=none to not use compression, but unfortunately that option is not work for i386-pc, in any case it would be forced to use LZMA compression. Thus I would suggest to create the image with other format (i386-multiboot) which --compression=none should work on, and observe the prefix is correctly coded in it or not via hexdump. Before trying above approach, it'd be better to know the parameters from the below outputs $ grub2-probe --target=drive /boot $ grub2-probe --target=fs /boot $ grub2-probe --target=partmap /boot $ grub2-probe --target=abstraction /boot 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=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c
Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c10
--- Comment #10 from Frank Ansari
https://bugzilla.novell.com/show_bug.cgi?id=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c11
Richard Warner
https://bugzilla.novell.com/show_bug.cgi?id=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c12
--- Comment #12 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c13
--- Comment #13 from Michael Chang
prefix=(mduuid/7e...b2/grub2
The prefix format is incorrect, the closing ')' was missing. It should be of form like (device)path. -- 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=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c14
--- Comment #14 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c15
--- Comment #15 from Michael Chang
I have found that grub2 in opensuse 12.2 does not work properly with 0.9 metadata RAIDs. Please see this forum post:
http://forums.opensuse.org/english/get-technical-help-here/install-boot-logi...
Thanks for your information. I have no good idea, there's error message in your post that is same with this bug report, but don't why grub2-probe fails in your setup later. I have to setup a environment to get more bits clear to me. :/ -- 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=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c16
--- Comment #16 from Frank Ansari
(In reply to comment #8)
prefix=(mduuid/7e...b2/grub2
The prefix format is incorrect, the closing ')' was missing. It should be of form like (device)path.
This was just a type of mine. The closeing ')' was there of course. -- 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=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c17
--- Comment #17 from Frank Ansari
https://bugzilla.novell.com/show_bug.cgi?id=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c18
--- Comment #18 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c19
--- Comment #19 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c20
--- Comment #20 from Frank Ansari
https://bugzilla.novell.com/show_bug.cgi?id=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c21
--- Comment #21 from Frank Ansari
https://bugzilla.novell.com/show_bug.cgi?id=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c22
--- Comment #22 from Frank Ansari
https://bugzilla.novell.com/show_bug.cgi?id=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c23
Takeshi Shon
https://bugzilla.novell.com/show_bug.cgi?id=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c24
--- Comment #24 from Michael Chang
I had problems too after updating a server at Hetzner today.
I saved the errors when I did a zypper up, maybe it helps: Perl-Bootloader: 2012-10-18 10:30:07 ERROR: Command '/usr/sbin/grub2-install --force --skip-fs-probe /dev/sda2 >/var/log/YaST2/y2log_bootloader 2>&1' failed with code 256 and output: /usr/sbin/grub2-bios-setup: warning: File system `ext2' doesn't support embedding. /usr/sbin/grub2-bios-setup: error: embedding is not possible, but this is required for RAID and LVM install.
For raid you'd better use mbr (/dev/sda). Because only when core image (core.img) loaded could provide access to the raid device. It has to be embedded in raw consecutive sectors not managed(mapped) by raid. The mbr hole (the sectors falls between mbr and starting of first partition) is the only right place for it. That error was complaining about that. -- 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=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c25
--- Comment #25 from Frank Ansari
https://bugzilla.novell.com/show_bug.cgi?id=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c26
--- Comment #26 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c27
--- Comment #27 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=785226
https://bugzilla.novell.com/show_bug.cgi?id=785226#c28
Jeffrey Cheung
participants (1)
-
bugzilla_noreply@novell.com