<?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: Creating new volume via PowerShell in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Creating-new-volume-via-PowerShell/m-p/140269#M5743</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/5571"&gt;@steven_doan&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are a number of examples for creating and managing volumes &lt;A href="https://practical-admin.com/blog/netapp-powershell-toolkit-101-managing-volumes/" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andrew&lt;/P&gt;</description>
    <pubDate>Wed, 16 May 2018 14:20:41 GMT</pubDate>
    <dc:creator>asulliva</dc:creator>
    <dc:date>2018-05-16T14:20:41Z</dc:date>
    <item>
      <title>Creating new volume via PowerShell</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Creating-new-volume-via-PowerShell/m-p/140268#M5742</link>
      <description>&lt;P&gt;I am trying to create new volumes via the NetApp PowerShell Toolkit and I am running into some issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I just input 'New-NcVol' and follow the prompts,it returns an error that the cmdlet must be directed at a data vserver&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I run the line as 'New-NcVol - vservercontext&amp;nbsp;svm01' and follow the prompts it returns another error:&lt;BR /&gt;&lt;BR /&gt;New-NcVol : entry doesn't exist&lt;BR /&gt;At line:1 char:1&lt;BR /&gt;+ New-NcVol -vservercontext svm01&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : InvalidOperation: (192.168.1.10:NcController) [New-NcVol], EOBJECTNOTFOUND&lt;BR /&gt;+ FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.Volume.NewNcVol&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone have the correct cmdlet structure to allow for all the inputs for creation of a new volume in a single line?&amp;nbsp; Ideally I'd like to be define certain values (e.g vserver, aggregate, etc) and allow for input on the name, size and junction path, but at least getting it to work successfully is what I am shooting for.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:42:33 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Creating-new-volume-via-PowerShell/m-p/140268#M5742</guid>
      <dc:creator>steven_doan</dc:creator>
      <dc:date>2025-06-04T13:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Creating new volume via PowerShell</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Creating-new-volume-via-PowerShell/m-p/140269#M5743</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/5571"&gt;@steven_doan&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are a number of examples for creating and managing volumes &lt;A href="https://practical-admin.com/blog/netapp-powershell-toolkit-101-managing-volumes/" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 14:20:41 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Creating-new-volume-via-PowerShell/m-p/140269#M5743</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2018-05-16T14:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating new volume via PowerShell</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Creating-new-volume-via-PowerShell/m-p/140270#M5744</link>
      <description>&lt;P&gt;Thanks, found what I needed right away!&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 14:22:55 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Creating-new-volume-via-PowerShell/m-p/140270#M5744</guid>
      <dc:creator>steven_doan</dc:creator>
      <dc:date>2018-05-16T14:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Creating new volume via PowerShell</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Creating-new-volume-via-PowerShell/m-p/140288#M5746</link>
      <description>&lt;P&gt;So I'm back with a follow up since I could not find the answer on the site you specified.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to create a quota on a new qtree, but I am struggling with what I am missing here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;add-ncquota -vservercontext svm01 -disklimit 1mb -type tree -volume vol_test -qtree qtree_test&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Returns a prompt that looks like an array and will keep accepting input until I cancel out of it and then spitting out an error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;add-ncquota -vservercontext svm01 -disklimit 1mb -type tree -volume vol_test -qtree qtree_test&lt;BR /&gt;cmdlet Add-NcQuota at command pipeline position 1&lt;BR /&gt;Supply values for the following parameters:&lt;BR /&gt;(Type !? for Help.)&lt;BR /&gt;Target[0]: qtree&lt;BR /&gt;Target[1]: test&lt;BR /&gt;Target[2]: antyhing&lt;BR /&gt;Target[3]: help&lt;BR /&gt;Target[4]: !?&lt;BR /&gt;The quota target of the type specified.&lt;BR /&gt;Target[4]:&lt;BR /&gt;add-ncquota : Invalid target qtree,test,antyhing,help specified for tree quota rule. Target for explicit tree quota rule for volume vol_test must be in "/vol/vol_test/&amp;lt;qtree-name&amp;gt;" format.&lt;BR /&gt;At line:1 char:1&lt;BR /&gt;+ add-ncquota -vservercontext svm01 -disklimit 1mb -type tree -volume vol_ ...&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : InvalidOperation: (192.168.1.10:NcController) [Add-NcQuota], EQUOTAINVALID&lt;BR /&gt;+ FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.Quota.AddNcQuota&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've tried sereval different iterations but all so far are throwing errors&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cmdlet Add-NcQuota at command pipeline position 1&lt;BR /&gt;Supply values for the following parameters:&lt;BR /&gt;(Type !? for Help.)&lt;BR /&gt;Target[0]: /vol_test&lt;BR /&gt;Target[1]: /qtree_test&lt;BR /&gt;Target[2]:&lt;BR /&gt;add-ncquota : Invalid target /vol_test,/qtree_test specified for tree quota rule. Target for explicit tree quota rule for volume vol_test must be in "/vol/vol_test/&amp;lt;qtree-name&amp;gt;" format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has anyone created/managed quotas via the PowerShell Toollkit and can provide some more guidance?&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 18:16:40 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Creating-new-volume-via-PowerShell/m-p/140288#M5746</guid>
      <dc:creator>steven_doan</dc:creator>
      <dc:date>2018-05-16T18:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Creating new volume via PowerShell</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Creating-new-volume-via-PowerShell/m-p/140294#M5748</link>
      <description>&lt;P&gt;I usually use the pipeline when doing quotas...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Get-NcVserver $svmName | Add-NcQuota -Path "/vol/$($volName)/$(qtreeName)" -DiskLimit $limit&lt;/PRE&gt;
&lt;P&gt;This will create a qtree quota for the FlexVol.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 21:09:22 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Creating-new-volume-via-PowerShell/m-p/140294#M5748</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2018-05-16T21:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Creating new volume via PowerShell</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Creating-new-volume-via-PowerShell/m-p/140322#M5751</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/8479"&gt;@asulliva&lt;/a&gt;&amp;nbsp; Thanks again it worked.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think my confusion was that I was missing /vol because of confusion on the namespace/junction point.&lt;/P&gt;
&lt;P&gt;vol_test was the top junction point so I was leaving /vol off, once I included that it worked.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 14:38:28 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Creating-new-volume-via-PowerShell/m-p/140322#M5751</guid>
      <dc:creator>steven_doan</dc:creator>
      <dc:date>2018-05-17T14:38:28Z</dc:date>
    </item>
  </channel>
</rss>

