1.4 KiB
1.4 KiB
TrueNAS SCALE — Immutable OS Filesystem
Date: 2026-06-22 Status: Documented (workaround applied)
Problem
TrueNAS SCALE (26.0.0-BETA.1) uses an immutable OS filesystem based on ZFS boot-pool snapshots.
Attempting to write to /usr/local/bin/, /opt/, /bin/ etc. fails with:
mv: inter-device move failed: unable to remove target: Read-only file system
This affects installing any binary to standard system paths.
Root Cause
The OS boot-pool dataset (boot-pool/ROOT/26.0.0-BETA.1/usr) is mounted read-only.
TrueNAS SCALE intentionally makes the OS immutable to prevent state drift and allow atomic upgrades.
Solution
Install binaries and persistent files on the ZFS data pool at /mnt/datapool/:
mkdir -p /mnt/datapool/prometheus
cp /tmp/node_exporter /mnt/datapool/prometheus/
chmod +x /mnt/datapool/prometheus/node_exporter
Systemd service references the data pool path:
[Service]
ExecStart=/mnt/datapool/prometheus/node_exporter
Warning: /tmp/ works as staging but is tmpfs — lost on reboot.
Always move binaries to /mnt/datapool/ for persistence.
Alternative Approaches
- TrueNAS Apps (Kubernetes-based) — sandboxed containers
- Docker via
ix-applicationsdataset (not recommended, breaks TrueNAS updates) - The ZFS pool path approach is cleanest for simple daemons
Affected Services
- node_exporter:
/mnt/datapool/prometheus/node_exporter