panic while zfs scrubbing
Roger Hammerstein
cheeky.m at live.com
Fri Aug 24 11:33:53 UTC 2012
> 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++;
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 2012
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.
More information about the freebsd-fs
mailing list