[Bug 911547] New: grub2 needs several minutes to read files from btrfs
http://bugzilla.opensuse.org/show_bug.cgi?id=911547 Bug ID: 911547 Summary: grub2 needs several minutes to read files from btrfs Classification: openSUSE Product: openSUSE Distribution Version: 13.2 Hardware: x86-64 OS: Other Status: NEW Severity: Major Priority: P5 - None Component: Bootloader Assignee: jsrain@suse.com Reporter: richard@nod.at QA Contact: jsrain@suse.com Found By: --- Blocker: --- After a reboot I noticed that grub2 hangs at "welcome to grub". Fist I thought grub really hangs and somehow my computer/disk/fs died. But after few minutes I realized that grub proceeded. Very slowly it loaded all files from my btrfs and finally booted the kernel. Linux itself worked perfectly fine but as soon I rebooted grub needed several minutes to boot. After I did a "btrfs filesystem balance" on my rootfs grub2 as able to boot in a fast manner again. Can it be that grub2 has problems with a not nicely balanced btrfs? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=911547
Jiri Srain
http://bugzilla.opensuse.org/show_bug.cgi?id=911547
--- Comment #2 from Richard Weinberger
http://bugzilla.opensuse.org/show_bug.cgi?id=911547
--- Comment #3 from Michael Chang
http://bugzilla.opensuse.org/show_bug.cgi?id=911547
--- Comment #4 from Richard Weinberger
Yes. Please help to provide the download url, I'll try debugging it after the Chinese New Year.
Meanwhile is it possible for you to try grub2-mount and reading the initrd file to see if we can reproduce ?
Assuming that /dev/sda2 is your root partition
linux # grub2-mount /dev/sda2 /mnt linux # time /mnt/@/boot/initrd-<version>-default >/dev/null
Okay, I noticed something odd. I've moved the disk image from one filesystem to another, this made the problem go away. Can it be that grub2/btrfs has problems with sparse files? I'm using a raw image, created by qemu-img -f raw. *confused*, //richard -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=911547
--- Comment #5 from Michael Chang
(In reply to Michael Chang from comment #3)
Can it be that grub2/btrfs has problems with sparse files? I'm using a raw image, created by qemu-img -f raw.
If moving to another filesystem works, it looks to me the problem could be more on host files-system sparse file support or interaction with the qemu block dev driver. Not really a grub2 problem.
*confused*,
Me too .. Thanks. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=911547
http://bugzilla.opensuse.org/show_bug.cgi?id=911547#c6
Jon Nelson
http://bugzilla.opensuse.org/show_bug.cgi?id=911547
http://bugzilla.opensuse.org/show_bug.cgi?id=911547#c7
--- Comment #7 from Richard Weinberger
I'm encountering the same problem:
grub2-mount /dev/sda3 /var/lib/os-prober/mount ran for about two minutes.
Is this real hardware or also a virtual machine as in my case? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=911547
http://bugzilla.opensuse.org/show_bug.cgi?id=911547#c8
--- Comment #8 from Jon Nelson
participants (1)
-
bugzilla_noreply@novell.com