Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Aug 2012 19:42:27 +0300
From:      Andriy Gapon <avg@FreeBSD.org>
To:        Roger Hammerstein <cheeky.m@live.com>
Cc:        freebsd-fs@FreeBSD.org
Subject:   Re: panic while zfs scrubbing
Message-ID:  <50365D73.9020508@FreeBSD.org>
In-Reply-To: <BAY170-W3107E8102150CA9381F21CF9BE0@phx.gbl>
References:  <BAY170-W8668C02B4DAF69B54EE657F9B80@phx.gbl>, <5034DA84.8050507@FreeBSD.org> <BAY170-W1147AC6AE266A62ED84BE53F9BF0@phx.gbl>, <5035E335.4010103@FreeBSD.org> <BAY170-W832AA29E3709452869828FF9BE0@phx.gbl>, <50363F14.5080703@FreeBSD.org> <BAY170-W158315FA01FBCCE7E44877F9BE0@phx.gbl>, <50365134.9080702@FreeBSD.org> <BAY170-W3107E8102150CA9381F21CF9BE0@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help
on 23/08/2012 19:04 Roger Hammerstein said the following:
> 
>> Sorry, it's my mistake (forgot to convert blocks to bytes), the commands should be:
>> zdb -R zzzz c:13DA6AA1A00:E00:di
>> zdb -R zzzz c:20B002FE00:E00:di
> 
> Thank you again.
> 
> The 'c' appears to need to be 0 instead.
> 
> zdb -R zzzz c:13DA6AA1A00:E00:di
> ***Invalid vdev: c
>  zdb -R zzzz c:20B002FE00:E00:di
> ***Invalid vdev: c

OK, good catch.

