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/backupSchedule with cron:
0 3 * * 0 /usr/local/bin/weekly-backup.shPhase 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 0SnapRAID 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/drive3Run nightly:
sudo snapraid syncBackup Strategy Summary#
| Layer | Frequency | Scope | Retention |
|---|---|---|---|
| Syncthing | Real-time | Active projects | Current state |
| SnapRAID | Daily/nightly | All pooled data | Last sync |
| Cold backup | Weekly | Full disk image | 4 weeks |
| Backblaze B2 | Continuous | Critical configs/code | Unlimited |
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