From owner-freebsd-fs@FreeBSD.ORG Fri May 14 14:20:03 2010 Return-Path: Delivered-To: freebsd-fs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0993E1065677 for ; Fri, 14 May 2010 14:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D3D238FC0C for ; Fri, 14 May 2010 14:20:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o4EEK2Y7055130 for ; Fri, 14 May 2010 14:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o4EEK27s055129; Fri, 14 May 2010 14:20:02 GMT (envelope-from gnats) Date: Fri, 14 May 2010 14:20:02 GMT Message-Id: <201005141420.o4EEK27s055129@freefall.freebsd.org> To: freebsd-fs@FreeBSD.org From: Volodymyr Kostyrko Cc: Subject: Re: bin/144214: zfsboot fails on gang block after upgrade to zfs v14 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Volodymyr Kostyrko List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 May 2010 14:20:03 -0000 The following reply was made to PR bin/144214; it has been noted by GNATS. From: Volodymyr Kostyrko To: Andriy Gapon Cc: bug-followup , Robert Noland Subject: Re: bin/144214: zfsboot fails on gang block after upgrade to zfs v14 Date: Fri, 14 May 2010 17:12:23 +0300 2010/5/13 Andriy Gapon : > > It seems that I have been misunderstanding the problem. > "ZFS: gang block detected" won't even appear if boot code is too old. > > Having briefly glanced over the code and comparing it to the code in osol and in > zio_gang_tree_issue(), I think the following change is needed. > But I am not sure if it is a real fix for the issue at hand. > > If anyone can reproduce the problem, could you please test this change? > Thanks! Tested it. Same problem. 1. Rebuild and reinstall on i386. Filling disk up (600M free of 120G, 0.5%). 2. Immediately after starting boot screen bursts into psychic colors. Computer reboots. 3. Booted from ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/201004/FreeBSD-8.0-STABLE-201004-i386-livefs.iso in VirtualBox i386. Boot code updated with dd. 4. Same as p2. in vBox i386 takes looong time to rotate dash then spits "ZFS: gang block detected" and hangs. 5. Booted from amd64 install, updated boot code with dd. 6. Booted on amd64. Immediately after starting boot spits out "ZFS: gang block detected" and hangs. 7. Booted from amd64 install. /boot transferred transferred to/from other disk. 8. Booted on amd64. Immediately after starting boot spits out "ZFS: gang block detected" and hangs. 9. Booted from amd64 install. Some files deleted (800M free, files were written contiguously). /boot transferred transferred to/from other disk. 10. Booted on amd64. Results: 1. Patch changes something. However zfsloader(?) still can't be read completely. 2. Bug can happen on amd64. More extreme conditions needed(?). 3. I'll post a follow-up on successfully booting on original i386 hardware. -- Sphinx of black quartz judge my vow.