Forrest logo
back to the zpool tool

zpool:tldr:7e2fc

zpool: Check a ZFS pool for errors (verifies the checksum of EVERY block). Very CPU and disk intensive.
$ zpool scrub ${pool_name}
try on your machine

The command "zpool scrub ${pool_name}" is used to initiate a scrubbing process on a ZFS storage pool named "${pool_name}".

A ZFS storage pool is a logical collection of physical storage devices such as hard drives or solid-state drives. Scrubbing, in the context of ZFS, is a process that checks the integrity of data stored in the pool.

During a scrub, ZFS examines all the data blocks in the pool and verifies their checksums against the expected values. If a checksum mismatch is detected, it means that the data may have been corrupted. In such cases, ZFS attempts to use redundancy or other error correction techniques to repair the data or mark it as corrupted.

The "zpool scrub" command is typically used as a maintenance task to proactively identify and correct data integrity issues before they escalate into larger problems. Running this command periodically, especially on larger storage pools, can help ensure the long-term reliability and integrity of data stored in the pool.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the zpool tool