sys-ctl-hlth-btrfsΒΆ
DescriptionΒΆ
Checks the health of all mounted Btrfs filesystems by inspecting device error counters.
OverviewΒΆ
This role health-check for Btrfs filesystems, alerts on any device error counters.
CosmosΒΆ
The diagram places sys-ctl-hlth-btrfs in the Infinito.Nexus cosmos: the components it deploys (capabilities), the central services it consumes (dependencies), and its outward reach (federation and bridged external networks).
flowchart LR
subgraph role [sys-ctl-hlth-btrfs π»]
svc_btrfs["btrfs"]
end
Solid 1:1 edges are fixed relationships; dashed 0..1 edges are conditional (enabled only in matching deployments); red 0..0 edges are turned off in this role. Node markers show the roleβs deploy modes (π» host, π³ compose, π swarm); β marks a service that is explicitly turned off, and βοΈ an Ansible role dependency declared in meta/main.yml.
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-ctl-alm-compose.infinito@β¦for notification.
UsageΒΆ
Just include this role in your playbook; it will:
Deploy a small shell script
Install a
.serviceand.timerunit.Send alerts via
sys-ctl-alm-composeif any filesystem shows errors.
CreditsΒΆ
Implemented by Kevin Veen-Birkenbach. Part of the Infinito.Nexus Project and maintained by Kevin Veen-Birkenbach. Licensed under the Infinito.Nexus Community License (Non-Commercial).