From owner-freebsd-fs@FreeBSD.ORG Fri Nov 16 22:44:38 2012 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B71C0375 for ; Fri, 16 Nov 2012 22:44:38 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id CE8FD8FC08 for ; Fri, 16 Nov 2012 22:44:37 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id AAA19501; Sat, 17 Nov 2012 00:44:28 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1TZUeB-0001jB-MA; Sat, 17 Nov 2012 00:44:27 +0200 Message-ID: <50A6C1CA.50508@FreeBSD.org> Date: Sat, 17 Nov 2012 00:44:26 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121030 Thunderbird/16.0.2 MIME-Version: 1.0 To: Peter Jeremy Subject: Re: zfs diff deadlock References: <20121110223249.GB506@server.rulingia.com> <20121111072739.GA4814@server.rulingia.com> <509F5E0A.1020501@FreeBSD.org> <20121113202730.GA42238@server.rulingia.com> <20121116223544.GA99247@server.rulingia.com> In-Reply-To: <20121116223544.GA99247@server.rulingia.com> X-Enigmail-Version: 1.4.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-fs@FreeBSD.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Nov 2012 22:44:39 -0000 on 17/11/2012 00:35 Peter Jeremy said the following: > On 2012-Nov-14 07:27:30 +1100, Peter Jeremy > wrote: >> On head, I get some normal differences terminated by: Unable to >> determine path or stats for object 2128453 in tank/beckett/home@20120518: >> Invalid argument > > I've done some more digging and got the following. Does it make sense for > an object that is a "ZFS plain file" to have another "ZFS plain file" as a > parent? It doesn't sound right to me. There was a bug that could result in a problem like this (because of corrupted znode attributes) after certain operations. What version of FreeBSD do you run there (branch+rev) ? > root@FB10-64:~ # zdb -vvv tank/beckett/home@20120518 2128453 Dataset > tank/beckett/home@20120518 [ZPL], ID 605, cr_txg 8379, 143G, 2026419 > objects, rootbp DVA[0]=<0:266a0efa00:200> DVA[1]=<0:31b07fbc00:200> [L0 > DMU objset] fletcher4 lzjb LE contiguous unique double size=800L/200P > birth=8375L/8375P fill=2026419 > cksum=1acdb1fbd9:93bf9c61e94:1b35c72eb8adb:389743898e4f79 > > Object lvl iblk dblk dsize lsize %full type 2128453 1 16K > 1.50K 1.50K 1.50K 100.00 ZFS plain file 264 bonus ZFS znode dnode > flags: USED_BYTES USERUSED_ACCOUNTED dnode maxblkid: 0 path > ??? uid 1000 gid 1000 atime Fri Mar 23 16:34:52 > 2012 mtime Sat Oct 22 16:13:42 2011 ctime Sun Oct 23 21:09:02 2011 > crtime Sat Oct 22 16:13:42 2011 gen 2237174 mode 100444 size 1089 > parent 2242171 links 1 pflags 40800000004 xattr 0 rdev > 0x0000000000000000 > > root@FB10-64:~ # zdb -vvv tank/beckett/home@20120518 2242171 Dataset > tank/beckett/home@20120518 [ZPL], ID 605, cr_txg 8379, 143G, 2026419 > objects, rootbp DVA[0]=<0:266a0efa00:200> DVA[1]=<0:31b07fbc00:200> [L0 > DMU objset] fletcher4 lzjb LE contiguous unique double size=800L/200P > birth=8375L/8375P fill=2026419 > cksum=1acdb1fbd9:93bf9c61e94:1b35c72eb8adb:389743898e4f79 > > Object lvl iblk dblk dsize lsize %full type 2242171 3 16K > 128K 25.4M 25.5M 100.00 ZFS plain file 264 bonus ZFS znode dnode > flags: USED_BYTES USERUSED_ACCOUNTED dnode maxblkid: 203 path > /jashank/Pictures/sch/pdm-a4-11/stereo-pair-2.png uid 1000 gid 1000 > atime Fri Mar 23 16:41:53 2012 mtime Mon Oct 24 21:15:56 2011 ctime > Mon Oct 24 21:15:56 2011 crtime Mon Oct 24 21:15:37 2011 gen 2286679 mode > 100644 size 26625731 parent 7001490 links 1 pflags 40800000004 xattr > 0 rdev 0x0000000000000000 > > root@FB10-64:~ # zdb -vvv tank/beckett/home@20120518 7001490 Dataset > tank/beckett/home@20120518 [ZPL], ID 605, cr_txg 8379, 143G, 2026419 > objects, rootbp DVA[0]=<0:266a0efa00:200> DVA[1]=<0:31b07fbc00:200> [L0 > DMU objset] fletcher4 lzjb LE contiguous unique double size=800L/200P > birth=8375L/8375P fill=2026419 > cksum=1acdb1fbd9:93bf9c61e94:1b35c72eb8adb:389743898e4f79 > > Object lvl iblk dblk dsize lsize %full type 7001490 1 16K > 512 1K 512 100.00 ZFS directory 264 bonus ZFS znode dnode > flags: USED_BYTES USERUSED_ACCOUNTED dnode maxblkid: 0 path > /jashank/Pictures/sch/pdm-a4-11 uid 1000 gid 1000 atime Thu May > 17 03:38:32 2012 mtime Mon Oct 24 21:15:37 2011 ctime Mon Oct 24 > 21:15:37 2011 crtime Fri Oct 14 22:17:44 2011 gen 2088407 mode 40755 > size 6 parent 6370559 links 2 pflags 40800000144 xattr 0 rdev > 0x0000000000000000 microzap: 512 bytes, 4 entries > > stereo-pair-2.png = 2242171 (type: Regular File) stereo-pair-2.xcf = > 7002074 (type: Regular File) stereo-pair-1.xcf = 7001512 (type: Regular > File) stereo-pair-1.png = 2241802 (type: Regular File) > > root@FB10-64:~ # > -- Andriy Gapon