<?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: Update-NcVol in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Update-NcVol/m-p/108195#M4451</link>
    <description>&lt;P&gt;You shouldn't have to start with a blank template...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There has to be a way to create a query from a SVM and push that info to another SVM, for example in DR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, query all the export polices assigned to volumes on your SVM and push that to your DR SVM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's your best way to do that...&lt;/P&gt;</description>
    <pubDate>Wed, 05 Aug 2015 13:58:11 GMT</pubDate>
    <dc:creator>JGPSHNTAP</dc:creator>
    <dc:date>2015-08-05T13:58:11Z</dc:date>
    <item>
      <title>Update-NcVol</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Update-NcVol/m-p/108127#M4447</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to set the &lt;SPAN&gt;VolumeSpaceAttributes.SpaceFullThresholdPercent attribute, but the syntax is odd for update-ncvol is odd. &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Can someone shed some light on the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$rVolumeName = "TACOS"
$rVserverName = "C01"
$rVolTemplate = Get-NcVol -Template
$rVolTemplate.Name = $rVolumeName
$rVolTemplate.Vserver = $rVserverName
$rVolTemplate
$rUpdateVol = Get-NcVol -Template
Initialize-NcObjectProperty $rUpdateVol VolumeSpaceAttributes
$rUpdateVol.VolumeSpaceAttributes.SpaceFullThresholdPercent = 90
$rUpdateVol
Update-NcVol -Query $rVolTemplate -Attributes $rUpdateVol&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not even sure how to grab an error message out fo the results:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;NcController : *Removed*
SuccessCount : 0
FailureCount : 1
SuccessList : {}
FailureList : {TACOS}&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Jun 2025 23:37:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Update-NcVol/m-p/108127#M4447</guid>
      <dc:creator>katwood</dc:creator>
      <dc:date>2025-06-04T23:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Update-NcVol</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Update-NcVol/m-p/108128#M4448</link>
      <description>&lt;P&gt;This is a very tricky cmdlet that I haven't had much success with working..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on building hash tables to then use the query off of.. The building objects I think is prior to PS 3&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2015 18:29:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Update-NcVol/m-p/108128#M4448</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2015-08-04T18:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Update-NcVol</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Update-NcVol/m-p/108129#M4449</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First to shed some light on the "weird syntax". Update-NcVol is a little different from say Set-NcVol in that it acts on multiple volumes at once. To use Update-NcVol, you have to privide two inputs - one query to select which volumes the update should be applied on - and one set of &amp;lt;attribute,value&amp;gt; pair - to set for the selected volumes. Both these inputs are accepted in the form of an VolumeAttributes object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To create a query, you start with getting an empty VolumeAttributes object by running "$queryObj = Get-NcVol -Template". Then you set details of this object to help narrow down the search. For example, if you want to apply an update to all volumes in a vserver, you set $queryObj.Vserver = vservername. If you want to run an update on all volumes which are 50% used you may set $queryObj.VolumeSpaceAttributes.PercentageSizeUsed = 50.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;But&lt;/EM&gt; VolumeSpaceAttributes is itself an object. So you need to Initialize-NcObjectProperty to create a new VolumeSpaceAttributes object and assign it to $queryObj.VolumeSapceAttributes. Then you can set it's properties (yes, Inception :P, so it may have a property which is an object itself, whose properties also you can set). You can combine any number of parameters - think of each field in the VolumeAttributes object as a filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To pass the &amp;lt;attributes,value&amp;gt; list you again start with an empty VolumeAttributes object "$attrbitues = Get-NcVol -Template". Then you fill up only the values you want to set. Like SpaceFullThresholdPercent in this case (again an object property needs to be initialized before you set it's properties - just like with query). Leave all the other attributes blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally you make the call as "Update-NcVol -Query $queryObj -Attributes $attributes". Once the command completes, you are presented with a list of volumes on which the update suceeded and a list of volumes on which it failed. Unfortunately, I can't find a way of getting the reason for failure out of this output. But one possibility is to enable Debug logging via "Set-NaToolkitConfiguration DEBUG" and note the outputs. That might contain the reason for failure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;- Aparajita&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2015 18:43:30 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Update-NcVol/m-p/108129#M4449</guid>
      <dc:creator>Aparajita</dc:creator>
      <dc:date>2015-08-04T18:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Update-NcVol</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Update-NcVol/m-p/108135#M4450</link>
      <description>&lt;P&gt;Thanks for the debug command, I was able to track down my issue. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We do quite a bit on the VMware PowerCLI side of the house, the Netapp stuff doesn't feel thought out and is much more difficult to work with. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To set a VM's memory reservation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Get-VM TACO | Get-VMResourceConfiguration | Set-VMResourceConfiguration -MemReservationMB 1024&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Query/Template/Update, probably looks amazing on paper, so many volumes so little time, but it sucks to use. We would rather foreach a list of volumes with cmdlets than, build a query for my volumes while applying a template. &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;We appear to be missing:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Get-NcVol TACOS | Get-NcVolumeSpaceAttributes | Set-NcVolumeSpaceAttributes -SpaceFullThresholdPercent 90&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Same thing with NcVolOption, bad:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;Set-NcVolOption TACOS -Key fractional_reserve -Value 0&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Good, but missing:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;Get-NcVol TACOS | Set-NcVolOption -fractional_reserve 0 &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2015 20:09:15 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Update-NcVol/m-p/108135#M4450</guid>
      <dc:creator>katwood</dc:creator>
      <dc:date>2015-08-04T20:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Update-NcVol</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Update-NcVol/m-p/108195#M4451</link>
      <description>&lt;P&gt;You shouldn't have to start with a blank template...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There has to be a way to create a query from a SVM and push that info to another SVM, for example in DR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, query all the export polices assigned to volumes on your SVM and push that to your DR SVM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's your best way to do that...&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2015 13:58:11 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Update-NcVol/m-p/108195#M4451</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2015-08-05T13:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Update-NcVol</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Update-NcVol/m-p/108210#M4452</link>
      <description>&lt;P&gt;Like I said, looks good on paper, sucks to work with.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2015 14:42:32 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Update-NcVol/m-p/108210#M4452</guid>
      <dc:creator>katwood</dc:creator>
      <dc:date>2015-08-05T14:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Update-NcVol</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Update-NcVol/m-p/108214#M4453</link>
      <description>&lt;P&gt;we just need to find a way to build more dynamic queries and then pass it to update-ncvol&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2015 17:03:11 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Update-NcVol/m-p/108214#M4453</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2015-08-05T17:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Update-NcVol</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Update-NcVol/m-p/108215#M4454</link>
      <description>&lt;P&gt;OR...write the cmdlets&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2015 17:29:54 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Update-NcVol/m-p/108215#M4454</guid>
      <dc:creator>katwood</dc:creator>
      <dc:date>2015-08-05T17:29:54Z</dc:date>
    </item>
  </channel>
</rss>

