4 .\" The contents of this file are subject to the terms of the
5 .\" Common Development and Distribution License (the "License").
6 .\" You may not use this file except in compliance with the License.
8 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 .\" or http://www.opensolaris.org/os/licensing.
10 .\" See the License for the specific language governing permissions
11 .\" and limitations under the License.
13 .\" When distributing Covered Code, include this CDDL HEADER in each
14 .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 .\" If applicable, add the following below this CDDL HEADER, with the
16 .\" fields enclosed by brackets "[]" replaced with your own identifying
17 .\" information: Portions Copyright [yyyy] [name of copyright owner]
22 .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
23 .\" Copyright (c) 2012, 2018 by Delphix. All rights reserved.
24 .\" Copyright (c) 2012 Cyril Plisko. All Rights Reserved.
25 .\" Copyright (c) 2017 Datto Inc.
26 .\" Copyright (c) 2018 George Melikov. All Rights Reserved.
27 .\" Copyright 2017 Nexenta Systems, Inc.
28 .\" Copyright (c) 2017 Open-E, Inc. All Rights Reserved.
34 .Nm zpool Ns Pf - Cm scrub
35 .Nd Begin a scrub or resume a paused scrub of a ZFS storage pool
51 Begins a scrub or resumes a paused scrub.
52 The scrub examines all data in the specified pools to verify that it checksums
56 devices, ZFS automatically repairs any damage discovered during the scrub.
59 command reports the progress of the scrub and summarizes the results of the
60 scrub upon completion.
62 Scrubbing and resilvering are very similar operations.
63 The difference is that resilvering only examines data that ZFS knows to be out
66 for example, when attaching a new device to a mirror or replacing an existing
69 whereas scrubbing examines all data to discover silent errors due to hardware
70 faults or disk failure.
72 Because scrubbing and resilvering are I/O-intensive operations, ZFS only allows
74 If a scrub is paused, the
77 If a resilver is in progress, ZFS does not allow a scrub to be started until the
80 Note that, due to changes in pool data on a live system, it is possible for
81 scrubs to progress slightly beyond 100% completion. During this period, no
82 completion time estimate will be provided.
90 Scrub pause state and progress are periodically synced to disk.
91 If the system is restarted or pool is exported during a paused scrub,
92 even after import, scrub will remain paused until it is resumed.
93 Once resumed the scrub will pick up from the place where it was last
95 To resume a paused scrub issue
99 Wait until scrub has completed before returning.
104 .Xr zpool-resilver 8 ,