From owner-freebsd-fs@FreeBSD.ORG Mon Dec 22 10:30:01 2008 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 988AB1065673 for ; Mon, 22 Dec 2008 10:30:01 +0000 (UTC) (envelope-from arnaud.houdelette@tzim.net) Received: from golanth.tzim.net (unknown [IPv6:2001:41d0:1:d91f:21c:c0ff:fe4b:cf32]) by mx1.freebsd.org (Postfix) with ESMTP id 2A6768FC17 for ; Mon, 22 Dec 2008 10:30:00 +0000 (UTC) (envelope-from arnaud.houdelette@tzim.net) Received: from path-wifi.irisa.fr ([131.254.64.80]) by golanth.tzim.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1LEi2w-000CXU-TL; Mon, 22 Dec 2008 11:29:59 +0100 Message-ID: <494F6C21.2000801@tzim.net> Date: Mon, 22 Dec 2008 11:29:53 +0100 From: Arnaud Houdelette User-Agent: Thunderbird 2.0.0.18 (Macintosh/20081105) MIME-Version: 1.0 To: Doug Rabson References: <9461581F-F354-486D-961D-3FD5B1EF007C@rabson.org> <2F0DF92C-4240-48D4-9A5F-8B826D6D6E95@rabson.org> <87E89284-D3BF-4A5A-B6F7-C30709A3F2D9@lassitu.de> <4AC3BEB2-B47E-4280-85E1-C72891412D09@rabson.org> In-Reply-To: <4AC3BEB2-B47E-4280-85E1-C72891412D09@rabson.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Authenticated-User: tzim@tzim.net X-Authenticator: plain Cc: freebsd-fs@freebsd.org, Stefan Bethke Subject: Re: 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: Mon, 22 Dec 2008 10:30:01 -0000 As I'm fairly interrested in this kind of setup, I set up a virtual machine (VirtualBox) with 3 HD. Sources are from a fresh current (csup yesterday). Applied your patch successfully. Done a make installworld / installkernel to the zfs root. Applied the bootcode as Stephan. The seem's the loader gets loaded, but it cant proceed further. I got those kind of errors : ZFS: i/o error - all block copies unavailable ZFS: can't read MOS object directory Can't find root filesystem - giving up Then I get to the loader prompt. ls give same errors. show lists (partial) : currdev=zfs0 loaddev=disk1a lsdev lists : cd devices: disk devices : disk0: BIOS drive A: disk1: BIOS drive C: disk1p1: FreeBSD boot disk1p2: FreeBSD swap disk1p3: FreeBSD ZFS pxe devices: zfs devices: zfs0: ztboot ztboot is the name of my pool. but other physical disks aren't shown... Seem's the loader can't read the ZFS raidz pool. The loader as been built with LOADER_ZFS_SUPPORT option on /etc/make.conf Anything I could get wrong ? Arnaud Houdelette Doug Rabson a écrit : >
> On 20 Dec 2008, at 15:01, Stefan Bethke wrote: > >> Am 20.12.2008 um 15:23 schrieb Doug Rabson: >> >>> On 19 Dec 2008, at 21:46, Stefan Bethke wrote: >>> >>>> gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 $1 >> >>> 1. Are you absolutely sure you are using gptzfsboot built with the >>> patch - the steps you list above show you building it but not >>> installing it on the system which is initialising the pool. >> >> Ugh, sorry. That is in fact the old version from before the patch. I >> will try again tonight, with updated sources and the right gptzfsboot. > > You should be able to re-install gptzfsboot without changing anything > else using something like: > > # dd if=/boot/gptzfsboot of=dap1 conv=osync > > > >