zpool scrub. Wtf?
Cy Schubert
Cy.Schubert at cschubert.com
Wed Aug 15 03:49:10 UTC 2018
In message <93818fab-6b53-bade-dffa-afcf322dce29 at zyxst.net>, tech-lists
writes:
> On 12/08/2018 18:53, Cy Schubert wrote:
> > I haven't looked at it closely but from what I saw it was counting scan rea
> ds and issued reads. It may be a simple matter of dividing by 2.
>
> Dividing what by 2?
>
> scan: scrub in progress since Tue Aug 7 21:21:51 2018
> 804G scanned at 163M/s, 1,06T issued at 219M/s, 834G total
> 0 repaired, 129,87% done, 929637 days 13:43:01 to go
>
> I'm also seeing this problem running 12.0-ALPHA1 #0 r337682
This is probably incorrect but this is what I was talking about.
Index: cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
===================================================================
--- cddl/contrib/opensolaris/cmd/zpool/zpool_main.c (revision 337830)
+++ cddl/contrib/opensolaris/cmd/zpool/zpool_main.c (working copy)
@@ -4492,8 +4492,8 @@
scanned = ps->pss_examined;
pass_scanned = ps->pss_pass_exam;
- issued = ps->pss_issued;
- pass_issued = ps->pss_pass_issued;
+ issued = ps->pss_issued / 2;
+ pass_issued = ps->pss_pass_issued / 2;
total = ps->pss_to_examine;
/* we are only done with a block once we have issued the IO for it */
--
Cheers,
Cy Schubert <Cy.Schubert at cschubert.com>
FreeBSD UNIX: <cy at FreeBSD.org> Web: http://www.FreeBSD.org
The need of the many outweighs the greed of the few.
More information about the freebsd-current
mailing list