← All posts

Back to TrueNAS, with fewer moving parts

I have tried Ceph, Rook, and Longhorn. These projects help operate storage distributed across machines; Rook manages systems such as Ceph within Kubernetes. I have tried giving distributed storage separate nodes. After working through those options, I now use TrueNAS, a network-attached storage server (NAS), for the shared storage in this setup. I have come full circle.

I've lost Ceph and Longhorn clusters along the way. Those experiences aren't evidence of a universal flaw in either project, and I'm not inventing a cause or timeline here. They helped make recovery and operational complexity real concerns for me. I still want services to survive a failed machine; I want to understand how to repair the design too.

I'd rather understand how to get my data back than admire a storage design I can't confidently repair. There's only so much comfort to be had from a diagram with lots of arrows.

Why the data makes this harder

With a stateless application, I can often start another instance and send requests to it. Persistent data needs more care. Multiple copies must have a defined way to agree about writes, handle interrupted communication, and recover after a failed component returns.

A storage system also needs enough spare capacity and performance to recover while continuing to serve applications. Losing a disk or node is precisely when rebuilding can create additional load. Extra replicas do not remove those requirements.

Ceph and Longhorn approach distributed storage differently. Rook is an operator used to manage systems such as Ceph in Kubernetes, rather than a third equivalent storage engine. I do not want to turn my experience into a claim that these projects cannot work. They can; the question is whether I can operate the resulting system well on the hardware and time I have.

Dedicated nodes can separate some workloads, but introduce more machines, networking, capacity planning, and upgrades. That effort matters in a personal setup where I am also responsible for the applications using the storage.

Choosing what I can look after

Reliable highly available (HA) storage is possible with open-source software. It does not inherently require an enterprise licence. The hardware, redundant paths, operational knowledge, and testing needed to make it dependable still have a cost, which can quickly resemble an enterprise project.

I would rather be explicit about the TrueNAS dependency than build something more complicated and assume I have solved availability. Several applications sharing one NAS can be affected together when it is unavailable. I accept that limitation while putting effort into recovery.

Coming back to TrueNAS did not mean choosing one storage class for everything. I keep local SSD, SSD-backed and HDD-backed iSCSI volumes, which present remote storage as block devices, and Garage object storage available for different needs. Choosing between those building blocks is part of simplifying the setup: a service should use the option that fits its access pattern and recovery needs, rather than inherit unnecessary layers.

This choice is about the shared storage platform, not a claim that every database uses a NAS volume. CloudNativePG-managed PostgreSQL database replicas can use their own local storage and replicate at the database layer. That is a separate design decision with its own failure cases.

Separate nodes would not, by themselves, solve the physical risk either. Almost everything I store is in one building, much of it one room. Distributed copies there can help with a failed component while sharing the same fire, water, or theft event. The room-loss recovery work remains necessary whichever shared-storage system I choose.

Making recovery part of the choice

Choosing simpler storage makes the backup strategy more important. I need to know what is covered, where an independent copy lives, and how to restore the complete application state. There is still outstanding validation work in that path; simplicity does not excuse skipping it.

The shared dependencies need to remain visible too. Garage stores objects and database backups while depending on the NAS itself. Recovering an application through Garage may first require recovering Garage and its storage.

If you're choosing storage, count the evenings as well as the disks. I want something I can understand when it's broken, with a recovery path for the downtime I've accepted. TrueNAS fits that preference for now, with the unfinished backup work still attached. I'm applying the same test to the rest of the cluster's single points of failure.

← Back to the notebook