Re: zpool scrub. Wtf?

From: Cy Schubert <Cy.Schubert_at_cschubert.com>
Date: Tue, 14 Aug 2018 20:47:41 -0700
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)
_at__at_ -4492,8 +4492,8 _at__at_
 
 	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.
Received on Wed Aug 15 2018 - 01:49:10 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:17 UTC