Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Nov 2009 15:48:03 -0800
From:      Matt Reimer <mattjreimer@gmail.com>
To:        Emil Smolenski <ambsd@raisa.eu.org>
Cc:        freebsd-fs@freebsd.org, freebsd-current@freebsd.org, Robert Noland <rnoland@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"]
Message-ID:  <f383264b0911181548r3b9cce46i449e4e589148a62d@mail.gmail.com>
In-Reply-To: <1258562628.2303.83.camel@balrog.2hip.net>
References:  <op.u3hw9wl0qvde5b@am-laptop.local.org> <1258390784.2303.42.camel@balrog.2hip.net> <op.u3h252qaqvde5b@bolt.zol> <op.u3j6m8w5qvde5b@bolt.zol> <1258497221.2303.66.camel@balrog.2hip.net> <op.u3kdq613qvde5b@bolt.zol> <1258552247.2303.75.camel@balrog.2hip.net> <op.u3llw0plqvde5b@am-laptop.local.org> <1258562628.2303.83.camel@balrog.2hip.net>

next in thread | previous in thread | raw e-mail | index | archive | help
--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 <rnoland@freebsd.org> wrote:
> On Wed, 2009-11-18 at 17:11 +0100, Emil Smolenski wrote:
>> On Wed, 18 Nov 2009 14:50:47 +0100, Robert Noland <rnoland@freebsd.org>
>> 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
LTMxMCw3ICszMTEsOCBAQAogdmRldl9yZWFkKHZkZXZfdCAqdmRldiwgdm9pZCAqcHJpdiwgb2Zm
X3Qgb2ZmLCB2b2lkICpidWYsIHNpemVfdCBieXRlcykKIHsKIAljaGFyICpwOwotCXVuc2lnbmVk
IGludCBsYmEsIG5iOworCXVpbnQ2NF90IGxiYTsKKwl1bnNpZ25lZCBpbnQgbmI7CiAJc3RydWN0
IGRzayAqZHNrID0gKHN0cnVjdCBkc2sgKikgcHJpdjsKIAogCWlmICgob2ZmICYgKERFVl9CU0la
RSAtIDEpKSB8fCAoYnl0ZXMgJiAoREVWX0JTSVpFIC0gMSkpKQpAQCAtOTQ5LDcgKzk1MSw3IEBA
CiAjZW5kaWYKIAogc3RhdGljIGludAotZHJ2cmVhZChzdHJ1Y3QgZHNrICpkc2ssIHZvaWQgKmJ1
ZiwgdW5zaWduZWQgbGJhLCB1bnNpZ25lZCBuYmxrKQorZHJ2cmVhZChzdHJ1Y3QgZHNrICpkc2ss
IHZvaWQgKmJ1ZiwgdWludDY0X3QgbGJhLCB1bnNpZ25lZCBuYmxrKQogewogI2lmZGVmIEdQVAog
ICAgIHN0YXRpYyB1bnNpZ25lZCBjID0gMHgyZDVjN2MyZjsK
--000e0cd5a01aaa2bdf0478addf54--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f383264b0911181548r3b9cce46i449e4e589148a62d>