Bug 145613 - [boot] booting from zfs root not working
Summary: [boot] booting from zfs root not working
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 7.3-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: Bugmeister
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-10 18:30 UTC by freebsd
Modified: 2023-12-31 02:52 UTC (History)
0 users

See Also:


Attachments
smime.p7s (4.43 KB, application/x-pkcs7-signature)
2010-04-11 15:02 UTC, freebsd
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description freebsd 2010-04-10 18:30:03 UTC
I've used http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot to install FreeBSD 8.0 on zfs root before successfully (more than once, i386 and amd64).

Because I've seen FreeBSD 7.3-RELEASE now supports gptzfsboot without the need to recompile the loader (LOADER_ZFS_SUPPORT=YES is now the default), I'm trying to migrate an existing 7.3-RELEASE machine to zfs root.

After spending one day on trying the second advertised feature in the 7.3 announcement ("new boot loader gptzfsboot supports GPT and ZFS") I found the little note in ERRATA that zfsloader is not zfs aware.

So I've added the patch from http://svn.freebsd.org/changeset/base/205539 and tried again. But without success.

I see the BTX loader, then the ZFS aware loader (which again tells me "BIOS drive C: is disk0" - this does not happen under 8.0) and then it scrolls very fast and the screen is full of

forth not found
builtin not found
only not found

Because this machine is more or less production, I've set up four different FreeBSDs in VirtualBox.

8.0-RELEASE amd64: zfs root works fine
8.0-STABLE amd64: zfs root works fine
7.3-RELEASE amd64: zfsloader fails with "FATAL: int13_harddisk: function 42. Can't use 64bits lba" 
7.3-STABLE amd64: zfsloader fails with "FATAL: int13_harddisk: function 42. Can't use 64bits lba"

So I'm not able to reproduce the same error with VirtualBox but a new one that also does not occur under 8.

[I'd like to upgrade to 8, too, but this machine is using vlan+lagg+em which is broken in 8].

How-To-Repeat: Install 7.3-RELEASE using http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot (7.3's gpart works a bit "different" - you'll need a calculator for the -b and -s parameters).

In step 2.7. apply the patch for sys/boot/i386/loader/Makefile and follow the compile/install steps.

Try to boot from the new hard disk. It will fail.
Comment 1 Garrett Cooper 2010-04-10 23:08:37 UTC
Hi Frank,
    1. What variables have you defined in your src.conf before you ran
installworld?
    2. The errors that you're seeing appear to be emanating from the
ficl interpreter. I'd need to dig more, but this may just be a symptom
of the bootloader being unable to read your disk.
Thanks,
-Garrett
Comment 2 freebsd 2010-04-11 15:02:49 UTC
Hi Garrett,

On Sat, Apr 10, 2010 at 15:08:37 -0700, Garrett Cooper wrote:
> Hi Frank,
>     1. What variables have you defined in your src.conf before you ran
> installworld?

none for 7.3-RELEASE, LOADER_ZFS_SUPPORT="YES" for 8.0-RELEASE.

>     2. The errors that you're seeing appear to be emanating from the
> ficl interpreter. I'd need to dig more, but this may just be a symptom
> of the bootloader being unable to read your disk.

I think you're right. I was told by Alexander Zagrebin <alexz@visp.ru>,
the submitter of
http://svn.freebsd.org/viewvc/base?view=revision&revision=205539:
"lsdev command doesn't show any zfs devices. :(" - I did not see
the prompt, so I did not try to type commands.

Thanks,
Frank
Comment 3 freebsd 2010-04-12 23:35:58 UTC
On Sun, Apr 11, 2010 at 16:02:49 +0200, Frank Bartels wrote:

> >     2. The errors that you're seeing appear to be emanating from the
> > ficl interpreter. I'd need to dig more, but this may just be a symptom
> > of the bootloader being unable to read your disk.
> 
> I think you're right. I was told by Alexander Zagrebin <alexz@visp.ru>,
> the submitter of
> http://svn.freebsd.org/viewvc/base?view=revision&revision=205539:
> "lsdev command doesn't show any zfs devices. :(" - I did not see
> the prompt, so I did not try to type commands.

I've installed 7.3-STABLE/amd64 under VMWare server now. This VM
dows not show the 'FATAL: int13_harddisk: function 42. Can't use
64bits lba' issue and seems to behave exactly like my hardware this
pr is referring to.

After a screen full of

builtin not found
forth not found

I see

only not found

can't load 'kernel'

Type '?' for a list of commands. 'help' for more detailed help.
OK ls
open '/' failed: input/output error
OS lsdev
cd devices:
disk devices:
    disk0:   BIOS drive A:
    disk1:   BIOS drive C:
    disk2:   BIOS drive D:
pxe devices:
zfs devices:
OK

So the systems was able to load zfsloader from my zfsroot and forgot
where to load the kernel from. Correct?

Thanks,
Knarf

P.S.: This time without annoying S/MIME signature, displayed under
http://www.freebsd.org/cgi/query-pr.cgi?pr=145613&cat= , but it's
still me. :)
Comment 4 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:01:08 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 5 Mark Linimon freebsd_committer freebsd_triage 2023-12-31 02:52:27 UTC
^Triage: close as OBE.

I'm sorry that this PR never got looked at, but by now, 7.X is long out of support