Skip to content

Instantly share code, notes, and snippets.

@aleksasiriski
Last active January 6, 2026 00:27
Show Gist options
  • Select an option

  • Save aleksasiriski/eb04bba373a0d808bbc0bd172aa8dcbe to your computer and use it in GitHub Desktop.

Select an option

Save aleksasiriski/eb04bba373a0d808bbc0bd172aa8dcbe to your computer and use it in GitHub Desktop.

ZFS on Proxmox - Creating a proper dataset for media storage

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/media

Notes:

  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment