From owner-freebsd-current@FreeBSD.ORG Mon Oct 26 15:35:07 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 630751065676 for ; Mon, 26 Oct 2009 15:35:07 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from gizmo.2hip.net (gizmo.2hip.net [64.74.207.195]) by mx1.freebsd.org (Postfix) with ESMTP id 08F918FC30 for ; Mon, 26 Oct 2009 15:35:06 +0000 (UTC) Received: from [192.168.1.4] (adsl-150-102-19.bna.bellsouth.net [72.150.102.19]) (authenticated bits=0) by gizmo.2hip.net (8.14.3/8.14.3) with ESMTP id n9QFZ4j8069565 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Mon, 26 Oct 2009 11:35:05 -0400 (EDT) (envelope-from rnoland@FreeBSD.org) From: Robert Noland To: merijn@inconsistent.nl In-Reply-To: References: <1256517106.2502.205.camel@balrog.2hip.net> Content-Type: text/plain Organization: FreeBSD Date: Mon, 26 Oct 2009 10:34:59 -0500 Message-Id: <1256571299.2502.219.camel@balrog.2hip.net> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00, RCVD_IN_SORBS_DUL, RDNS_DYNAMIC, SPF_SOFTFAIL autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on gizmo.2hip.net Cc: "freebsd-current@freebsd.org" Subject: Re: GPT boot with ZFS RAIDZ "ZFS: i/o error - all block copies unavailable" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Oct 2009 15:35:07 -0000 On Mon, 2009-10-26 at 10:23 +0100, Merijn Verstraaten wrote: > On Mon, 26 Oct 2009 01:31:46 +0100, Robert Noland > wrote: > >> After installing 8.0-RC1 (amd64) from USB stick this installation works > >> fine. If I csup to RELENG_8 (amd64) and compile + install world and > >> kernel > >> booting from the ZFS fails. The initial installation I did just this, on > >> another attempt I ran "gpart bootcode -b /boot/pbmr -p /boot/gptzfsboot > >> adX" on all disks before rebooting to see if that had any effect. The > >> end > >> result is the same. After rebooting the machine I get the following > >> prompt(s): > >> > >> ZFS: i/o error - all block copies unavailable > >> Invalid format > >> > >> FreeBSD/i386 boot > >> Default: tank:/boot/kernel/kernel > >> boot: > > > > Could you type "status" at this point and tell what it shows? > > If I type status at this point I get: > > pool: tank > config: > NAME STATE > tank ONLINE > raidz1 ONLINE > ad4p3 ONLINE > ad6p3 ONLINE > ad8p3 ONLINE > ad10p3 ONLINE > > Which seems odd, since that's all the drives there are. So if it finds > these it's already found all drives. My optimistic "Oh! I'll try and boot > again" spirit was however crushed since it just results in the same error. Ok, that is both good and frustrating... I haven't produced any boot failures with all of the drives visible. Do, note that I just added support for reading gang blocks to the loader. (basically untested, since I haven't managed to create them at will) You will need to update your partition boot code for it to be supported during early boot. i.e. gpart bootcode -p /boot/gptzfsboot -i The "all block copies unavailable" is a frustrating error, since all it means is a failed read, but we don't get a clue what failed or why. With the code that is in -CURRENT it will report gang blocks if found, even if it fails to read them. robert. > Kind regards, > Merijn > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" -- Robert Noland FreeBSD