Skip to content

Instantly share code, notes, and snippets.

@flbuddymooreiv
Last active February 8, 2018 08:32
Show Gist options
  • Save flbuddymooreiv/dadb370dc38998fafddd to your computer and use it in GitHub Desktop.
Save flbuddymooreiv/dadb370dc38998fafddd to your computer and use it in GitHub Desktop.
ZFS Basics
fallocate -l 2G /path/to/file.img
zpool create poolname /path/to/file.img
zpool set autoexpand=on poolname
truncate --size=+1G /path/to/file.img
zpool online -e poolname /path/to/file.img

zfs create poolname/filesystemname
zfs set mountpoint=/path/to/mountpoint poolname/filesystemname
zfs set compression=on poolname/filesystemname
zfs set quota=1.5G poolname/filesystemname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment