OpenZFS 8414 - Implemented zpool scrub pause/resume
Authored by: Alek Pinchuk <apinchuk@datto.com> Reviewed by: George Melikov <mail@gmelikov.ru> Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed by: Brad Lewis <brad.lewis@delphix.com> Reviewed by: Serapheim Dimitropoulos <serapheim@delphix.com> Reviewed by: Matt Ahrens <mahrens@delphix.com> Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov> Approved by: Dan McDonald <danmcd@joyent.com> Ported-by: Alek Pinchuk <apinchuk@datto.com> OpenZFS-issue: https://www.illumos.org/issues/8414 OpenZFS-commit: https://github.com/openzfs/openzfs/commit/c29616076 Closes #6538
This commit is contained in:
parent
9b8407638d
commit
e4b6b2db12
|
@ -1846,9 +1846,11 @@ Stop scrubbing.
|
|||
.Bl -tag -width Ds
|
||||
.It Fl p
|
||||
Pause scrubbing.
|
||||
Scrub progress is periodically synced to disk so if the system
|
||||
is restarted or pool is exported during a paused scrub, the scrub will resume
|
||||
from the place where it was last checkpointed to disk.
|
||||
Scrub pause state and progress are periodically synced to disk.
|
||||
If the system is restarted or pool is exported during a paused scrub,
|
||||
even after import, scrub will remain paused until it is resumed.
|
||||
Once resumed the scrub will pick up from the place where it was last
|
||||
checkpointed to disk.
|
||||
To resume a paused scrub issue
|
||||
.Nm zpool Cm scrub
|
||||
again.
|
||||
|
|
|
@ -449,7 +449,6 @@ dsl_scrub_pause_resume_sync(void *arg, dmu_tx_t *tx)
|
|||
spa_t *spa = dp->dp_spa;
|
||||
dsl_scan_t *scn = dp->dp_scan;
|
||||
|
||||
|
||||
if (*cmd == POOL_SCRUB_PAUSE) {
|
||||
/* can't pause a scrub when there is no in-progress scrub */
|
||||
spa->spa_scan_pass_scrub_pause = gethrestime_sec();
|
||||
|
|
Loading…
Reference in New Issue