imageshare (194.1.0.11) root disk relief — Tier 1
Date: 2026-11-18 16:10–16:12 (+07) Related: GitHub #7 (disk 98%→100%), epic #16 security/reliability audit Severity: P0 — data-loss risk active at execution time Status: ✅ Tier 1 + Tier 2 complete (mitigated). Tier 3 pending approval.
Summary
หัวข้อที่มีชื่อว่า “Summary”Issue #7 progressed from 98% (2026-07-10 audit) to 100% full / 164MB free —
DiskSpaceCritical has fired continuously since 2026-05-31 (~6 months unacknowledged).
Primary risk: MariaDB write failure → crash → refuses to restart (crash recovery
needs space). Hosts Chevereto (imagesharing.ovbhospital.com, Medical Technology
Dept photo archive), Moodle LMS, Guacamole 1.4.0, Portainer. No clinical/IoT
blast radius — VM is independent of the HA/water/AC paths.
Root cause of growth
หัวข้อที่มีชื่อว่า “Root cause of growth”/var/log/journal= 1.8G — journald running with no cap (defaults only)- One dangling image (
ghcr.io/chevereto/chevereto:<none>, 947MB, 3y old) - apt cache 88M. Inodes fine (35%) — byte-level exhaustion.
What was done (Tier 1, approved)
หัวข้อที่มีชื่อว่า “What was done (Tier 1, approved)”Read-only safety first, then cleanup. No container restarts.
- DB dumps streamed off-host (passwords never left container env):
moodle_db(161MB raw),chevereto(2.4MB),guacamole_db(0.8MB) — allgzip -t+-- Dump completedverified, SHA256 recorded. journalctl --vacuum-size=200M→ +1.7Gdocker image prune -f(dangling only) → +946.9MBapt-get clean→ +88MB
Tier 2 (2026-11-18 16:24 +07, approved “ลุย”)
หัวข้อที่มีชื่อว่า “Tier 2 (2026-11-18 16:24 +07, approved “ลุย”)”Safety gate re-verified both targets unreferenced by any container (incl. stopped), then:
docker rmi nmtan/chevereto:latest(old pre-ghcr chevereto) — +514MBdocker rmi mariadb:latest(unused; running DB isbitnami/mariadb) — +404MB
Post: 3.9GB free (79%); 9/9 containers Up with original uptimes; image inventory now exactly the 9 in-use images — zero reclaimable left in Docker.
| before | after Tier 1 | after Tier 2 | |
|---|---|---|---|
/ avail |
164MB (100%) | 3.0GB (84%) | 3.9GB (79%) |
| containers Up | 9 | 9 (original uptimes intact) | 9 (original uptimes intact) |
| web checks | — | Chevereto/Guacamole/Moodle HTTP 200; node-exporter serving | unchanged |
Backups (off-host): /Volumes/SmileX-Storage/backup/obh-iot/imageshare-194.1.0.11/2026-11-18/
(3 dumps + SHA256SUMS + README.md with restore procedure).
Rollback
หัวข้อที่มีชื่อว่า “Rollback”Not required — steps are non-destructive to service data; dumps are a safety net.
Remaining (recommendations)
หัวข้อที่มีชื่อว่า “Remaining (recommendations)”- Tier 3 (prevent regrowth):
SystemMaxUse=300Min journald.conf; dockerdaemon.jsonlog rotation (max-size=10m,max-file=3— needs rolling restarts, do when disk is healthy) - Photo archive backup: Chevereto images live in volumes (~922MB total), DB holds metadata only — DB dumps do not cover the photos. Tar volumes off-host separately.
- Long term: move data volumes off the 19G root LV; Ubuntu 23.10 is EOL, uptime 1,021 days — schedule a maintenance window with the OS upgrade plan (#10/#11).