xfs\_scrub\_all(8) System Manager's Manual xfs\_scrub\_all(8)

# [NAME](#NAME)

xfs\_scrub\_all - scrub all mounted XFS filesystems

# [SYNOPSIS](#SYNOPSIS)

**xfs\_scrub\_all** \[ **-hV** ]

# [DESCRIPTION](#DESCRIPTION)

**xfs\_scrub\_all** attempts to read and check all the metadata on all mounted XFS filesystems. The online scrub is performed via the **xfs\_scrub** tool, either by running it directly or by using systemd to start it in a restricted fashion. Mounted filesystems are mapped to physical storage devices so that scrub operations can be run in parallel so long as no two scrubbers access the same device simultaneously.

# [OPTIONS](#OPTIONS)

[**-h**](#h)

Display help.

[**-V**](#V)

Prints the version number and exits.

# [EXIT CODE](#EXIT_CODE)

The exit code returned by **xfs\_scrub\_all** is the sum of the following conditions:  
0 - No errors  
4 - File system errors left uncorrected  
8 - Operational error  
16 - Usage or syntax error

[These are the same error codes returned by xfs\_scrub.](#These)

# [SEE ALSO](#SEE_ALSO)

[**xfs\_scrub**(8)](/man/enterprise-packages/xfsprogs-5.10/xfs_scrub.8).

---

Document: xfs_scrub_all(8) from xfsprogs-5.10 5.10.0-r47 (Chainguard OS)
Source: https://kernel.googlesource.com/pub/scm/fs/xfs/xfsprogs-dev
