[Bug 241069] zfs: scrub does not detect all errors on active spares
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Oct 5 00:18:14 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241069
Bug ID: 241069
Summary: zfs: scrub does not detect all errors on active spares
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: kern
Assignee: bugs at FreeBSD.org
Reporter: asomers at FreeBSD.org
This is a partial regression of https://www.illumos.org/issues/8473, which I
fixed in illumos rev 554675e (FreeBSD 323813). Previously, ZFS scrub would
never detect errors on active spares. Now, it detects some of them, but not
all. The problem can be reproduced with the
hotspare_test:hotspare_scrub_002_pos test from the ZFS test suite, or by these
commands:
truncate -s 64m /tmp/a /tmp/b /tmp/c /tmp/d
sudo zpool create -f testpool raidz1 /tmp/a /tmp/b /tmp/c spare /tmp/d
sudo zpool replace testpool /tmp/a /tmp/d
/bin/dd if=/dev/zero bs=1024k count=63 oseek=1 conv=notrunc of=/tmp/d
sync
sudo zpool scrub testpool
zpool status testpool # Will show only a few errors
sudo zpool offline testpool /tmp/a
sudo zpool scrub testpool
zpool status testpool # Will show new errors!!!
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list