Skip to content

Instantly share code, notes, and snippets.

@camielverdult
Last active February 14, 2024 09:21
Show Gist options
  • Save camielverdult/2b71c3e67e5d85082b96c0a4b6a51b38 to your computer and use it in GitHub Desktop.
Save camielverdult/2b71c3e67e5d85082b96c0a4b6a51b38 to your computer and use it in GitHub Desktop.
ZFS SSD Pool
# Run all of this as root
zpool create -f flash mirror /dev/sdb /dev/sdc
zfs create flash/docker
zfs set compression=on flash/docker
zfs set sync=standard flash/docker
zfs create flash/postgres
zfs set recordsize=8K flash/postgres
zfs set compression=lz4 flash/postgres
zfs set primarycache=all flash/postgres
zfs set atime=off flash/postgres
zfs create flash/minecraft
zfs set recordsize=16K flash/minecraft
zfs set compression=lz4 flash/minecraft
zfs set primarycache=all flash/minecraft
zfs set atime=off flash/minecraft
echo "options zfs zfs_arc_max=1073741824" >> /etc/modprobe.d/zfs.conf
reboot now
chown camiel:camiel /flash/docker /flash/postgres /flash/minecraft
chmod 755 /flash/docker /flash/postgres /flash/minecraft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment