Skip to content

Instantly share code, notes, and snippets.

@robinsmidsrod
Created May 27, 2013 15:28
Show Gist options
  • Save robinsmidsrod/5657647 to your computer and use it in GitHub Desktop.
Save robinsmidsrod/5657647 to your computer and use it in GitHub Desktop.
List unused ZFS disks in a Solaris-based OS
comm -3 <(comm -3 <(iostat -en | tail -n +3 | perl -lane 'print $F[-1]'|sort) <(zpool list | tail -n +2 | perl -lane 'print $F[0]'|sort)) <(zpool list -v | egrep '^\s{4}' | perl -lane '$F[0] =~ s/s0$//; print $F[0]' | sort)
@djeraseit
Copy link

You know there is an open source clone of pastebin that is great for this kind of stuff. Nevertheless, I appreciate the tips and excellent scripts!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment