22 lines
1.2 KiB
Markdown

# TRUENAS SCALE MAINTENANCE LOGS
### A REPO OF FUCKING LOGS
(FUCK YOU)
---
## Events
### **10-1-2025** - Truenas OS went down during S.M.A.R.T. tests, reinstalled and configured again.
1. Installed new boot SSD
2. Set up users, samba, snapshots, backups, etc.
3. **Went through a full tuning pass:**
- Got Redis working by pulling the right password from `nextcloud-redis-creds`.
- Fixed persistence and eviction policies by setting env vars (`REDIS_APPENDONLY`, `REDIS_MAXMEMORY`, etc.) after discovering extra flags in args were breaking the Bitnami entrypoint.
- Once Redis confirmed `8GB allkeys-lru` with AOF enabled, I pivoted to Postgres.
- found performance limited by a `-c shared_buffers` override injected at container startup, which ignored both `postgresql.conf` and `ALTER SYSTEM`.
- Worked around this by testing direct SQL changes, editing configs, restarting the deployment, and finally confirming the cluster was still using command-line sources.
**Results:** Redis is tuned and persistent across rollouts, Postgres is partially tuned but still needs the command-line overrides stripped from the deployment spec to honor the larger memory settings.