> zdb -R zzzz 0:13DA6AA1A00:E00:di
> Found vdev type: raidz
> DVA[0]=<0:13da66bf800:2d000> [L0 ZFS plain file] fletcher4 uncompressed LE
> contiguous unique single size=20000L/20000P birth=39369L/39369P fill=1
> cksum=3bc6f8b3a783:e4c3f7910006453:f26edf447f3b65fd:ec164c8453db20f2
> DVA[0]=<0:13da66ec800:2d000> [L0 ZFS plain file] fletcher4 uncompressed LE
> contiguous unique single size=20000L/20000P birth=39369L/39369P fill=1
> cksum=3f3d89bdc360:fd3b6a3a84a9686:25530314e1c3ecf6:447296ce0a6bc390
> DVA[0]=<0:13da6719800:2d000> [L0 ZFS plain file] fletcher4 uncompressed LE
> contiguous unique single size=20000L/20000P birth=39369L/39369P fill=1
> cksum=3daf62956c37:f7c7779a64b3fe2:3c0fd22767803d2b:aeb8314f905480a0
> DVA[0]=<0:13da6746800:2d000> [L0 ZFS plain file] fletcher4 uncompressed LE
> contiguous unique single size=20000L/20000P birth=39369L/39369P fill=1
> cksum=3dfebf3b9644:f7eae0c61d47155:376e5d62160f2531:fdf29a4ee0c41e32
> DVA[0]=<0:13da6773800:2d000> [L0 ZFS plain file] fletcher4 uncompressed LE
> contiguous unique single size=20000L/20000P birth=39369L/39369P fill=1
> cksum=3e5e28364ae6:fb23072309c6c59:2711907b06e88f31:4aa48294b74d6ccd
> DVA[0]=<0:13da67a0800:2d000> [L0 ZFS plain file] fletcher4 uncompressed LE
> contiguous unique single size=20000L/20000P birth=39369L/39369P fill=1
> cksum=3e9b29bca68c:f9dd6067e0f95d3:dd696cbffca81b1a:6098a15c75a0315d
> DVA[0]=<0:13da67cd800:2d000> [L0 ZFS plain file] fletcher4 uncompressed LE
> contiguous unique single size=20000L/20000P birth=39369L/39369P fill=1
> cksum=3decbddda649:f8aae580123fdbe:171399455a8b0008:3fcceeb24066e6ad
> DVA[0]=<0:13da67fa800:2d000> [L0 ZFS plain file] fletcher4 uncompressed LE
> contiguous unique single size=20000L/20000P birth=39369L/39369P fill=1
> cksum=3e0d8515e875:f8faa63e65af6bb:e44c791f815a020d:d30f9e31e0d42500
> DVA[0]=<0:13da6827800:2d000> [L0 ZFS plain file] fletcher4 uncompressed LE
> contiguous unique single size=20000L/20000P birth=39369L/39369P fill=1
> cksum=3d53ec0fd189:f63b1b726c93f84:192005690aad8dcc:d21c3c58becfff5a
> DVA[0]=<0:13da6881800:2d000> [L0 ZFS plain file] fletcher4 uncompressed LE
> contiguous unique single size=20000L/20000P birth=39369L/39369P fill=1
> cksum=3d2c66cd01db:f62054bdfb3ad7e:a4d1f4f15a447958:2fa527a26245710
> DVA[0]=<0:13da6854800:2d000> [L0 ZFS plain file] fletcher4 uncompressed LE
> contiguous unique single size=20000L/20000P birth=39369L/39369P fill=1
> cksum=3d46c2995089:f603cbc5054195d:56a0e0d3127721f1:2f92657062f2cf48
> DVA[0]=<0:13da68ae800:2d000> [L0 ZFS plain file] fletcher4 uncompressed LE
> contiguous unique single size=20000L/20000P birth=39369L/39369P fill=1
> cksum=3d84b82590c4:f58066885037416:842386b78e7800e0:8ff06ca050d5dae0
> DVA[0]=<0:13da68db800:2d000> [L0 ZFS plain file] fletcher4 uncompressed LE
> contiguous unique single size=20000L/20000P birth=39369L/39369P fill=1
> cksum=3d84f14b3e1b:f6fd346e3171b17:c25c9c0d06fcf67e:8f200e3e263c6182
> DVA[0]=<0:13da6908800:2d000> [L0 ZFS plain file] fletcher4 uncompressed LE
> contiguous unique single size=20000L/20000P birth=39369L/39369P fill=1
> cksum=3df04b1abbe2:f7a5216fa52c021:f9058ca1183a0732:d4395b382b587cf1
> DVA[0]=<0:13da6935800:2d000> [L0 ZFS plain file] fletcher4 uncompressed LE
> contiguous unique single size=20000L/20000P birth=39369L/39369P fill=1
> cksum=3e6412a7c73b:fa866da21718b43:b99912eed7765f1b:d888d66cd20b5162
> DVA[0]=<0:13da698f800:2d000> [L0 ZFS plain file] fletcher4 uncompressed LE
> contiguous unique single size=20000L/20000P birth=39369L/39369P fill=1
> cksum=3e7a75ac74ce:fa2bc60a81ba298:f17af9c8f315c442:d3958c89a4d644c6
> DVA[0]=<0:13da6962800:2d000> [L0 ZFS plain file] fletcher4 uncompressed LE
> contiguous unique single size=20000L/20000P birth=39369L/39369P fill=1
> cksum=3e98d90b2567:fb2906fd2fd9419:d5e888314a785d1b:cfdb90ff8ad2c089
> DVA[0]=<0:13da69bc800:2d000> [L0 ZFS plain file] fletcher4 uncompressed LE
> contiguous unique single size=20000L/20000P birth=39369L/39369P fill=1
> cksum=3deb463107df:f7e4d4726d70351:1a7523278bac1eea:cb4b664047c7c610
> DVA[0]=<0:13da69eb000:2d000> [L0 ZFS plain file] fletcher4 uncompressed LE
> contiguous unique single size=20000L/20000P birth=39369L/39369P fill=1
> cksum=3e3edb83cbed:f9065c7d57997b9:ffad12f8540fbd1:b9aad67cd683bcfa
> DVA[0]=<0:13da6a1aa00:2d000> [L0 ZFS plain file] fletcher4 uncompressed LE
> contiguous unique single size=20000L/20000P birth=39369L/39369P fill=1
> cksum=3dc1cdc6c558:f692824525413b6:a114b8077d1ca593:170c6d4e7e2df07f
> DVA[0]=<0:13da6a47a00:2d000> [L0 ZFS plain file] fletcher4 uncompressed LE
> contiguous unique single size=20000L/20000P birth=39369L/39369P fill=1
> cksum=3df551808443:f842dcdc8a32e57:af4094c9cac4733c:c7ac3865df0c4ced
> DVA[0]=<0:13da6a74a00:2d000> [L0 ZFS plain file] fletcher4 uncompressed LE
> contiguous unique single size=20000L/20000P birth=39369L/39369P fill=1
> cksum=3e69cad45d5c:f8bc987d5aabad0:e5f72ba62f3b2955:84a2a388440c0d31
> <hole>
> <hole>
> <hole>
> <hole>
> <hole>
> <hole>
> <hole>
> <hole>
> <hole>
> <hole>
> DVA[0]=<0:ac00:1c400> DVA[1]=<0:1ee00:1ea00> DVA[2]=<0:1ee00:11400> [L0
> unallocated] inherit inherit BE contiguous unique triple size=1c000L/200P
> birth=12L/71P fill=93 cksum=9a:97:8f:b
[snip]

Thank you for this data.
Please see if the following patch may help you.

--- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_scan.c
+++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_scan.c
@@ -801,7 +801,7 @@ dsl_scan_visitbp(blkptr_t *bp, const zbookmark_t *zb,
 	if (dsl_scan_check_resume(scn, dnp, zb))
 		return;

-	if (bp->blk_birth == 0)
+	if (bp->blk_birth == 0 || BP_GET_TYPE(bp) == DMU_OT_NONE)
 		return;

 	scn->scn_visited_this_txg++;


-- 
Andriy Gapon



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