Tuesday, 22 January 2013

Exalogic Virtual Tea Break Snippets - Some Simple ZFS Scripts

Whilst working on an Exalogic Upgrade I was working with the ZFS storage and having executed the same commands a number of times I decided to script them. This short blog entry, although it will grow over time, contains the scripts I find useful. For each of the scripts I will simply provide a brief description and the source of the script and occasionally add the output assuming it is not too long. Where I need to pass the Hostname / IP Address of the storage heads the scripts will use the flags:

  • -p <Primary - first storage head>
  • -s <Secondary - Second storage head>
I will be using a combinations of simple bash scripts and the more function ZFS scripting language.