mirror of
https://github.com/buckit-io/buckit.git
synced 2026-09-12 05:49:02 +00:00
735fabc2d8
Buckit handles XFS errors itself, so the kernel default (retry-on-error forever) only adds latency. Ship a systemd timer that periodically sets max_retries=0 for the EIO, ENOSPC, and default error classes on the block devices backing MINIO_VOLUMES. The values reset on every mount, so the timer (re-)applies them after boot and after a restart-free drive hot-swap. The script reads MINIO_VOLUMES from the running server's process environment, scopes writes to only the mounted Buckit data drives (never the root fs or unrelated XFS volumes), and exits cleanly when the server is down or no XFS is present. Genuine write failures are logged and surface the unit as failed. postinstall enables the timer (idempotent across upgrades); postremove disables it only on full removal.