Giving Zebra a place to keep its data
Moving an application between machines is useful until its files are still on the machine it left. Once services need persistent data, where it lives becomes part of deciding how to run them.
TrueNAS is the software on my network-attached storage server, or NAS. It supplies shared storage for Zebra, my Kubernetes cluster. I can manage pools, expose volumes, and take local snapshots centrally, instead of arranging independent disks and policies for every service.
That convenience also makes several applications depend on the NAS and the network reaching it.
Choosing the interface
Immich uses a shared Network File System (NFS) directory for photo files. Other applications use iSCSI, which presents remote storage as a block device so the client can use a filesystem on it.
The distinction matters for backups. A file-copy task can walk an exported directory; it cannot automatically read inside every block volume. The backup process needs to account for both.
I have SSD-backed iSCSI for more latency-sensitive work and HDD-backed storage where capacity matters more. Databases that manage their own replication can choose differently: CloudNativePG can keep independent PostgreSQL copies on the nodes' local SSDs. TrueNAS doesn't have to sit underneath every write.
The storage is useful beyond Kubernetes too. A family laptop synchronises files to TrueNAS through Syncthing with versioning. I treat that as best-effort help rather than a recovery guarantee. Retained versions help with some changes; I still shouldn't assume that synchronisation alone proves a complete backup or a successful restore.
Application -> network -> TrueNAS -> live volume
-> local snapshots
Lost NAS -> both may be unavailable
Off-site copy -> separate recovery work
Going back to an earlier state
ZFS, the filesystem used by TrueNAS, can retain snapshots of a dataset or volume. These give me a way to recover an earlier state without first downloading a remote copy.
They consume space as live data changes, so retention and free capacity need attention. They also share the fate of the storage holding them. I've experienced NAS disk failures; surviving a particular disk loss doesn't establish recovery after losing a whole pool or the room.
Applications spread across volumes need extra care. A snapshot captures storage state, but an application may need coordinated captures or its own backup method. Garage, which provides object storage on this NAS, is an important example: its metadata and object blocks must restore together.
When the NAS isn't there
I need to distinguish a broken storage path from lost storage. Restoring connectivity may make an existing volume usable again; replacement hardware needs a recovery process and a usable copy. More application replicas won't resolve either case on their own.
The acceptable repair time depends on the activity. A service that can wait may fit shared storage well. One that must keep writing through a NAS outage needs independent data copies or another storage design whose complexity is justified. Choosing storage is where I make that distinction.
For recovery, I want a representative dataset or volume restored into isolation, attached to a test application, and checked through useful reads and writes. Timing includes obtaining replacement capacity and access, not only copying bytes. A measured whole-NAS recovery time isn't established here.
Most of this equipment shares one room, so off-site recovery remains necessary. For a smaller setup, local disks and a straightforward backup can be easier. TrueNAS earns its place for me by centralising useful storage work, with the shared dependency left plainly visible.