Go to main content
Oracle® ZFS Storage Appliance Administration Guide, Release OS8.7.0

Exit Print View

Updated: July 2017
 
 

Scrubbing a Storage Pool (CLI)

Scrubbing a storage pool verifies the content by checking for errors. If any unrecoverable errors are found, either through a scrub or through normal operation, the CLI displays the affected files. If desired, the scrub process can be stopped before completion.

In general, a scrub should be performed as often as your oldest backup expires, at a minimum. The recommended time frame for performing a scrub is quarterly. A scrub should also be run before performing a software upgrade.

  1. Go to configuration storage.
  2. If you have multiple pools, a default pool is selected and displayed. If this is not the pool you want to scrub, enter set pool= and specify another online pool.

    Note -  If you have a single pool, the pool name is not displayed, but it is selected.
    hostname:configuration storage (pool0)> set pool=pool1
                              pool = pool1
  3. Enter scrub start.
    hostname:configuration storage (pool1)> scrub start
  4. (Optional) Stop the scrub before it has completed by entering scrub stop.
    hostname:configuration storage (pool1)> scrub stop

    Entering scrub start again resumes the scrub from where it was stopped.

Related Topics