|
22 | 22 | .\" Copyright (c) 2012, 2018 by Delphix. All rights reserved.
|
23 | 23 | .\" Copyright (c) 2012 Cyril Plisko. All Rights Reserved.
|
24 | 24 | .\" Copyright (c) 2017 Datto Inc.
|
25 |
| -.\" Copyright (c) 2018 George Melikov. All Rights Reserved. |
| 25 | +.\" Copyright (c) 2018, 2021 George Melikov. All Rights Reserved. |
26 | 26 | .\" Copyright 2017 Nexenta Systems, Inc.
|
27 | 27 | .\" Copyright (c) 2017 Open-E, Inc. All Rights Reserved.
|
28 | 28 | .\"
|
29 |
| -.Dd May 27, 2021 |
| 29 | +.Dd July 25, 2021 |
30 | 30 | .Dt ZPOOL-SCRUB 8
|
31 | 31 | .Os
|
32 | 32 | .
|
@@ -64,6 +64,11 @@ faults or disk failure.
|
64 | 64 | .Pp
|
65 | 65 | Because scrubbing and resilvering are I/O-intensive operations, ZFS only allows
|
66 | 66 | 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 |
67 | 72 | If a scrub is paused, the
|
68 | 73 | .Nm zpool Cm scrub
|
69 | 74 | resumes it.
|
@@ -91,6 +96,26 @@ again.
|
91 | 96 | .It Fl w
|
92 | 97 | Wait until scrub has completed before returning.
|
93 | 98 | .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 |
94 | 119 | .
|
95 | 120 | .Sh SEE ALSO
|
96 | 121 | .Xr zpool-iostat 8 ,
|
|
0 commit comments