private-schrijfsels-en-noti.../2025/xg-infra-upgrade-2025.md

81 lines
2.5 KiB
Markdown

---
tags:
- freebsd
- homelab
---
# NAS
* clean install newest FreeBSD 14.2
* move OS /home into /data/home zpool/home
* mount ISO over IPMI
* Manage old zpool:
* (old OS) zpool export zpool
* (new OS) zpool import -N zpool
* zpool status
* zpool upgrade
* zpool upgrade zpool
* https://docs.freebsd.org/en/books/handbook/zfs/#zfs-zpool-upgrade
* Syncthing shares on separated ZFS subvolumes
* zfs autosnapshot retetion policies
* pyrotechnics & private data zfs copies=2?
* Applications in VMs
* Photoprism
* Homeassistant? or in jail?
* Applications in seperate freebsd jails
* Syncthing
* Transmission
* (existing -> upgrade) Gitea
* Template FreeBSD 14.2
* Samba
* VTVBB sync + go tooling
* Cache: pkg + freebsd update (for jails)
* Data partitioning
* zroot (ssd OS only)
* zpool (14TB hdd mirror)
* /data/home
Host OS services:
* SSH + sshguard
Improvements & things to not forget:
* backup settings from /etc and /usr/local/etc before SSD OS disk wipe
* private keychains daily snapshots (separate Syncthing share + copies=2?)
* Syncthing
* per-share zfs subvolume
* per-share needs .zfs ignore or else snapshots are propagated
* crontab(s) backup
* samba config
* gitea backup
* sshguard
* jails settings backup
* vanilla jails management with templates
* Migrate from zfstools auto-snapshot and prune to Python zfs-autobackup?
* See blog https://it-notes.dragas.net/2024/08/21/automating-zfs-snapshots-for-peace-of-mind/
* URLs for (web)services with nanodash for homelab + quick access
* Upgrade gitea and migrate sqlite to postgres
* https://forum.gitea.com/t/migrate-from-sqlite-to-postgresql/2269/
* https://tutorialinux.com/today-learned-migrating-sqlite-postgres-easy-sequel/
* Migrate all automations Hue -> Home Assistant
* Samba network share
* AVAHI/Bonjour autodiscovery
* Automount network shares on macOS
* ZFS zpool scrub monthly cron
* Homeassistant in FreeBSD jail rc.d service file for auto-start on boot
* FreeBSD pkg cache for jails
* https://omussell.github.io/fbsd-update-cache/
* https://forums.freebsd.org/threads/nginx-pkg-cache-help.85699/ + https://serverfault.com/a/1026574
# Syncthing share enrol on ZFS subvolume
1. Create zfs subvolume: `zfs create ...`
2. Set zfs-auto-snapshot property (for zfstools) : `zfs set ..`
3. Create share in Syncthing web GUI
4. Ignore .zfs folder (to not propagate to connected peers): filter `.zfs`
# See also
* [[freebsd-notes]]
* [[freebsd-jail-vanilla]]
* [[So you wanna do FreeBSD 14.1 and native Home Assistant?]]
* [[computers-and-machines]]