From owner-freebsd-fs@FreeBSD.ORG Sun Nov 20 09:49:15 2011 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB13F106566B for ; Sun, 20 Nov 2011 09:49:15 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 1F6D68FC0A for ; Sun, 20 Nov 2011 09:49:14 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id LAA02244; Sun, 20 Nov 2011 11:49:11 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1RS41P-000MGY-8L; Sun, 20 Nov 2011 11:49:11 +0200 Message-ID: <4EC8CD14.4040600@FreeBSD.org> Date: Sun, 20 Nov 2011 11:49:08 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:8.0) Gecko/20111108 Thunderbird/8.0 MIME-Version: 1.0 To: Florian Wagner 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> In-Reply-To: <20111119211921.7ffa9953@naclador.mos32.de> X-Enigmail-Version: undefined Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-fs@FreeBSD.org Subject: Re: Extending zfsboot.c to allow selecting filesystem from boot.config X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Nov 2011 09:49:15 -0000 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: >> >> >> 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