nilFM

zfs cheatsheet

Condensed reference for ZFS commands.

# import a pool
zpool import SOMEPOOL

# import all pools
zpool import -a

# check pools on a device if not visible via regular import
zpool import -d /dev/WHATEVER

# import a pool that is for whatever reason invisible
# you can pass -f if it claims to be ONLINE
zpool import -d /dev/WHATEVER [ -f ] THEPOOL

# create an encrypted, compressed zpool
# try also -O keyformat=keyfile -O keylocation=WHEREVER
zpool create -f \
-o feature@encryption=enabled -O compresson=on -O encryption=on \
-O keyfomrat=passphrase -O keylocation=prompt \
-m MOUNTPOINT NAME DEVICE