zfs create stor/media
zfs set recordsize=1M stor/media
zfs set atime=off stor/media
zfs set compression=zstd stor/media
zfs set quota=4T stor/media
zfs set primarycache=all stor/media
zfs set secondarycache=all stor/media
zfs set logbias=throughput stor/mediaNotes:
- Set the quota to fit your needs
- If you don't have L2ARC SSH cache, skip the secondarycache line
IMPORTANT:
- Setting primarycache=metadata and secondarycache=all may seem like the best option, but it actually ends up meaning the same as setting both to just metadata. So please leave / set it to all on both. For explanation read: openzfs/zfs#15400