Curious Case of Maintaining Sufficient Free Space with ZFS
Sometimes trivial problems turn out to be more interesting than expected.

TLDR: ZFS free-space reporting is a lagging indicator.
Background I use Proxmox VM server backed by a ZFS array of hard drives for various personal infrastructure. I also have security cameras that upload motion-triggered videos to my server (via FTP!).
Problem Description I would like to use 90% of my available space for most-recent security videos.
Recipe:
Create a dedicated ZFS volume Setup ZFS quota Run a cronjob to free space faster than it gets consumed by video uploads.
[Read More]