diff options
| author | Paul Buetow <paul@buetow.org> | 2026-07-18 22:03:55 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-07-18 22:03:55 +0300 |
| commit | fbf9d4815ea25bd85be0f232ac8670bda1a64955 (patch) | |
| tree | 5cdf0f6d2ce069f2682b7abeb53da660e27c1b39 /prompts/skills/f3s/references/storage/backups.md | |
| parent | cee544948612841c8c7831b6de6776b288ce9d17 (diff) | |
skills: split f3s into six focused sibling skills (index pattern)
Execute plans/f3s-skill-split-plan.md. Carve the oversized f3s skill into six
f3s-prefixed siblings so each loads on its own triggers, and slim f3s to a hub
(38 reference files -> 10; 119 -> 73 lines):
- f3s-storage ZFS/zrepl/CARP/NFS-stunnel, nfs-mount-monitor, backups
- f3s-k3s cluster install, off-LAN access, ingress, etcd, r-node Rex
- f3s-observability Prometheus/Alloy/Loki/Tempo, FreeBSD node_exporter
- f3s-workloads Immich, Garage, Player, yChat, goprecords/uptimed
- f3s-raspberry-pi pi0/pi1 NetBSD static site, pi2/pi3 Pi-hole/LAN DNS
- f3s-dtail dserver deployment/ops (SSH 2222)
f3s hub keeps the master Host-IP table, physical hosts, bhyve, WireGuard mesh,
and off-LAN access as the canonical inward-pointing context, plus a Related
skills block. Applies skill-maintenance best practices: fixes the three inlined
SKILL.md duplications (Pi/webserver, DTail) by moving prose to one canonical home
and keeping each new SKILL.md a slim index that points to its references rather
than re-inlining them. All cross-skill links rewritten to ../../<skill>/references/
form (incl. inbound links from pkgrepo and rocky-vm-setup, and two pre-existing
broken links); verified all 112 relative links resolve.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'prompts/skills/f3s/references/storage/backups.md')
| -rw-r--r-- | prompts/skills/f3s/references/storage/backups.md | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/prompts/skills/f3s/references/storage/backups.md b/prompts/skills/f3s/references/storage/backups.md deleted file mode 100644 index 99fd425..0000000 --- a/prompts/skills/f3s/references/storage/backups.md +++ /dev/null @@ -1,40 +0,0 @@ -# Backups and Local-Path Storage - -## AWS S3 Glacier Deep Archive Backups - -Encrypted incremental ZFS snapshots from `zdata` pool backed up daily to **AWS S3 Glacier Deep Archive** via cron. Scripts adapted from FreeBSD Home NAS setup. Also performs periodic zpool scrubbing. - -## Local-Path Storage for SQLite Workloads - -Some k3s workloads use `local-path` (k3s default storageClass) instead of NFS for -their data volumes. This is appropriate when: - -- The application uses SQLite: NFS file-lock semantics cause `fcntl()` races on - pod restarts, and `Recreate` strategy only reduces (not eliminates) the risk. -- Cache-heavy workloads: NFS over stunnel adds TLS round-trip latency to every - cache read. Navidrome's image/background cache init took ~19s over NFS; it - takes ~25ms from local disk. - -**Trade-off**: a local-path PV lives on one specific node. If that node is down, -the pod reschedules elsewhere but finds no data volume — it starts with an empty DB, -losing play history, scrobble queue, etc. For a home server this is acceptable. -The deployment must pin the pod to the same node via `nodeSelector` so the local -PV is always reachable. - -### Workloads using local-path - -| App | Node | Path on node | -|-----|------|--------------| -| navidrome `/data` (DB + cache) | r1 | `/var/lib/rancher/k3s/storage/pvc-*_services_navidrome-data-pvc` | - -### Migrating NFS hostPath → local-path - -1. Disable ArgoCD auto-sync: `kubectl patch application <app> -n cicd --type=json -p='[{"op":"replace","path":"/spec/syncPolicy","value":{}}]'` -2. Scale deployment to 0: `kubectl scale deployment <app> -n services --replicas=0` -3. Delete old PVC and static PV. -4. Create new PVC with `storageClassName: local-path`. -5. Create a migration pod pinned to the target node that mounts both the NFS hostPath - (source) and the new PVC (target); copy data with `cp -av /src/. /dst/`. -6. Delete migration pod, apply updated deployment (with `nodeSelector`), scale back up. -7. Re-enable ArgoCD auto-sync and push manifests to git; push to in-cluster git-server - (`git push r0 master`) so ArgoCD picks up the new storageClass spec. |
