mbox series

[GIT,PULL,15/23] xfs_scrub_all: automatic media scan service

Message ID 172230459290.1455085.13159985441266119133.stg-ugh@frogsfrogsfrogs (mailing list archive)
State Accepted, archived
Headers show
Series [GIT,PULL,01/23] libxfs: fixes for 6.9 | expand

Pull-request

https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfsprogs-dev.git tags/scrub-media-scan-service-6.10_2024-07-29

Message

Darrick J. Wong July 30, 2024, 2:44 a.m. UTC
Hi Carlos,

Please pull this branch with changes for xfsprogs for 6.10-rc1.

As usual, I did a test-merge with the main upstream branch as of a few
minutes ago, and didn't see any conflicts.  Please let me know if you
encounter any problems.

The following changes since commit 50411335572120153cc84d54213cd5ca9dd11b14:

xfs_scrub_all: tighten up the security on the background systemd service (2024-07-29 17:01:10 -0700)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfsprogs-dev.git tags/scrub-media-scan-service-6.10_2024-07-29

for you to fetch changes up to e040916f649f71fb6a695dfcc6f6c9f576c5c4db:

xfs_scrub_all: failure reporting for the xfs_scrub_all job (2024-07-29 17:01:10 -0700)

----------------------------------------------------------------
xfs_scrub_all: automatic media scan service [v30.9 15/28]

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.

This has been running on the djcloud for months with no problems.  Enjoy!

Signed-off-by: Darrick J. Wong <djwong@kernel.org>

----------------------------------------------------------------
Darrick J. Wong (6):
xfs_scrub_all: only use the xfs_scrub@ systemd services in service mode
xfs_scrub_all: remove journalctl background process
xfs_scrub_all: support metadata+media scans of all filesystems
xfs_scrub_all: enable periodic file data scrubs automatically
xfs_scrub_all: trigger automatic media scans once per month
xfs_scrub_all: failure reporting for the xfs_scrub_all job

debian/rules                                     |   3 +-
include/builddefs.in                             |   3 +
man/man8/Makefile                                |   7 +-
man/man8/{xfs_scrub_all.8 => xfs_scrub_all.8.in} |  20 +++-
scrub/Makefile                                   |  21 +++-
scrub/xfs_scrub@.service.in                      |   2 +-
scrub/xfs_scrub_all.cron.in                      |   2 +-
scrub/xfs_scrub_all.in                           | 126 ++++++++++++++++++-----
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@.service.in                 |   2 +-
scrub/xfs_scrub_media@.service.in                | 100 ++++++++++++++++++
scrub/xfs_scrub_media_fail@.service.in           |  76 ++++++++++++++
14 files changed, 443 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@.service.in
create mode 100644 scrub/xfs_scrub_media_fail@.service.in