Files
abuckit 735fabc2d8 packaging: disable XFS retry-on-error on Buckit data drives
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.
2026-06-23 23:51:30 -04:00

63 lines
1.4 KiB
YAML

name: buckit
arch: ${PKG_ARCH}
platform: linux
version: ${PKG_VERSION}
section: net
priority: optional
maintainer: "Buckit Maintainers <noreply@buckit.io>"
description: |
Buckit is a high-performance, S3-compatible object storage server.
It is API compatible with the Amazon S3 cloud storage service and
designed for large-scale data infrastructure workloads including
machine learning, analytics, and application storage.
vendor: "Buckit"
homepage: https://github.com/buckit-io/buckit
license: AGPL-3.0
contents:
- src: ./dist/buckit
dst: /usr/local/bin/buckit
file_info:
mode: 0755
owner: root
group: root
- src: ./packaging/buckit.service
dst: /lib/systemd/system/buckit.service
file_info:
mode: 0644
owner: root
group: root
- src: ./packaging/xfs-retry-settings.sh
dst: /usr/local/lib/buckit/xfs-retry-settings.sh
file_info:
mode: 0755
owner: root
group: root
- src: ./packaging/buckit-xfs-retry.service
dst: /lib/systemd/system/buckit-xfs-retry.service
file_info:
mode: 0644
owner: root
group: root
- src: ./packaging/buckit-xfs-retry.timer
dst: /lib/systemd/system/buckit-xfs-retry.timer
file_info:
mode: 0644
owner: root
group: root
scripts:
postinstall: ./packaging/scripts/postinstall.sh
postremove: ./packaging/scripts/postremove.sh
rpm:
group: Applications/File
deb:
fields:
XB-Vendor: "Buckit"