Skip to content

Instantly share code, notes, and snippets.

@rwenz3l
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rwenz3l/23359f4d10f66b9c0315 to your computer and use it in GitHub Desktop.
Save rwenz3l/23359f4d10f66b9c0315 to your computer and use it in GitHub Desktop.
# Single Disk Setup !
# OpenZFS on OSX Version 1.30
diskutil list
echo "Disk = disk#"
read -p "Disk = " disk
diskutil unmountDisk /dev/${disk}
sudo diskutil partitiondisk /dev/${disk} GPTFormat ZFS %noformat% 100%
echo "--------------------"
echo "Name your zpool!"
read -p "Name = " name
sudo zpool create -f -o ashift=12 \
-O compression=lz4 \
-O casesensitivity=mixed \
-O atime=off \
-O normalization=formD \
${name} /dev/${disk}s2
zfs set compression=on ${name}
zfs set mountpoint=/Volumes/${name}
sudo chown -R root:staff /Volumes/${name}
sudo chmod -R 775 /Volumes/${name}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment