From owner-freebsd-current@FreeBSD.ORG Wed Nov 18 23:48:05 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 5E26A1065697; Wed, 18 Nov 2009 23:48:05 +0000 (UTC) (envelope-from mattjreimer@gmail.com) Received: from mail-yw0-f178.google.com (mail-yw0-f178.google.com [209.85.211.178]) by mx1.freebsd.org (Postfix) with ESMTP id DA4D08FC12; Wed, 18 Nov 2009 23:48:04 +0000 (UTC) Received: by ywh8 with SMTP id 8so1614197ywh.3 for ; Wed, 18 Nov 2009 15:48:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=/44jw8zlKKtLGe85/WV4F5SWRkjeSOlRfGuQdX9hl2E=; b=iD4mn9Xlim6XA2MyYBpqvHEpcFpajRVQQ3trStZQRB+otwkiWOUNI/qZbSSb+t6CEp v8kEBnd6QaIvoGVTVt6W+4j8TFwkA2hZdZJXBwzixQtMJ2AS0mTMwFsC9OORl46R8vek ejA8j18QHKA4WNH9eL7pYNUBhnCg1HsdnpqZo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=mDNkwi3o6PVuHqI/pkiJrO5ZQ9EY/NZuSrriDnFpuNhin0SgzLcvpG7ibeiInnfYQl STpR0HnRDncR/L29PYfkJwUEz8oznnijUqOxH8rL74HhIQB9TYTXzDAycrALgJZokMAb IQTFj+gKjAB15e3h2AYQZoxODqnTVk2i8cBZI= MIME-Version: 1.0 Received: by 10.150.130.24 with SMTP id c24mr3474103ybd.168.1258588083989; Wed, 18 Nov 2009 15:48:03 -0800 (PST) In-Reply-To: <1258562628.2303.83.camel@balrog.2hip.net> 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> Date: Wed, 18 Nov 2009 15:48:03 -0800 Message-ID: From: Matt Reimer To: Emil Smolenski Content-Type: multipart/mixed; boundary=000e0cd5a01aaa2bdf0478addf54 Cc: freebsd-fs@freebsd.org, freebsd-current@freebsd.org, Robert Noland 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-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: Wed, 18 Nov 2009 23:48:05 -0000 --000e0cd5a01aaa2bdf0478addf54 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Wed, Nov 18, 2009 at 8:43 AM, Robert Noland wrote: > On Wed, 2009-11-18 at 17:11 +0100, Emil Smolenski wrote: >> On Wed, 18 Nov 2009 14:50:47 +0100, Robert Noland >> wrote: >> >> >> >> Should I file a PR? I would >> >> >> like to help in debugging it (however my skills in low-level C are= n't >> >> >> strong enough to do it on my own). >> >> > Ok, the first thing I would like to see is "zdb -uuu". >> >> # zdb -uuu pgpool >> >> Segmentation fault: 11 (core dumped) >> >> > Ok, this is disturbing... =A0It works fine for me on -CURRENT / amd64 = and >> > reports the root block pointer, which is what we need to locate the MO= S. >> >> =A0 Booting from 8.0-*-amd64-memstick.img (Fixit# console) makes "zdb -u= uu" >> happy: >> >> Fixit# zdb -uuu pgpool >> Uberblock >> >> =A0 =A0 =A0 =A0 =A0magic =3D 0000000000bab10c >> =A0 =A0 =A0 =A0 =A0version =3D 13 >> =A0 =A0 =A0 =A0 =A0txg =3D 443448 >> =A0 =A0 =A0 =A0 =A0guid_sum =3D 9780688847620645377 >> =A0 =A0 =A0 =A0 =A0timestamp =3D 1258560175 UTC =3D Wed Nov 18 16:02:55 = 2009 >> =A0 =A0 =A0 =A0 =A0rootbp =3D [L0 DMU objset] 400L/200P DVA[0]=3D<0:2200= 00de400:200> >> DVA[1]=3D<0:2a80008ee00:200> DVA[2]=3D<0:330000b9000:200> fletcher4 lzjb= LE >> contiguous birth=3D443448 fill=3D298 >> cksum=3D8a9775385:3935d6d58c7:c028430c00a8:1b58ac4ebf42ac > > Ok, the offsets are definately up there... What is your normal > installation? =A08.0 i386? 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. Matt --000e0cd5a01aaa2bdf0478addf54 Content-Type: application/octet-stream; name="zfsboot.c.patch3" Content-Disposition: attachment; filename="zfsboot.c.patch3" Content-Transfer-Encoding: base64 X-Attachment-Id: f_g26qtvfe0 LS0tIGkzODYvemZzYm9vdC96ZnNib290LmMub3JpZwkyMDA5LTEwLTI0IDE4OjEwOjI5LjAwMDAw MDAwMCAtMDcwMAorKysgaTM4Ni96ZnNib290L3pmc2Jvb3QuYwkyMDA5LTExLTE4IDE1OjM2OjM0 LjAwMDAwMDAwMCAtMDgwMApAQCAtMTYzLDcgKzE2Myw3IEBACiBzdGF0aWMgdm9pZCBwcmludGYo Y29uc3QgY2hhciAqLC4uLik7CiBzdGF0aWMgdm9pZCBwdXRjaGFyKGludCk7CiBzdGF0aWMgdWlu dDMyX3QgbWVtc2l6ZSh2b2lkKTsKLXN0YXRpYyBpbnQgZHJ2cmVhZChzdHJ1Y3QgZHNrICosIHZv aWQgKiwgdW5zaWduZWQsIHVuc2lnbmVkKTsKK3N0YXRpYyBpbnQgZHJ2cmVhZChzdHJ1Y3QgZHNr ICosIHZvaWQgKiwgdWludDY0X3QsIHVuc2lnbmVkKTsKIHN0YXRpYyBpbnQga2V5aGl0KHVuc2ln bmVkKTsKIHN0YXRpYyBpbnQgeHB1dGMoaW50KTsKIHN0YXRpYyBpbnQgeGdldGMoaW50KTsKQEAg LTMx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