<?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: Command Line Creating Volumes in Array Setup and Networking</title>
    <link>https://community.hpe.com/t5/array-setup-and-networking/command-line-creating-volumes/m-p/6984909#M1523</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you know of any way to add more than one initiator group from cli when creating the vol?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Aug 2015 19:03:22 GMT</pubDate>
    <dc:creator>mattlavergne26</dc:creator>
    <dc:date>2015-08-04T19:03:22Z</dc:date>
    <item>
      <title>Command Line Creating Volumes</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/command-line-creating-volumes/m-p/6984905#M1519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what are the command lines to create a volume for 10, 10GB nimble volumes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jan 2015 23:32:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/command-line-creating-volumes/m-p/6984905#M1519</guid>
      <dc:creator>vmw9</dc:creator>
      <dc:date>2015-01-17T23:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: command line creating volumes</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/command-line-creating-volumes/m-p/6984906#M1520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A basic one line script to create 10 volumes of 10GB each named vol1 – vol10 use the following:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for i in {1..10};do vol --create vol-$i --size 10240;done&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you wanted to add more volumes (e.g vol00 – vol29) use the following: &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for i in {0..2}:do for h in {0..9};do vol --create vol-$i$h --size 10240;done;done&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also add additional options such as &lt;STRONG&gt;--perfpolicy &lt;EM&gt;name&lt;/EM&gt;,--initiatorgrp &lt;EM&gt;name &lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;and&lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt; &lt;/EM&gt;--multi_initiator&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt; yes &lt;/STRONG&gt;&lt;/EM&gt; aswell if you wanted to add performance policies, initiator groups etc to the volumes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Rod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 03:07:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/command-line-creating-volumes/m-p/6984906#M1520</guid>
      <dc:creator>rwilliams72</dc:creator>
      <dc:date>2015-01-20T03:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Command Line Creating Volumes</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/command-line-creating-volumes/m-p/6984907#M1521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rod - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nice script and thank you.&amp;nbsp; How can I add different sizes for each volume?&amp;nbsp; ie: Volume1 = 10GB , Volume2 = 20GB I can't seem to get the below script to work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for x in {F..G};do for y in {5..6};do vol --create T-AlexSQL-$x --size $y0 --perfpolicy default --initiatorgrp vmfs --multi_initiator yes;done;done&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 20:37:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/command-line-creating-volumes/m-p/6984907#M1521</guid>
      <dc:creator>alexbcu125</dc:creator>
      <dc:date>2015-07-01T20:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Command Line Creating Volumes</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/command-line-creating-volumes/m-p/6984908#M1522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Enclose $y in braces, e.g. ${y}0. Bash is interpreting the 0 as part of the variable name. But you're also going to have a problem that the volume names will conflict based on how your loop is constructed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 22:42:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/command-line-creating-volumes/m-p/6984908#M1522</guid>
      <dc:creator>aherbert23</dc:creator>
      <dc:date>2015-07-01T22:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Command Line Creating Volumes</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/command-line-creating-volumes/m-p/6984909#M1523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you know of any way to add more than one initiator group from cli when creating the vol?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 19:03:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/command-line-creating-volumes/m-p/6984909#M1523</guid>
      <dc:creator>mattlavergne26</dc:creator>
      <dc:date>2015-08-04T19:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Command Line Creating Volumes</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/command-line-creating-volumes/m-p/6984910#M1524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found I can add the second initiation with this script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do vol --addacl volname --initiatorgrp igname&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but was unable to find any way to bake the second IG into the vol create command. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 19:26:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/command-line-creating-volumes/m-p/6984910#M1524</guid>
      <dc:creator>mattlavergne26</dc:creator>
      <dc:date>2015-08-04T19:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Command Line Creating Volumes</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/command-line-creating-volumes/m-p/6984911#M1525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That would be the way to do it. You can't add multiple IGs in the volume creation command.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 19:51:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/command-line-creating-volumes/m-p/6984911#M1525</guid>
      <dc:creator>aherbert23</dc:creator>
      <dc:date>2015-08-04T19:51:30Z</dc:date>
    </item>
  </channel>
</rss>

