← All posts

All my data, mostly in one room

Almost everything I store is in the same building, much of it in the same room. It's convenient. I don't have to travel very far to find the hardware. Unfortunately, neither would a leak.

Zebra is my Kubernetes cluster. It uses local node disks, a TrueNAS storage server, and Garage object storage backed by that server. Separate machines help with individual failures, but they still share the room's fate. Only the router/firewall is in another room.

Where the copies go

Home: largely one room
  Database disks -> backups in Garage
  Garage + application files -> TrueNAS
  TrueNAS snapshots -> still on the NAS
                   |
         encrypted exports and copies
                   |
                   v
            Backblaze B2 off-site

The off-site arrow represents configured uploads, not proof of complete recovery. Coverage, retention, and independent restoration still need work. My UPS units don't provide automatic safe shutdown, and I have no temperature or water monitoring. Those physical protection gaps remain alongside the backup work.

Which loss am I preparing for?

I've lost disks on the NAS and nodes and tested node failures. A surviving database copy can help where replication and placement allow it, provided there's capacity left to use it. That experience is useful without establishing that every application survives every component loss.

Losing the whole NAS is a larger problem. Local snapshots share the pool's fate, and Garage's database backups depend on the NAS too. I need independent copies, keys, configuration, and replacement capacity. Another healthy application pod cannot supply those.

Now remove access to the room as well. Fire, water, theft, electrical damage, or simply being unable to enter can take several recovery options away together. An unplugged disk there shares the risk. I believe recovery is possible, but I haven't demonstrated a complete rebuild of today's setup without the home equipment.

Physical distance doesn't cover every loss either. A deletion or faulty migration can reach all replicas. Undoing it needs retained history, including the transaction logs for point-in-time database recovery, going back further than the time it takes to notice the mistake.

If an attacker can erase that history using production credentials, the backups are exposed too. Separate access and deletion protection need to limit that damage. Encryption alone won't prevent deletion, and current retention protection remains unresolved here; I can't call the copies immutable.

The off-site account is another dependency. If it or the provider becomes unavailable, a second bucket under the same account won't help. Independent account recovery and another destination for irreplaceable data are options to evaluate, not a second-provider copy I've already verified.

Recovery needs a beginning

For room loss, the intended sequence is to regain access independently, obtain compatible off-site data, reconstruct storage services such as Garage, and then restore a useful application. Kubernetes state also matters: etcd snapshots preserve live information Git alone doesn't recreate, and their current destination is Garage.

I restored etcd a few months before this update and have restored many services over time. I also run automated database restores. Those experiences matter; they don't prove the complete off-site chain after a room-wide loss.

A yearly full-cluster exercise appeals to me. Temporary Hetzner infrastructure in the EU might make an isolated test possible, but I haven't settled the method or budget. It would need to avoid relying on the live home storage, identity service, and cached access.

The backup-process failures are the next question: did the right data get copied, can I open it, and does it restore together? A useful off-site copy has to survive the event and still be usable afterwards. That's the work I need to finish, rather than adding more disks to the same room.

← Back to the notebook