From owner-freebsd-current@freebsd.org Sat Apr 30 21:32:17 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 B6BE6B22455 for ; Sat, 30 Apr 2016 21:32:17 +0000 (UTC) (envelope-from saper@saper.info) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id A1DD61436 for ; Sat, 30 Apr 2016 21:32:17 +0000 (UTC) (envelope-from saper@saper.info) Received: by mailman.ysv.freebsd.org (Postfix) id 9D63FB22454; Sat, 30 Apr 2016 21:32:17 +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 9A921B22453 for ; Sat, 30 Apr 2016 21:32:17 +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 37E7A1435 for ; Sat, 30 Apr 2016 21:32:13 +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 u3ULWBfV010280 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sat, 30 Apr 2016 21:32:11 GMT (envelope-from saper@saper.info) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=saper.info; s=Sep2014; t=1462051931; bh=XxxAvI9kA3kZ06es0X+7v23AgZD64ZutnHmy8M37trs=; h=Date:From:To:Subject; b=FvrRK4mttC7MZagLqg0hm+hPkS6yrfOR5VjLWup9x47SmfNcr/nD96vPqPVmG6OwX i9MA3kLxkdcLmIzV9IHAuUpuhFGXQh7pVHQp/ho7uvF+or2ZJnK5sTwJmluNMYEQG9 VZqXIJgYHtbwbhXdNtY/5DFjWX8uvuGnyIDkXT8c= Received: from localhost (saper@localhost) by m.saper.info (8.15.2/8.15.2/Submit) with ESMTP id u3ULWB7Y010277 for ; Sat, 30 Apr 2016 21:32:11 GMT (envelope-from saper@saper.info) X-Authentication-Warning: m.saper.info: saper owned process doing -bs Date: Sat, 30 Apr 2016 21:32:11 +0000 From: Marcin Cieslak To: current@FreeBSD.org Subject: gptzfsboot: "ZFS: i/o error - all block copies unavailable" after crash Message-ID: 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 21:32:17 -0000 (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. Two drives, ada0 and ada1 in a mirror configuration (swap via gmirror): => 34 5860533101 ada0 GPT (2.7T) 34 1024 1 freebsd-boot (512K) 1058 4194304 2 freebsd-swap (2.0G) 4195362 5856337773 3 freebsd-zfs (2.7T) pool: zroot state: ONLINE scan: scrub repaired 0 in 0h7m with 0 errors on Mon Apr 25 19:22:30 2016 config: NAME STATE READ WRITE CKSUM zroot ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 ada0p3 ONLINE 0 0 0 ada1p3 ONLINE 0 0 0 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 (...) When I boot a rescue system (10.3) via PXE I can import the pool without any problems (using "zpool import -R /mnt zroot"). Installing 10.3 /boot/gptzfsboot in the ada0p1/ada1p1 boot blocks makes the problem go away - I can crash the system as many times I like and the next boot works fine. Just restoring -current /boot/gptzfsboot does not usually help. Marcin