From owner-freebsd-fs@FreeBSD.ORG Thu May 14 15:24:50 2009 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 1B8EB1065670 for ; Thu, 14 May 2009 15:24:50 +0000 (UTC) (envelope-from dfr@rabson.org) Received: from itchy.rabson.org (router.rabson.org [80.177.232.241]) by mx1.freebsd.org (Postfix) with ESMTP id B26258FC1F for ; Thu, 14 May 2009 15:24:48 +0000 (UTC) (envelope-from dfr@rabson.org) Received: by itchy.rabson.org (Postfix, from userid 80) id D95235DB9; Thu, 14 May 2009 16:25:02 +0100 (BST) To: Peter Jeremy MIME-Version: 1.0 Date: Thu, 14 May 2009 16:25:02 +0100 From: Doug Rabson In-Reply-To: <20090201072432.GA25276@server.vk2pj.dyndns.org> References: <9461581F-F354-486D-961D-3FD5B1EF007C@rabson.org> <20090201072432.GA25276@server.vk2pj.dyndns.org> Message-ID: <246ecf0c87f944d70c5562eeed4165c9@mail.rabson.org> X-Sender: dfr@rabson.org User-Agent: RoundCube Webmail/0.2.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="UTF-8" Cc: freebsd-fs@freebsd.org Subject: Re: Booting from ZFS raidz 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: Thu, 14 May 2009 15:24:50 -0000 On Sun, 1 Feb 2009 18:24:32 +1100, Peter Jeremy wrote: > On 2008-Dec-17 18:25:51 +0000, Doug Rabson wrote: >>I've been working on adding raidz and raidz2 support to the boot code >>and I have a patch which could use some testing if anyone here is >>interested. This http://people.freebsd.org/~dfr/ >>raidzboot-17122008.diff adds support for raidz and raidz2. The easiest >>way to prepare a bootable pool is to put a GPT boot partition on each >>disk that will make up the raidz pool and install gptzfsboot on the >>boot partition of every drive. > > This sounds great so I thought I'd try it. Unfortunately, it didn't > work on my degraded pool [ZFS managed to kill a disk and I thought I'd > experiment]. When I tried to boot, I got: > ZFS: i/o error - all block copies unavailable > ZFS: can't read MOS > ZFS: unexpected object set type lld > > FreeBSD/i386 boot > Default: tank:/boot/loader > boot: > > The boot loader is up-to-date and was built with 'LOADER_ZFS_SUPPORT'. > Any ideas? I fixed a bug in the patch. Try this version: http://people.freebsd.org/~dfr/raidzboot-14052009.diff