| 1 |
.TH xfs_scrub_all 8 |
| 2 |
.SH NAME |
| 3 |
xfs_scrub_all \- scrub all mounted XFS filesystems |
| 4 |
.SH SYNOPSIS |
| 5 |
.B xfs_scrub_all |
| 6 |
[ |
| 7 |
.B \-hxV |
| 8 |
] |
| 9 |
.SH DESCRIPTION |
| 10 |
.B xfs_scrub_all |
| 11 |
attempts to read and check all the metadata on all mounted XFS filesystems. |
| 12 |
The online scrub is performed via the |
| 13 |
.B xfs_scrub |
| 14 |
tool, either by running it directly or by using systemd to start it |
| 15 |
in a restricted fashion. |
| 16 |
Mounted filesystems are mapped to physical storage devices so that scrub |
| 17 |
operations can be run in parallel so long as no two scrubbers access |
| 18 |
the same device simultaneously. |
| 19 |
.SH OPTIONS |
| 20 |
.TP |
| 21 |
.B \--auto-media-scan-interval |
| 22 |
Automatically enable the file data scan (i.e. the |
| 23 |
.B -x |
| 24 |
flag) if it has not been run in the specified interval. |
| 25 |
The interval must be a floating point number with an optional unit suffix. |
| 26 |
Supported unit suffixes are |
| 27 |
.IR y ", " q ", " mo ", " w ", " d ", " h ", " m ", and " s |
| 28 |
for years, 90-day quarters, 30-day months, weeks, days, hours, minutes, and |
| 29 |
seconds, respectively. |
| 30 |
If no units are specified, the default is seconds. |
| 31 |
.TP |
| 32 |
.B \--auto-media-scan-stamp |
| 33 |
Path to a file that will record the last time the media scan was run. |
| 34 |
Defaults to /var/lib/xfsprogs/xfs_scrub_all_media.stamp. |
| 35 |
.TP |
| 36 |
.B \-h |
| 37 |
Display help. |
| 38 |
.TP |
| 39 |
.B \-x |
| 40 |
Read all file data extents to look for disk errors. |
| 41 |
.TP |
| 42 |
.B \-V |
| 43 |
Prints the version number and exits. |
| 44 |
.SH EXIT CODE |
| 45 |
The exit code returned by |
| 46 |
.B xfs_scrub_all |
| 47 |
is the sum of the following conditions: |
| 48 |
.br |
| 49 |
\ 0\ \-\ No errors |
| 50 |
.br |
| 51 |
\ 4\ \-\ File system errors left uncorrected |
| 52 |
.br |
| 53 |
\ 8\ \-\ Operational error |
| 54 |
.br |
| 55 |
\ 16\ \-\ Usage or syntax error |
| 56 |
.TP |
| 57 |
These are the same error codes returned by xfs_scrub. |
| 58 |
.br |
| 59 |
.SH SEE ALSO |
| 60 |
.BR xfs_scrub (8). |