mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 03:09:34 +03:00
Man zpool-scrub.8: describe sequential scrub
Describe sequential scrub and add examples of scrub status. Reviewed-by: Richard Laager <rlaager@wiktel.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Nguyen <tony.nguyen@delphix.com> Signed-off-by: George Melikov <mail@gmelikov.ru> Closes #12429
This commit is contained in:
parent
4357552785
commit
e1870be450
@ -22,11 +22,11 @@
|
|||||||
.\" Copyright (c) 2012, 2018 by Delphix. All rights reserved.
|
.\" Copyright (c) 2012, 2018 by Delphix. All rights reserved.
|
||||||
.\" Copyright (c) 2012 Cyril Plisko. All Rights Reserved.
|
.\" Copyright (c) 2012 Cyril Plisko. All Rights Reserved.
|
||||||
.\" Copyright (c) 2017 Datto Inc.
|
.\" Copyright (c) 2017 Datto Inc.
|
||||||
.\" Copyright (c) 2018 George Melikov. All Rights Reserved.
|
.\" Copyright (c) 2018, 2021 George Melikov. All Rights Reserved.
|
||||||
.\" Copyright 2017 Nexenta Systems, Inc.
|
.\" Copyright 2017 Nexenta Systems, Inc.
|
||||||
.\" Copyright (c) 2017 Open-E, Inc. All Rights Reserved.
|
.\" Copyright (c) 2017 Open-E, Inc. All Rights Reserved.
|
||||||
.\"
|
.\"
|
||||||
.Dd May 27, 2021
|
.Dd July 25, 2021
|
||||||
.Dt ZPOOL-SCRUB 8
|
.Dt ZPOOL-SCRUB 8
|
||||||
.Os
|
.Os
|
||||||
.
|
.
|
||||||
@ -64,6 +64,11 @@ faults or disk failure.
|
|||||||
.Pp
|
.Pp
|
||||||
Because scrubbing and resilvering are I/O-intensive operations, ZFS only allows
|
Because scrubbing and resilvering are I/O-intensive operations, ZFS only allows
|
||||||
one at a time.
|
one at a time.
|
||||||
|
.Pp
|
||||||
|
A scrub is split into two parts: metadata scanning and block scrubbing.
|
||||||
|
The metadata scanning sorts blocks into large sequential ranges which can then
|
||||||
|
be read much more efficiently from disk when issuing the scrub I/O.
|
||||||
|
.Pp
|
||||||
If a scrub is paused, the
|
If a scrub is paused, the
|
||||||
.Nm zpool Cm scrub
|
.Nm zpool Cm scrub
|
||||||
resumes it.
|
resumes it.
|
||||||
@ -91,6 +96,26 @@ again.
|
|||||||
.It Fl w
|
.It Fl w
|
||||||
Wait until scrub has completed before returning.
|
Wait until scrub has completed before returning.
|
||||||
.El
|
.El
|
||||||
|
.Sh EXAMPLES
|
||||||
|
.Bl -tag -width "Exam"
|
||||||
|
.It Sy Example 1 : Status of pool with ongoing scrub:
|
||||||
|
Output:
|
||||||
|
.Bd -literal -compact -offset Ds
|
||||||
|
.No # Nm zpool Cm status
|
||||||
|
...
|
||||||
|
scan: scrub in progress since Sun Jul 25 16:07:49 2021
|
||||||
|
403M scanned at 100M/s, 68.4M issued at 10.0M/s, 405M total
|
||||||
|
0B repaired, 16.91% done, 00:00:04 to go
|
||||||
|
...
|
||||||
|
.Ed
|
||||||
|
Where:
|
||||||
|
.Bl -dash -offset indent
|
||||||
|
.It
|
||||||
|
Metadata which references 403M of file data has been
|
||||||
|
scanned at 100M/s, and 68.4M of that file data has been
|
||||||
|
scrubbed sequentially at 10.0M/s.
|
||||||
|
.El
|
||||||
|
.El
|
||||||
.
|
.
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr zpool-iostat 8 ,
|
.Xr zpool-iostat 8 ,
|
||||||
|
Loading…
Reference in New Issue
Block a user