Skip to content

Commit c07ed69

Browse files
gmelikovtonyhutter
authored andcommitted
Man zpool-scrub.8: describe sequential scrub
Describe sequential scrub and add examples of scrub status. Reviewed-by: Richard Laager <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tony Nguyen <[email protected]> Signed-off-by: George Melikov <[email protected]> Closes openzfs#12429
1 parent ddb732e commit c07ed69

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

man/man8/zpool-scrub.8

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
.\" Copyright (c) 2012, 2018 by Delphix. All rights reserved.
2323
.\" Copyright (c) 2012 Cyril Plisko. All Rights Reserved.
2424
.\" Copyright (c) 2017 Datto Inc.
25-
.\" Copyright (c) 2018 George Melikov. All Rights Reserved.
25+
.\" Copyright (c) 2018, 2021 George Melikov. All Rights Reserved.
2626
.\" Copyright 2017 Nexenta Systems, Inc.
2727
.\" Copyright (c) 2017 Open-E, Inc. All Rights Reserved.
2828
.\"
29-
.Dd May 27, 2021
29+
.Dd July 25, 2021
3030
.Dt ZPOOL-SCRUB 8
3131
.Os
3232
.
@@ -64,6 +64,11 @@ faults or disk failure.
6464
.Pp
6565
Because scrubbing and resilvering are I/O-intensive operations, ZFS only allows
6666
one at a time.
67+
.Pp
68+
A scrub is split into two parts: metadata scanning and block scrubbing.
69+
The metadata scanning sorts blocks into large sequential ranges which can then
70+
be read much more efficiently from disk when issuing the scrub I/O.
71+
.Pp
6772
If a scrub is paused, the
6873
.Nm zpool Cm scrub
6974
resumes it.
@@ -91,6 +96,26 @@ again.
9196
.It Fl w
9297
Wait until scrub has completed before returning.
9398
.El
99+
.Sh EXAMPLES
100+
.Bl -tag -width "Exam"
101+
.It Sy Example 1 : Status of pool with ongoing scrub:
102+
Output:
103+
.Bd -literal -compact -offset Ds
104+
.No # Nm zpool Cm status
105+
...
106+
scan: scrub in progress since Sun Jul 25 16:07:49 2021
107+
403M scanned at 100M/s, 68.4M issued at 10.0M/s, 405M total
108+
0B repaired, 16.91% done, 00:00:04 to go
109+
...
110+
.Ed
111+
Where:
112+
.Bl -dash -offset indent
113+
.It
114+
Metadata which references 403M of file data has been
115+
scanned at 100M/s, and 68.4M of that file data has been
116+
scrubbed sequentially at 10.0M/s.
117+
.El
118+
.El
94119
.
95120
.Sh SEE ALSO
96121
.Xr zpool-iostat 8 ,

0 commit comments

Comments
 (0)