# /etc/systemd/system/mnt-media.mount # # Installed by `scripts/media-view.sh install` — the repo copy is the source of # truth (fleet law: never edit host state by hand). # # An OverlayFS merge that shows the media library as one tree while splitting # where its bytes live: lowerdir is the RAID6 array (the source of truth, never # written), upperdir is a directory on the NVMe that receives every write. The # two media servers bind the result at /mnt/media, so Jellyfin's Kodi-format # sidecars and artwork are SSD bytes — which is what makes them fast to browse # and what keeps Plex's NFO agent off the spinners — while the media itself stays # on the array untouched. # # RequiresMountsFor is load-bearing: without the array mounted, lowerdir is an # empty directory and the view would present an empty library as truth. [Unit] Description=SSD-backed overlay view of the media library (array + NVMe metadata layer) RequiresMountsFor=/mnt/entropy [Mount] What=overlay Where=/mnt/media Type=overlay Options=lowerdir=/mnt/entropy,upperdir=/var/lib/media-meta/upper,workdir=/var/lib/media-meta/work [Install] WantedBy=local-fs.target