]> git.proxmox.com Git - mirror_zfs.git/commitdiff
OpenZFS 8414 - Implemented zpool scrub pause/resume
authorAlek P <alek-p@users.noreply.github.com>
Thu, 24 Aug 2017 17:27:20 +0000 (10:27 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 24 Aug 2017 17:27:20 +0000 (10:27 -0700)
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

man/man8/zpool.8
module/zfs/dsl_scan.c

index 232d14db51a66a9aae1790874cbd543b675fe28a..cbc2ab65af6293277f2b5e49f6df26e17c321fc3 100644 (file)
@@ -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.
index d8e3188955e84c43fff147da1d3b844aa0e36542..b9b1aadf0bf73590dd00a575cee4b3e332b1f603 100644 (file)
@@ -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();