Posts Tagged ‘igroup create’

Creating iGroups on the DR filer

January 22nd, 2009

This is another script I wrote to aid in site failover. Basically the snapmirror script works great to bring volumes online, but if everything is in VMware (and as such iSCSI from within the VM), you want these to be automatically re-mapped, and save you some leg work!

Well, this script would run from a server sat in the DR location that has access to the primary filers. I’ve tried to make this script pretty dynamic, so you can put in as many primary filers as you want (create a ‘primary_filers.txt’ file with 1 filer name per line). However it only fails over to one filer on the DR side. This would be easily remedied, but again, just showing a concept of how easy this sort of thing is to achieve.

The difficulty here is that ‘igroup show’ outputs ‘FCP’ and ‘iSCSI’, where as ‘igroup create’ requests you use ‘f’ and ‘i’, so a bit more scripting in the middle to solve this.

This script creates a script (and if run as a cron, simply overwrites it each time) that can be run to recreate all the iGroups on the DR filer. Really handy if you have a few LUNs that need mapping. Even doing this manually for 10 is a pain. Most of my customers have at least 50+

Command Line , , ,

This site is not affiliated or sponsored in anyway by NetApp or any other company mentioned within.