Add problem: TrueNAS SCALE immutable OS, workaround via /mnt/datapool

This commit is contained in:
post 2026-06-22 20:55:33 +00:00
parent 26e5719af2
commit 0de6393d96

View file

@ -0,0 +1,49 @@
# 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/`:
```bash
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:
```ini
[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-applications` dataset (not recommended, breaks TrueNAS updates)
- The ZFS pool path approach is cleanest for simple daemons
## Affected Services
- node_exporter: `/mnt/datapool/prometheus/node_exporter`