Storage Architecture#

Philosophy#

Start simple. No NAS/RAID until you have 3+ drives. Syncthing-first sync, thunderbolt cold backups, snapraid for phase 2.

Phase 1: Syncthing-First (What You Have Now)#

Setup#

hydrogen (2TB NVMe) ←→ helium (2TB NVMe + extra) ←→ lithium (2TB NVMe)

Install syncthing on all three boxes:

# Ubuntu/Debian
sudo apt install syncthing

# Enable auto-start
systemctl enable --now syncthing@$(whoami)

Configure sync folders:

  • /code — active development projects
  • /configs — dotfiles, service configs
  • /models — LLM models (large, sync selectively)

How it works:

  • Files sync peer-to-peer automatically
  • All three boxes have copies — no single point of failure
  • If helium dies, hydrogen and lithium still have data

Thunderbolt Cold Backups#

Weekly backup schedule:

# Mount thunderbolt NVMe
sudo mount /dev/nvmeXn1 /mnt/backup

# Full image backup (helium)
sudo dd if=/dev/nvme0n1 of=/mnt/backup/helium-$(date +%Y%m%d).img bs=4M status=progress

# Unmount
sudo umount /mnt/backup

Schedule with cron:

0 3 * * 0 /usr/local/bin/weekly-backup.sh

Phase 2: MergerFS + SnapRAID (When You Have 3+ Drives)#

MergerFS Pool#

# Install
sudo apt install mergerfs

# Create pool directory
sudo mkdir -p /pool/data

# Add to /etc/fstab
/mnt/drive* /pool/data mergerfs defaults,allow_other,category.create=mfs 0 0

SnapRAID Parity#

# Install
sudo apt install snapraid

# Configure /etc/snapraid.conf
content = /pool/data/.snapraid/content
parity = /mnt/parity/snapraid.parity
data = /pool/data/drive1
data = /pool/data/drive2
data = /pool/data/drive3

Run nightly:

sudo snapraid sync

Backup Strategy Summary#

LayerFrequencyScopeRetention
SyncthingReal-timeActive projectsCurrent state
SnapRAIDDaily/nightlyAll pooled dataLast sync
Cold backupWeeklyFull disk image4 weeks
Backblaze B2ContinuousCritical configs/codeUnlimited

What RAID Is NOT#

  • Not a backup — ransomware still encrypts everything
  • Not cloud storage — you still manage it
  • Not necessary for 1 drive — RAID needs 2+ drives

What NAS Is NOT#

  • Not faster than local — network adds latency
  • Not magic — if the NAS dies, you’re stuck until rebuild