From owner-freebsd-fs@FreeBSD.ORG Wed Dec 3 20:54:14 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1B85571A for ; Wed, 3 Dec 2014 20:54:14 +0000 (UTC) Received: from mail-oi0-x22c.google.com (mail-oi0-x22c.google.com [IPv6:2607:f8b0:4003:c06::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D49DFBB7 for ; Wed, 3 Dec 2014 20:54:13 +0000 (UTC) Received: by mail-oi0-f44.google.com with SMTP id e131so11526655oig.31 for ; Wed, 03 Dec 2014 12:54:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=VenD/okXPaH6bW0uo49Usnr7CwYKT1U/MyaKfXiuriA=; b=bctj0MnMzBeIahHPvTRjarr0D2G6D+BftqMoTekO+jUQl7CuuwducaXIrJegVZ+jZe x9pHpdzZpH4QTLJORK+siUh+0TaL8PnnRFuJKrUuok10IGk1U87MyVhYfIPFbjr2KXHn ZTQEEXKOZKWbPKYlBWZa4bh1J/PsQfdwamFOKLlVabSj3e4mRJrp4y9cVKIHHO0pTx5h lQCHu3ZRKpOvATa8/GFDYMgL/hUAX8UzqCX72ukyJdqkuVvYFVZbpTyrNXbtXz6xrtKQ L6wMC3E+SaVfEpd8CS8NghcF/0T1n0udNGaM1f7352oMRnNHzz1OUomjUrwEO7UUzkD1 ITAA== MIME-Version: 1.0 X-Received: by 10.202.46.71 with SMTP id u68mr4271486oiu.20.1417640053194; Wed, 03 Dec 2014 12:54:13 -0800 (PST) Received: by 10.76.0.138 with HTTP; Wed, 3 Dec 2014 12:54:13 -0800 (PST) Date: Wed, 3 Dec 2014 15:54:13 -0500 Message-ID: Subject: zdb -R broken. From: Zaphod Beeblebrox To: freebsd-fs Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Dec 2014 20:54:14 -0000 Since zdb -R was crashing on my broken ZFS filesystem, I created a brand-new zfs filesystem to test. New zpool, new zfs filesystem (not the root of the pool) and a single file. Where zdb -dddd gives: [1:40:340]root@virtual:/vr1/tmp/diag> less vr1-test-8-dddddddd.txt Dataset vr1/test [ZPL], ID 381, cr_txg 265793, 2.72M, 8 objects, rootbp DVA[0]=<0:294eccbc000:3000> DVA[1]=<0:6a4e3c07000:3000> [L0 DMU objset] fletcher4 lz4 LE contiguous unique double size=800L/200P birth=265800L/265800P fill=8 cksum=111b51647a:6d5cbdc2e81:1680f8b437c3f:32c54b0caa57b7 Object lvl iblk dblk dsize lsize %full type 8 2 16K 128K 2.52M 2.50M 100.00 ZFS plain file (K=inherit) (Z=inherit) 168 bonus System attributes dnode flags: USED_BYTES USERUSED_ACCOUNTED dnode maxblkid: 19 path /words uid 0 gid 0 atime Mon Nov 24 15:20:15 2014 mtime Mon Nov 24 15:20:15 2014 ctime Mon Nov 24 15:20:15 2014 crtime Mon Nov 24 15:20:15 2014 gen 265800 mode 100444 size 2493514 parent 4 links 1 pflags 40800000004 Indirect blocks: 0 L1 0:294ecc86000:3000 0:6a4e3bd1000:3000 4000L/400P F=20 B=265800/265800 0 L0 0:294ec902000:2d000 20000L/20000P F=1 B=265800/265800 20000 L0 0:294ec92f000:2d000 20000L/20000P F=1 B=265800/265800 (and so on), zdb -R does: [1:43:343]root@virtual:/vr1/tmp/diag> zdb -AAA -R vr1 0:294ec902000:2d000:g Found vdev type: raidz Assertion failed: (zio->io_error == 0 || (zio->io_flags & ZIO_FLAG_CANFAIL)), file /usr/src/cddl/lib/libzpool/../../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c, line 3297. Abort trap (core dumped) ... and specifically... it's the 'g' flag that's bad, but I lack insight as to how to compile all these libraries with debug information: (gdb) bt #0 0x0000000801cb26ca in thr_kill () from /lib/libc.so.7 #1 0x0000000801d87149 in abort () from /lib/libc.so.7 #2 0x0000000801920e21 in zio_init () from /lib/libzpool.so.2 #3 0x0000000801927e0e in zbookmark_is_before () from /lib/libzpool.so.2 #4 0x0000000801922df7 in zio_execute () from /lib/libzpool.so.2 #5 0x0000000801927f11 in zbookmark_is_before () from /lib/libzpool.so.2 #6 0x0000000801922df7 in zio_execute () from /lib/libzpool.so.2 #7 0x0000000801927f11 in zbookmark_is_before () from /lib/libzpool.so.2 #8 0x0000000801922df7 in zio_execute () from /lib/libzpool.so.2 #9 0x0000000801927f11 in zbookmark_is_before () from /lib/libzpool.so.2 #10 0x0000000801922df7 in zio_execute () from /lib/libzpool.so.2 #11 0x0000000801927f11 in zbookmark_is_before () from /lib/libzpool.so.2 #12 0x0000000801922df7 in zio_execute () from /lib/libzpool.so.2 #13 0x000000080191b8d9 in taskq_create () from /lib/libzpool.so.2 #14 0x0000000800e814f5 in pthread_create () from /lib/libthr.so.3 #15 0x00007ffff75bc000 in ?? () Cannot access memory at address 0x7ffff77bc000 help?