Skip to content

Instantly share code, notes, and snippets.

@sjau
Created March 21, 2020 11:20
Show Gist options
  • Save sjau/5ca19aea0c1bd59fdf74f370bb46dabb to your computer and use it in GitHub Desktop.
Save sjau/5ca19aea0c1bd59fdf74f370bb46dabb to your computer and use it in GitHub Desktop.
Becoming a ZFS Ninja Part 1 - Terminal Commands
08:37 60 Second Primer
------------------------
09:27
pool list
zpool destroy pool
clear
format
^Q
zpool create javaone c2t0d0 c2t1d0 c2t2d0
zpool status
df -h
cd /javaone
ls
touch file
zfs list
zfs create javaone/home
df -h
27:11 File VDevs: Play Time
-----------------------------
27:19
zpool status
format
^Q
zpool destroy javaone
cd /
zpool destroy javaone
clear
format
^Q
zpool create scotty raidz c2t0d0 c2t1d0 c2t2d0 mirror c2t3d0 c2t4d0
zpool create -f scotty raidz c2t0d0 c2t1d0 c2t2d0 mirror c2t3d0 c2t4d0
zpool status
cd /vdev
ls
ls -alh
mkfile 128m vdisk002
mkfile 128m vdisk003
zpool destroy scotty
clear
ls -alh
zpool create -f scotty raidz /vdev/vdisk001 /vdev/vdisk002 /vdev/vdisk003
zpool status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment