xfs_scrub_all(8)
๐ xfs_scrub_all(8) ๐ โ NAME โจ
okay so the manual name is xfs_scrub_all, and its whole job is to scrub all mounted XFS filesystems ๐
๐ธ NAME ๐ธ
xfs_scrub_all - scrub all mounted XFS filesystems โจ
๐ SYNOPSIS ๐
xfs_scrub_all [ -hxV ]
๐ฆ DESCRIPTION ๐ฆ
okay bestie, so xfs_scrub_all tries to read and check all the metadata on every mounted XFS filesystem ๐ซถ the online scrub gets done by the xfs_scrub tool, and you can either run it directly or let systemd kick it off in a restricted way ๐ฅ
here's the lowkey clever part ๐ง every mounted filesystem gets mapped to its physical storage device, so scrubs can run in parallel as long as no two scrubbers are touching the same device at the same time. no cap, that's giving efficiency ๐
๐ OPTIONS ๐
--auto-media-scan-intervalโ automatically turns on the file data scan (aka the-xflag) if it hasn't run within the interval you give it ๐ the interval can be a floating point number with an optional unit suffix. the units you can use arey,q,mo,w,d,h,m, ands, which mean years, 90-day quarters, 30-day months, weeks, days, hours, minutes, and seconds, in that order ๐ if you don't specify a unit, it defaults to seconds--auto-media-scan-stampโ the path to a file that records the last time the media scan ran ๐ it defaults to/var/lib/xfsprogs/xfs_scrub_all_media.stamp-hโ displays help ๐โโ๏ธ-xโ reads all file data extents to look for disk errors ๐-Vโ prints the version number and exits ๐ซง
๐ EXIT CODE ๐
okay so the exit code xfs_scrub_all returns is the sum of the following conditions, so you can decode what went wrong by adding up the numbers ๐งฎ
0โ no errors ๐ฅฐ4โ file system errors left uncorrected ๐ญ8โ operational error ๐16โ usage or syntax error ๐
these are the same error codes that xfs_scrub returns too โจ
๐ง SEE ALSO ๐ง
bestie, that's the whole page ๐ซถ this was the xfsprogs manual, from the xfs_scrub_all(8) page of the System Manager's Manual ๐๐ฆ slay forever ๐ โจ
๐ฆ where this page comes from
- alpine 3.22: xfsprogs-doc 6.14.0-r0 ยท LGPL-2.1-or-later
- alpine 3.23: xfsprogs-doc 6.17.0-r0 ยท LGPL-2.1-or-later
- alpine 3.24: xfsprogs-doc 7.0.1-r0 ยท LGPL-2.1-or-later
- arch rolling: xfsprogs 7.2.0-1
- arch rolling: xfsprogs 7.2.1-1 ยท GPL-2.0-only AND LGPL-2.1-only
- centos-stream 10: xfsprogs-xfs_scrub 6.16.0-1.el10 ยท GPL-1.0-or-later AND LGPL-2.1-or-later
- debian trixie: xfsprogs 6.13.0-2+deb13u1 ยท GPL-2.0-only
- fedora 43: xfsprogs-xfs_scrub 6.15.0-3.fc43 ยท GPL-1.0-or-later AND LGPL-2.1-or-later
- fedora 44: xfsprogs-xfs_scrub 6.18.0-2.fc44 ยท GPL-1.0-or-later AND LGPL-2.1-or-later
- fedora 44: xfsprogs-xfs_scrub 7.1.1-1.fc44 ยท GPL-1.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: xfsprogs 6.19.0-160000.3.1 ยท GPL-2.0-or-later
- opensuse-leap 16.0: xfsprogs 6.19.0-160000.3.1 ยท GPL-2.0-or-later
- opensuse-leap 16.0: xfsprogs 6.19.0-160000.3.1 ยท GPL-2.0-or-later
- opensuse-leap 16.0: xfsprogs 6.19.0-160000.3.1 ยท GPL-2.0-or-later
- ubuntu questing: xfsprogs 6.13.0-2ubuntu2 ยท GPL-2.0-only
- ubuntu resolute: xfsprogs 6.18.0-3 ยท GPL-2.0-only
- ubuntu stonking: xfsprogs 6.19.0-1 ยท GPL-2.0-only
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms