Skip to content

Instantly share code, notes, and snippets.

@joaocc
Last active November 27, 2016 03:48
Show Gist options
  • Save joaocc/287669ca4bfeb04e80d6606533433787 to your computer and use it in GitHub Desktop.
Save joaocc/287669ca4bfeb04e80d6606533433787 to your computer and use it in GitHub Desktop.
mac osx zfs ops
#!/usr/bin/env bash
set -e
set -x
MY_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
pushd "${MY_DIR}"
MY_SDXC=/var/run/disk/by-serial/SD_Card_Reader-000000000000
diskutil info $MY_SDXC
MY_POOL_NAME=My-ZFS-Disk
echo \
sudo zpool create \
-f \
-n \
-o feature@async_destroy=enabled \
-o feature@empty_bpobj=enabled \
-o feature@lz4_compress=enabled \
-o ashift=12 \
-O compression=lz4 \
-O casesensitivity=insensitive \
-O atime=off \
-O normalization=formD \
$MY_POOL_NAME \
$MY_SDXC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment