From ab44f2f1d848ac339e3a0fc8e56dc5630fd463c6 Mon Sep 17 00:00:00 2001 From: Matthew Jackson Date: Tue, 19 May 2026 08:27:44 -0700 Subject: [PATCH] host-agent template: drop rslave from root mount (Unraid incompatible) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `docker start host-agent` failed on unraid-1 with: Error response from daemon: path / is mounted on / but it is not a shared or slave mount Unraid's root filesystem mount has "private" propagation by default and rejects rslave from a container's volume spec. The static view of host mounts (without rslave) is fine for an unraid box where the array is mounted before host-agent starts — we lose the ability to see *future* host mounts inside the container, which we never use anyway. Container stays in Created state until this is fixed: user runs install.sh + re-Applies my-host-agent template in Unraid UI. --- unraid-1/host-agent.template.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unraid-1/host-agent.template.xml b/unraid-1/host-agent.template.xml index 6f85288..2754666 100644 --- a/unraid-1/host-agent.template.xml +++ b/unraid-1/host-agent.template.xml @@ -34,7 +34,7 @@ https://raw.githubusercontent.com/prometheus/prometheus/main/web/ui/static/img/prometheus_logo_grey.svg - --restart=unless-stopped --cgroupns=host -v /:/host:ro,rslave --label com.centurylinklabs.watchtower.enable=true + --restart=unless-stopped --cgroupns=host -v /:/host:ro --label com.centurylinklabs.watchtower.enable=true @@ -45,7 +45,7 @@ host-agent: single container, s6-supervised, bundles per-host metrics + Dell fan On unraid-1 (consumer hardware): fan-controller + ipmi_exporter + nvidia_gpu_exporter self-disable. node_exporter (CPU/mem/disk/net), cadvisor (per-container), smartctl_exporter (drive SMART), and vmagent (remote_write) run and push to your Prometheus. -The root mount (/:/host:ro,rslave) is wired via ExtraParams since Unraid's Path config doesn't expose mount propagation flags; rslave is required for node_exporter's rootfs view to track later host mounts. +The root mount (/:/host:ro) is wired via ExtraParams since Unraid's Path config doesn't expose `-v` syntax. rslave propagation was dropped because Unraid's root mount is "private" by default and rejects rslave with "path / is mounted on / but it is not a shared or slave mount"; static-view is fine for an Unraid box where the array is mounted before the container starts. /sys