2015-07-13 01:52 PM
Im looking to create a workflow that will create a LUN under an existing volume, create an iGroup and then assign initiators to the igroup. My question is this, can I have fields in WFA be made for user input? Specifically the LUN name and the iGroup name, the initators themselves will need to be manually input too. Obviously its not really "automated" when you have user inputs, but we have specifics in what we name LUN's and iGroups so a little user intervention is needed.
Solved! SEE THE SOLUTION
2015-07-13 02:13 PM
You can have an input for iGroup and Lun names, or you can create the names from an input variable. For example, if you want to use a server name as your iGroup name and part of the lun name you can have an input varibale named $server and use this in the iGroup object definition in the name field and use it in the lun object creation as well. You may not need to input the Initiators WWNN's, as these may be already available to the WFA cache. So you should be able to use a multi-select query to allow the user to select them from a table.
2015-07-13 02:30 PM
Just type in your variable name $Server in the name field for both the "Create LUN" and "Create iGroup" commands. then when you go back to your "User Input", the variable will show up and you just need to make sure it is a "string" variable. If you are good at MREL you can force the format of the user input as well.
2015-07-13 02:41 PM
Looks like that will do the trick and Im not sure I need to force anything at this point yet
One more question though, When Im maping a LUN, I want it to use the LUN name of in the previous step. Is there a way to add that, or should I just do a user input there as well?
2015-07-13 03:24 PM - edited 2015-07-13 03:29 PM
So Im having the create lun workflow create a lun based on a volume that gets automatically searched. I have it search for "find volume by name in a give storage virtual machine" I put the cluster name, volume name and SVM and get this error when previewing my Workflow.
Failed to evaluate resource selector. Illegal expression: seatssan01
At command 'Create LUN', tab 'Lun', variable 'new_lun', property 'volume'
Im using the finder itself and typing in the same fields and its not coming back with any info. Am I missing something?
2015-07-13 03:52 PM
Is seatssan01 the name of the volume, or is it the name of the variable that contains the volume name? I would use the query option in the user input to "select" the volume name instead of habving someone input it. That way you know the volume exists.