From owner-freebsd-fs@FreeBSD.ORG Thu Nov 19 10:21:31 2009 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 1070B1065676; Thu, 19 Nov 2009 10:21:31 +0000 (UTC) (envelope-from ambsd@raisa.eu.org) Received: from raisa.eu.org (raisa.eu.org [83.17.178.202]) by mx1.freebsd.org (Postfix) with ESMTP id A24098FC18; Thu, 19 Nov 2009 10:21:30 +0000 (UTC) Received: from am-laptop.local.org (gpx218.internetdsl.tpnet.pl [83.3.153.218]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by raisa.eu.org (Postfix) with ESMTP id 835091D7; Thu, 19 Nov 2009 11:25:33 +0100 (CET) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "Robert Noland" , "Matt Reimer" References: <1258390784.2303.42.camel@balrog.2hip.net> <1258497221.2303.66.camel@balrog.2hip.net> <1258552247.2303.75.camel@balrog.2hip.net> <1258562628.2303.83.camel@balrog.2hip.net> <1258603057.2303.92.camel@balrog.2hip.net> Date: Thu, 19 Nov 2009 11:21:24 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Emil Smolenski" Organization: Cadera Sp. z o.o. Message-ID: In-Reply-To: <1258603057.2303.92.camel@balrog.2hip.net> User-Agent: Opera Mail/10.01 (FreeBSD) Cc: freebsd-fs@freebsd.org, freebsd-current@freebsd.org Subject: Re: Boot with ZFS on single disk: "ZFS: i/o error - all block copies unavailable" [was: Re: GPT boot with ZFS RAIDZ "ZFS: i/o error - all block copies unavailable"] 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: Thu, 19 Nov 2009 10:21:31 -0000 Matt Reimer wrote: > Robert's on to something. It looks like your LBAs are probably > overflowing 32 bits. This would affect all vdev regardless of type. > Try the attached patch. Robert Noland wrote: >> 220000de400 > This divided by 512 byte block size is 33 bits... At a glance, the patch > looks ok to me. I'll do a more thorough review of this tomorrow. Unfortunately it don't work. Error is the same as before: ZFS: i/o error - all block copies unavailable ZFS: can't read MOS ZFS: unexpected object set type 0 ZFS: unexpected object set type 0 FreeBSD/i386 boot Default: pgpool:/boot/kernel/kernel boot: ZFS: unexpected object set type 0 This is 7.2-STABLE, amd64. My test procedure: 1. I fully synchronized these zfsboot-related directories with -CURRENT: src/sys/boot/i386/zfsboot src/sys/boot/zfs src/sys/cddl/boot/zfs 2. I applied Matt Reimer's zfsboot.c.patch3 patch: # cd /usr/src/sys/boot/ # patch < /path/to/zfsboot.c.patch3 3. Then I did: # make clean; make cleandir # make obj ; make depend ; make # cd i386/loader # make install # cd /usr/src/sys/boot/i386/zfsboot # make install # sysctl kern.geom.debugflags=16 # dd if=/boot/zfsboot of=/dev/da0 count=1 # dd if=/boot/zfsboot of=/dev/da0 skip=1 seek=1024 # reboot 4. Result: error shown above. Thanks! -- am