Last active
August 29, 2015 14:13
-
-
Save rwenz3l/23359f4d10f66b9c0315 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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