Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Aug 2012 07:32:47 -0400
From:      Roger Hammerstein <cheeky.m@live.com>
To:        <avg@freebsd.org>
Cc:        freebsd-fs@freebsd.org
Subject:   RE: panic while zfs scrubbing
Message-ID:  <BAY170-W113E066C98F3BDE1956A4F3F9BD0@phx.gbl>
In-Reply-To: <50365D73.9020508@FreeBSD.org>
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>, <50365D73.9020508@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help









> Thank you for this data.
> Please see if the following patch may help you.
>=20
> --- 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=2C7 +801=2C7 @@ dsl_scan_visitbp(blkptr_t *bp=2C const zbookmark_=
t *zb=2C
>  	if (dsl_scan_check_resume(scn=2C dnp=2C zb))
>  		return=3B
>=20
> -	if (bp->blk_birth =3D=3D 0)
> +	if (bp->blk_birth =3D=3D 0 || BP_GET_TYPE(bp) =3D=3D DMU_OT_NONE)
>  		return=3B
>=20
>  	scn->scn_visited_this_txg++=3B


it worked to get through an entire scrub.


zpool status -v zzzz

 pool: zzzz
 state: ONLINE
status: One or more devices has experienced an error resulting in data
        corruption.  Applications may be affected.
action: Restore the file in question if possible.  Otherwise restore the
        entire pool from backup.
   see: http://illumos.org/msg/ZFS-8000-8A
  scan: scrub repaired 135K in 3h46m with 4 errors on Thu Aug 23 17:14:50 2=
012
config:

        NAME        STATE     READ WRITE CKSUM
        zzzz      ONLINE       0     0     4
          raidz2-0  ONLINE       0     0     8
            ada3    ONLINE       0     0     0
            ada7    ONLINE       0     0     4
            ada6    ONLINE       0     0     0
            ada9    ONLINE       0     0     0
            ada4    ONLINE       0     0     0
            ada2    ONLINE       0     0     2
            ada5    ONLINE       0     0     0

errors: Permanent errors have been detected in the following files:
<snip>


I started a second scrub.



 		 	   		  =



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