mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-10-24 15:05:54 +00: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 statsand 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
.serviceand.timerunit. - Send alerts via
sys-alm-composeif any filesystem shows errors.