meta data for this page
  •  

ZFS best Practices

echo "options zfs zfs_arc_max=4294967296" | sudo tee -a /etc/modprobe.d/zfs.conf
echo "options zfs l2arc_noprefetch=0"  | sudo tee -a /etc/modprobe.d/zfs.conf
echo "vfs.zfs.l2arc_write_max=134217728"  | sudo tee -a /etc/modprobe.d/zfs.conf
echo "vfs.zfs.l2arc_write_boost=268435456"  | sudo tee -a /etc/modprobe.d/zfs.conf
echo "vm.swappiness = 10" | sudo tee -a /etc/sysctl.conf

zfs set secondarycache=metadata tank
zfs set compression=lz4 tank
zfs set sync=disabled tank
zfs set atime=off tank
zfs set redundant_metadata=most tank
zfs set xattr=sa tank
zfs set compression=off tank/media
zfs set compression=off tank/photos


zfs set compression=lz4 ssd
zfs set sync=disabled ssd
zfs set atime=off ssd
zfs set redundant_metadata=most ssd
zfs set xattr=sa ssd
zfs set dedup=skein ssd