Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Nov 2011 11:49:08 +0200
From:      Andriy Gapon <avg@FreeBSD.org>
To:        Florian Wagner <florian@wagner-flo.net>
Cc:        freebsd-fs@FreeBSD.org
Subject:   Re: Extending zfsboot.c to allow selecting filesystem from boot.config
Message-ID:  <4EC8CD14.4040600@FreeBSD.org>
In-Reply-To: <20111119211921.7ffa9953@naclador.mos32.de>
References:  <20111015214347.09f68e4e@naclador.mos32.de> <4E9ACA9F.5090308@FreeBSD.org> <20111019082139.1661868e@auedv3.syscomp.de> <4E9EEF45.9020404@FreeBSD.org> <20111019182130.27446750@naclador.mos32.de> <4EB98E05.4070900@FreeBSD.org> <20111119211921.7ffa9953@naclador.mos32.de>

next in thread | previous in thread | raw e-mail | index | archive | help
on 19/11/2011 22:19 Florian Wagner said the following:
>> on 19/10/2011 19:21 Florian Wagner said the following:

Andriy Gapon has not said anything in the quoted material? :-)
Please set up your mail client correctly or get used to adding quote
attributions manually.  They do matter.

>>>> [...]
>>>> 
>>>>> The only thing I was a bit confused by is that on the boot prompt 
>>>>> only the pool and filename to be booted are printed.
>>>> 
>>>> Do you mean the (gpt)zfsboot prompt?
>>> 
>>> Yes. For a boot.config with "rpool:root/something:" it prints:
>>> 
>>> Booting from Hard Disk... /boot.config: rpool FreeBSD/x86 boot Default:
>>> rpool:/boot/zfsloader boot: <CURSOR>
>> 
>> 
>> Thank you very much for your testing and reports! Please see these
>> additional changes: http://people.freebsd.org/~avg/zfsboot.fixes.diff
> 
> Thanks for the additional patch. It seems to be exactly what I'm looking
> for.
> 
> Sadly your patches (tested with and without the latest one) seem to break
> booting on RAID-Z2 arrays. The prior test, for which I've reported success
> were using a VM with only a single disk. Today I tried the patched
> bootloader on my fileserver with a 6 disk RAID-Z2 array. That didn't go so
> well:
> 
> Installing the modified gptzfsboot results in a blinking screen with 
> turquoise-striped ASCII background and assorted characters in the 
> foreground.

Not good.  Probably a memory corruption.

> Installing the modified zfsloader (but unmodified gptzfsboot) makes it 
> unable to find its root dataset:

Patched zfsloader requires certain information to be passed from (gpt)zfsboot,
which only the patched version provides.

[snip]

> A zfsloader built without your patches boots the system.
> 
> Any more information I can provide?

Please try to use zfsboottest (formerly zfstest) and a debugger to see where
the problem is.  I also would appreciate your testing the latest sys/boot code
in head or stable/9.

-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EC8CD14.4040600>