mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-07-17 14:04:24 +02:00
sys-hlth-btrfs
Description
Checks the health of all mounted Btrfs filesystems by inspecting device error counters.
Features
- Iterates over every Btrfs filesystem.
- Runs
btrfs device stats
and alerts if any error counters are non-zero. - Hooks into systemd and a timer for regular checks.
- On failure, calls
sys-alm-compose.cymais@…
for notification.
Usage
Just include this role in your playbook; it will:
- Deploy a small shell script under
{{ path_administrator_scripts }}/sys-hlth-btrfs/
. - Install a
.service
and.timer
unit. - Send alerts via
sys-alm-compose
if any filesystem shows errors.