From owner-freebsd-current@freebsd.org Sat Apr 30 22:23:48 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 83822B22FAE for ; Sat, 30 Apr 2016 22:23:48 +0000 (UTC) (envelope-from saper@saper.info) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 6D642178D for ; Sat, 30 Apr 2016 22:23:48 +0000 (UTC) (envelope-from saper@saper.info) Received: by mailman.ysv.freebsd.org (Postfix) id 6CAA2B22FAC; Sat, 30 Apr 2016 22:23:48 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6C4C6B22FAB for ; Sat, 30 Apr 2016 22:23:48 +0000 (UTC) (envelope-from saper@saper.info) Received: from m.saper.info (m.saper.info [IPv6:2a01:4f8:a0:7383::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "m.saper.info", Issuer "Marcin Cieslak 2016" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id E5C5F178C for ; Sat, 30 Apr 2016 22:23:47 +0000 (UTC) (envelope-from saper@saper.info) Received: from m.saper.info (saper@m.saper.info [IPv6:2a01:4f8:a0:7383::]) by m.saper.info (8.15.2/8.15.2) with ESMTPS id u3UMNi8T010845 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sat, 30 Apr 2016 22:23:44 GMT (envelope-from saper@saper.info) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=saper.info; s=Sep2014; t=1462055025; bh=aWdajBAyHz0JEbb4HwqwM27dz8vozAzju+/SCmOxsIA=; h=Date:From:To:Subject:In-Reply-To:References; b=l0HTS4fPloBuA0avfUxUTGLxKu7/fw6OjLo8RadQp1JC25QAs9Lawrdmd+lQAMSlF +3FiZncGpb8dtes4ZCzMhO7QrYTznDcXEj+5gIvp9MFjsE295SlKQps75s5AoJR/Nj w2k4MR+UH/omp/QfE6fzTX3FNuJjTz/UnhiuVuLs= Received: from localhost (saper@localhost) by m.saper.info (8.15.2/8.15.2/Submit) with ESMTP id u3UMNiEc010841 for ; Sat, 30 Apr 2016 22:23:44 GMT (envelope-from saper@saper.info) X-Authentication-Warning: m.saper.info: saper owned process doing -bs Date: Sat, 30 Apr 2016 22:23:44 +0000 From: Marcin Cieslak To: current@FreeBSD.org Subject: Re: gptzfsboot: "ZFS: i/o error - all block copies unavailable" after crash (r297629) In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 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: Sat, 30 Apr 2016 22:23:48 -0000 On Sat, 30 Apr 2016, Marcin Cieslak wrote: > (original report: https://lists.freebsd.org/pipermail/freebsd-virtualization/2016-April/004362.html) > > I am running r298620 as dom0 under Xen, for debugging > some Xen-related crashes. (...) > After a crash, the bootblocks complain on boot > > ZFS: i/o error - all block copies unavailable > ZFS: i/o error - all block copies unavailable > ZFS: i/o error - all block copies unavailable > > Can't find /boot/zfsloader > > FreeBSD/x86 boot > Default: zroot:/boot/kernel/kernel > boot: > ZFS: i/o error - all block copies unavailable > After bisecting with /usr/src/lib/libstand and /usr/src/sys/boot it looks that it was r297629 that broke this: ------------------------------------------------------------------------ r297629 | allanjude | 2016-04-06 23:21:44 +0000 (Wed, 06 Apr 2016) | 13 lines Fix GELIBoot support for GELI sector size is > 512 Add support for 4k sector GELI encrypted partitions to the bootloader This is the default created by the installer Because the IV is different for each sector, and the XTS tweak carries forward you can not decrypt a partial sector if the starting offset is not 0 Make boot2 and the loader read in 4k aligned chunks Reviewed by: ed, oshogbo Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D5820 ------------------------------------------------------------------------ I am not using geli, and my sectors are 512 bytes. Marcin