Hi all, Now that we've completed the online fsck functionality, there are a few things that could be improved in the automatic service. Specifically, we would like to perform a more intensive metadata + media scan once per month, to give the user confidence that the filesystem isn't losing data silently. To accomplish this, enhance xfs_scrub_all to be able to trigger media scans. Next, add a duplicate set of system services that start the media scans automatically. If you're going to start using this code, I strongly recommend pulling from my git trees, which are linked below. This has been running on the djcloud for months with no problems. Enjoy! Comments and questions are, as always, welcome. --D xfsprogs git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=scrub-media-scan-service --- debian/rules | 3 + include/builddefs.in | 3 + man/man8/Makefile | 7 ++ man/man8/xfs_scrub_all.8.in | 20 +++++ scrub/Makefile | 21 +++++- scrub/xfs_scrub@xxxxxxxxxxx | 2 - scrub/xfs_scrub_all.cron.in | 2 - scrub/xfs_scrub_all.in | 122 ++++++++++++++++++++++++++------ scrub/xfs_scrub_all.service.in | 9 ++ scrub/xfs_scrub_all_fail.service.in | 71 +++++++++++++++++++ scrub/xfs_scrub_fail.in | 46 +++++++++--- scrub/xfs_scrub_fail@xxxxxxxxxxx | 2 - scrub/xfs_scrub_media@xxxxxxxxxxx | 100 ++++++++++++++++++++++++++ scrub/xfs_scrub_media_fail@xxxxxxxxxxx | 76 ++++++++++++++++++++ 14 files changed, 439 insertions(+), 45 deletions(-) rename man/man8/{xfs_scrub_all.8 => xfs_scrub_all.8.in} (59%) create mode 100644 scrub/xfs_scrub_all_fail.service.in create mode 100644 scrub/xfs_scrub_media@xxxxxxxxxxx create mode 100644 scrub/xfs_scrub_media_fail@xxxxxxxxxxx