<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: WFA - Creating multiple volumes in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Creating-multiple-volumes/m-p/119160#M21267</link>
    <description>&lt;P&gt;Yeah, I'm on 4.0. The problem is if I change "name if no volume matches" value from&amp;nbsp;$VolumeName+Index1, it fails to increment again. There's an MVEL for&amp;nbsp;last_volume.name but I don't know where to use it. I should also mention this is my first WFA workflow and I'm learning as I go.&lt;/P&gt;</description>
    <pubDate>Tue, 10 May 2016 20:27:19 GMT</pubDate>
    <dc:creator>JOHNGARRETT</dc:creator>
    <dc:date>2016-05-10T20:27:19Z</dc:date>
    <item>
      <title>WFA - Creating multiple volumes</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Creating-multiple-volumes/m-p/119129#M21261</link>
      <description>&lt;P&gt;OK, new to WFA here. What's the secret to creating multiple volumes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what I'm trying to do: Create, say, 5 volumes all starting with "test1" and then use incremental naming to give them a "2", "3", "4" etc suffix.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what happens in the preview:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="preview.PNG" style="width: 667px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/5310i50756E5C60453625/image-size/large?v=v2&amp;amp;px=999" role="button" title="preview.PNG" alt="preview.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see in the details that the name&amp;nbsp;increments successfuly only once:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="details.PNG" style="width: 434px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/5311iADF41595AAC22B98/image-size/large?v=v2&amp;amp;px=999" role="button" title="details.PNG" alt="details.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are my inputs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="userinputs.PNG" style="width: 439px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/5312iF40BBB95696EA621/image-size/large?v=v2&amp;amp;px=999" role="button" title="userinputs.PNG" alt="userinputs.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the parameters for the 'Create Volume' step. As you can see they're straight out of the box using the Space Efficient Settings for NFS Datastores template, with the exception of the name parameter, which I'll show later:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="createvolume.PNG" style="width: 831px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/5313i6A49627BBB4F7485/image-size/large?v=v2&amp;amp;px=999" role="button" title="createvolume.PNG" alt="createvolume.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the name parameter settings:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="incrementalname.PNG" style="width: 557px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/5314i9762C2ABECE0493E/image-size/large?v=v2&amp;amp;px=999" role="button" title="incrementalname.PNG" alt="incrementalname.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the search criteria:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="searchcriteria.PNG" style="width: 869px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/5315i5FE668030B751EE7/image-size/large?v=v2&amp;amp;px=999" role="button" title="searchcriteria.PNG" alt="searchcriteria.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the final piece of the puzzle, row repetition:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="rowrepetition.PNG" style="width: 600px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/5316iACCB66C571B05223/image-size/large?v=v2&amp;amp;px=999" role="button" title="rowrepetition.PNG" alt="rowrepetition.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So you can see I'm not trying to reinvent the wheel here, just create a whole lot of volumes. What am I missing?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 21:03:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Creating-multiple-volumes/m-p/119129#M21261</guid>
      <dc:creator>JOHNGARRETT</dc:creator>
      <dc:date>2025-06-04T21:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: WFA - Creating multiple volumes</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Creating-multiple-volumes/m-p/119130#M21262</link>
      <description>&lt;P&gt;I'm taking a stab at this without validating. I don't do the increments very often &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the issue is that your $VolumeName variable needs to be without the number. &amp;nbsp;IE just 'test' and&amp;nbsp;&lt;STRONG&gt;not&lt;/STRONG&gt; 'test1'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, in the 'incremental naming wizard' you need to specify it as '$VolumeName+'1'. Notice the description above the field entry how it states 'Enter a value for Name if&amp;nbsp;&lt;U&gt;&lt;STRONG&gt;no&lt;/STRONG&gt;&lt;/U&gt; Volume matches..' This implies that this is your initiating volume.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, the other issue you have is that your filter is looking for volume&amp;nbsp;&lt;STRONG&gt;name&lt;/STRONG&gt; that&amp;nbsp;&lt;STRONG&gt;equals&lt;/STRONG&gt; the&amp;nbsp;&lt;STRONG&gt;VolumeName&lt;/STRONG&gt; variable. &amp;nbsp;Now your selection needs to be something other than&amp;nbsp;&lt;STRONG&gt;equals&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think once you do that it should increment just fine.&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 01:38:39 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Creating-multiple-volumes/m-p/119130#M21262</guid>
      <dc:creator>coreywanless</dc:creator>
      <dc:date>2016-05-10T01:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: WFA - Creating multiple volumes</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Creating-multiple-volumes/m-p/119153#M21265</link>
      <description>&lt;P&gt;Thanks for the reply,&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/6653"&gt;@coreywanless﻿&lt;/a&gt;. Actually I tried just "test" as the $volumename and it gives me the same results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.netapp.com/t5/image/serverpage/image-id/5319i7F2739581ABF53FD/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="preview2.PNG" title="preview2.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As for changing the filter&amp;nbsp;operator to be something other than equals, it grabs other volumes with the name test (there are a few) and discards the user defined $VolumeName altogether, which is no good.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Turns out you were right about my $VolumeName being part of the problem. I got it to work using&amp;nbsp;the index value of the iteration, in this case it looks like $volumeName+Index1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However what I'd really like is to add a "-" and then zero pad for single digit numbers. This can be done easy enough with .NET via&amp;nbsp;"{0:D2}" -f $a where $a is the iteration number. This would leave me with test-01, test-02, test-03, etc.&amp;nbsp;I have&amp;nbsp;zero experience with MVEL though. Any ideas on how to accomplish this in MVEL?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another issue is that if I came back later and wanted to create a test4 (assuming zero padding won't work out), just using the iteration Index1 value, it would probably fail because that value would be 1, not 4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 17:45:51 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Creating-multiple-volumes/m-p/119153#M21265</guid>
      <dc:creator>JOHNGARRETT</dc:creator>
      <dc:date>2016-05-10T17:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: WFA - Creating multiple volumes</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Creating-multiple-volumes/m-p/119154#M21266</link>
      <description>&lt;P&gt;If you have other volumes that start with 'test' or whatever you are defining as your prefix, it will discover those other volumes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to make sure whatever you are defining as your search criteria, only gives you the volumes you want to compare against.&lt;/P&gt;&lt;P&gt;IE:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The correct results of your query:&lt;/EM&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;test1&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;test2&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;test3&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;etc&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;EM&gt;The results you don't want to see in you search:&lt;/EM&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;testmyapp01&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;test1&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;testconqueringtheworld1&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;test2&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;It looks like you might be running on 4.0. I believe this search feature is new. 3.x only had the filters that are listed at the bottom of that window. &amp;nbsp; (I have not upgraded yet) &amp;nbsp;My suggestions on the search part, would be to include additional parameters to lookup to narrow down the results. IE array/vfiler/cluster/svm.&amp;nbsp;Use the Test button to your advantage on that screen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can easily add the dash in the volume, &amp;nbsp;you don't need to know how to build a MVEL function. You just need to use "($VolumeName + '-')" instead of just $VolumeName in your search criteria, and&amp;nbsp;&lt;SPAN&gt;"($VolumeName + '-01')" for the 'Enter a value for name if no Volume...' field.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 18:29:26 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Creating-multiple-volumes/m-p/119154#M21266</guid>
      <dc:creator>coreywanless</dc:creator>
      <dc:date>2016-05-10T18:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: WFA - Creating multiple volumes</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Creating-multiple-volumes/m-p/119160#M21267</link>
      <description>&lt;P&gt;Yeah, I'm on 4.0. The problem is if I change "name if no volume matches" value from&amp;nbsp;$VolumeName+Index1, it fails to increment again. There's an MVEL for&amp;nbsp;last_volume.name but I don't know where to use it. I should also mention this is my first WFA workflow and I'm learning as I go.&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 20:27:19 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Creating-multiple-volumes/m-p/119160#M21267</guid>
      <dc:creator>JOHNGARRETT</dc:creator>
      <dc:date>2016-05-10T20:27:19Z</dc:date>
    </item>
  </channel>
</rss>

