2025-05-08 15:36:35 -04:00
|
|
|
# Postmortem: Genesis I/O Realignment
|
|
|
|
|
2025-05-08 15:44:43 -04:00
|
|
|
**Date:** May 8, 2025
|
|
|
|
**Author:** Doc
|
|
|
|
**Systems Involved:** minioraid5, shredder, chatwithus.live, zcluster.technodrome1/2, thevault
|
2025-05-08 15:36:35 -04:00
|
|
|
**Scope:** Local-first mirroring, permission normalization, MinIO transition
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
## 🎯 Objective
|
|
|
|
|
|
|
|
To realign the Genesis file flow architecture by:
|
|
|
|
|
2025-05-08 15:44:43 -04:00
|
|
|
* Making local block storage the **primary source** of truth for AzuraCast and Genesis buckets
|
|
|
|
* Transitioning FTP uploads to target local storage instead of MinIO directly
|
|
|
|
* Establishing **two-way mirroring** between local paths and MinIO buckets
|
|
|
|
* Correcting inherited permission issues across `/mnt/raid5` using `find + chmod`
|
|
|
|
* Preserving MinIO buckets as **backup mirrors**, not primary data stores
|
2025-05-08 15:36:35 -04:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
## 🔧 Work Performed
|
|
|
|
|
|
|
|
### ✅ Infrastructure changes:
|
2025-05-08 15:44:43 -04:00
|
|
|
|
|
|
|
* Deployed block storage volume to Linode Mastodon instance
|
|
|
|
* Mirrored MinIO buckets (genesisassets, genesislibrary, azuracast) to local paths
|
|
|
|
* Configured cron-based `mc mirror` jobs:
|
|
|
|
|
|
|
|
* Local ➜ MinIO: every 5 minutes with `--overwrite --remove`
|
|
|
|
* MinIO ➜ Local: nightly pull, no `--remove`
|
|
|
|
* Prepared 5TB local drive for AzuraCast asset mirroring (pending full sync)
|
2025-05-08 15:36:35 -04:00
|
|
|
|
|
|
|
### ✅ FTP Pipeline Adjustments:
|
2025-05-08 15:44:43 -04:00
|
|
|
|
|
|
|
* Users now upload to `/mnt/spl/ftp/uploads` (local)
|
|
|
|
* Permissions set so only admins access full `/mnt/spl/ftp`
|
|
|
|
* FTP directory structure created for SPL automation
|
2025-05-08 15:36:35 -04:00
|
|
|
|
|
|
|
### ✅ System Tuning:
|
2025-05-08 15:44:43 -04:00
|
|
|
|
|
|
|
* Set `vm.swappiness=10` on all nodes
|
|
|
|
* Apache disabled where not in use
|
|
|
|
* Daily health checks via `pull_health_everywhere.sh`
|
|
|
|
* Krang Telegram alerts deployed for cleanup and system state
|
2025-05-08 15:36:35 -04:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
## 🧠 Observations
|
|
|
|
|
2025-05-08 15:44:43 -04:00
|
|
|
* **High load** on `minioraid5` during `mc mirror` and `chmod` overlap
|
|
|
|
|
|
|
|
* Load \~6.5 due to concurrent I/O pressure
|
|
|
|
* `chmod` stuck in `D` state (I/O wait) while `mc` dominated disk queues
|
|
|
|
* Resolved after `mc` completion — `chmod` resumed and completed
|
|
|
|
|
|
|
|
* **MinIO buckets were temporarily inaccessible** due to permissions accidentally inherited by FTP group
|
|
|
|
|
|
|
|
* Resolved by recursively resetting permissions on `/mnt/raid5`
|
2025-05-08 15:36:35 -04:00
|
|
|
|
2025-05-08 15:44:43 -04:00
|
|
|
* **Krang telemetry** verified:
|
2025-05-08 15:36:35 -04:00
|
|
|
|
2025-05-08 15:44:43 -04:00
|
|
|
* Mastodon swap usage rising under asset load
|
|
|
|
* All nodes had Apache disabled or dormant
|
|
|
|
* Health alerts triggered on high swap or load
|
2025-05-08 15:36:35 -04:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
## ✅ Outcome
|
|
|
|
|
2025-05-08 15:44:43 -04:00
|
|
|
* Full Genesis and AzuraCast data now reside locally with resilient S3 mirrors
|
|
|
|
* Mastodon running on block storage, no longer dependent on MinIO latency
|
|
|
|
* FTP integration with SPL directory trees complete
|
|
|
|
* Cleanup script successfully deployed across all nodes via Krang
|
|
|
|
* Daily health reports operational with alerts for high swap/load
|
2025-05-08 15:36:35 -04:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
## 🔁 Recommendations
|
|
|
|
|
2025-05-08 15:44:43 -04:00
|
|
|
* Proceed with AzuraCast mirror only after:
|
|
|
|
|
|
|
|
* Mastodon asset storage transition is confirmed stable
|
|
|
|
* All `/mnt/raid5` permission fixes are complete
|
|
|
|
|
|
|
|
* Consider adding snapshot-based ZFS backups for `/mnt/raid5`
|
|
|
|
|
|
|
|
* Build `verify_mirror.sh` to detect drift between MinIO and local storage
|
|
|
|
|
|
|
|
* Auto-trigger `chmod` only after `mc mirror` finishes
|
|
|
|
|
|
|
|
* Monitor long-running background jobs with Krang watchdogs
|
|
|
|
|
|
|
|
* Finalize and launch AzuraCast 5TB mirror sync
|
2025-05-08 15:36:35 -04:00
|
|
|
|
|
|
|
---
|
|
|
|
|
2025-05-08 15:44:43 -04:00
|
|
|
**Signed,**
|
|
|
|
Doc
|
2025-05-08 15:36:35 -04:00
|
|
|
Genesis Hosting Technologies
|