Created
May 27, 2013 15:28
-
-
Save robinsmidsrod/5657647 to your computer and use it in GitHub Desktop.
List unused ZFS disks in a Solaris-based OS
This file contains hidden or 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
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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!