<?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: Differences between aggr show_space and Get-NaAggrSpace in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Differences-between-aggr-show-space-and-Get-NaAggrSpace/m-p/38809#M1757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;Also is there any way to change the output format of Get-NaAggrSpace from bytes to kb,gb or tb?&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This one is easy.&amp;nbsp; PowerShell has built-in constants for storage sizes, so try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 10pt; color: #0000ff;"&gt;PS C:\&amp;gt; (Get-NaSnapshotReserve -Aggregate aggr0).Size / 1gb&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 10pt; color: #0000ff;"&gt;1.19512939453125&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;You can also look at the Toolkit's data formatters (&lt;/SPAN&gt;Da&lt;/SPAN&gt;taONTAP.Format.ps1xml) to see how we use a Toolkit cmdlet to format sizes with units:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff;"&gt;PS C:\&amp;gt; $s = (Get-NaSnapshotReserve -Aggregate aggr0).Size&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff;"&gt;PS C:\&amp;gt; ConvertTo-FormattedNumber $s DataSize&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff;"&gt;1 GB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;Get-NaAggrSpace doesn't show space used by WAFL or Snapshot reserve in the aggregate.&lt;P&gt;I can get the aggregate snapshot reserve in powershell by using the Get-NaSnapshotReserve cmdlet&lt;/P&gt;&lt;P&gt;I cant see a cmdlet that gives me the WAFL reserve amount - from calculations on aggregate on 1 of our filers it looks like it is 10% of the aggregate.&lt;/P&gt;&lt;P&gt;Before I code a 10% size adjustment to into my script - Is the WAFL reserve always 10% of the aggregate size regardless of the version of Data OnTap?&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;WAFL reserve space seems to be around 10% but you can calculate it.&amp;nbsp; Aggregate space calcs are a little more involved and require data points from multiple APIs to get everything you seek.&amp;nbsp; From the API docs:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff;"&gt;(Get-NaDisk).PhysicalSpace&lt;/SPAN&gt; --&amp;gt; Use to get total aggregate size (multiply by number of data disks in aggregate (don't count parity disks))&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff;"&gt;(Get-NaAggrSpace).SizeNominal&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; --&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;Total space contained in the aggregate minus the WAFL reserve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Given these definitions, you should be able to determine the WAFL reserve.&amp;nbsp; And given a few other things you should be able to calculate everything:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff;"&gt;(Get-NaSnapshotReserve -Aggregate).Size&lt;/SPAN&gt; --&amp;gt; Aggregate snap reserve&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff;"&gt;(Get-NaAggr).SizeTotal &lt;/SPAN&gt;--&amp;gt; Aggregate total usable size in bytes, not including WAFL reserve and aggregate snapshot reserve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would prefer everything be in one structure, but I would hesitate to do that in the Toolkit as it would entail multiple API calls for each aggregate and would slow the process even when those values aren't of interest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jun 2011 20:34:35 GMT</pubDate>
    <dc:creator>cknight</dc:creator>
    <dc:date>2011-06-23T20:34:35Z</dc:date>
    <item>
      <title>Differences between aggr show_space and Get-NaAggrSpace</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Differences-between-aggr-show-space-and-Get-NaAggrSpace/m-p/38805#M1756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi are there any plans to add more details to the Get-NaAggrSpace cmdlet so that it is more in line with the information given by using aggr show_space command from the DataOnTap Console?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get-NaAggrSpace doesn't show space used by WAFL or Snapshot reserve in the aggregate.&lt;/P&gt;&lt;P&gt;I can get the aggregate snapshot reserve in powershell by using the Get-NaSnapshotReserve cmdlet&lt;/P&gt;&lt;P&gt;I cant see a cmdlet that gives me the WAFL reserve amount - from calculations on aggregate on 1 of our filers it looks like it is 10% of the aggregate.&lt;/P&gt;&lt;P&gt;Before I code a 10% size adjustment to into my script - Is the WAFL reserve always 10% of the aggregate size regardless of the version of Data OnTap?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also is there any way to change the output format of Get-NaAggrSpace from bytes to kb,gb or tb?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry if my questions are noobish - I only started using powershell this week and am new to scripting in general.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Neil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:52:16 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Differences-between-aggr-show-space-and-Get-NaAggrSpace/m-p/38805#M1756</guid>
      <dc:creator>neilwilson</dc:creator>
      <dc:date>2025-06-05T06:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Differences between aggr show_space and Get-NaAggrSpace</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Differences-between-aggr-show-space-and-Get-NaAggrSpace/m-p/38809#M1757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;Also is there any way to change the output format of Get-NaAggrSpace from bytes to kb,gb or tb?&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This one is easy.&amp;nbsp; PowerShell has built-in constants for storage sizes, so try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 10pt; color: #0000ff;"&gt;PS C:\&amp;gt; (Get-NaSnapshotReserve -Aggregate aggr0).Size / 1gb&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 10pt; color: #0000ff;"&gt;1.19512939453125&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;You can also look at the Toolkit's data formatters (&lt;/SPAN&gt;Da&lt;/SPAN&gt;taONTAP.Format.ps1xml) to see how we use a Toolkit cmdlet to format sizes with units:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff;"&gt;PS C:\&amp;gt; $s = (Get-NaSnapshotReserve -Aggregate aggr0).Size&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff;"&gt;PS C:\&amp;gt; ConvertTo-FormattedNumber $s DataSize&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff;"&gt;1 GB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;Get-NaAggrSpace doesn't show space used by WAFL or Snapshot reserve in the aggregate.&lt;P&gt;I can get the aggregate snapshot reserve in powershell by using the Get-NaSnapshotReserve cmdlet&lt;/P&gt;&lt;P&gt;I cant see a cmdlet that gives me the WAFL reserve amount - from calculations on aggregate on 1 of our filers it looks like it is 10% of the aggregate.&lt;/P&gt;&lt;P&gt;Before I code a 10% size adjustment to into my script - Is the WAFL reserve always 10% of the aggregate size regardless of the version of Data OnTap?&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;WAFL reserve space seems to be around 10% but you can calculate it.&amp;nbsp; Aggregate space calcs are a little more involved and require data points from multiple APIs to get everything you seek.&amp;nbsp; From the API docs:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff;"&gt;(Get-NaDisk).PhysicalSpace&lt;/SPAN&gt; --&amp;gt; Use to get total aggregate size (multiply by number of data disks in aggregate (don't count parity disks))&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff;"&gt;(Get-NaAggrSpace).SizeNominal&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; --&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;Total space contained in the aggregate minus the WAFL reserve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Given these definitions, you should be able to determine the WAFL reserve.&amp;nbsp; And given a few other things you should be able to calculate everything:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff;"&gt;(Get-NaSnapshotReserve -Aggregate).Size&lt;/SPAN&gt; --&amp;gt; Aggregate snap reserve&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff;"&gt;(Get-NaAggr).SizeTotal &lt;/SPAN&gt;--&amp;gt; Aggregate total usable size in bytes, not including WAFL reserve and aggregate snapshot reserve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would prefer everything be in one structure, but I would hesitate to do that in the Toolkit as it would entail multiple API calls for each aggregate and would slow the process even when those values aren't of interest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2011 20:34:35 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Differences-between-aggr-show-space-and-Get-NaAggrSpace/m-p/38809#M1757</guid>
      <dc:creator>cknight</dc:creator>
      <dc:date>2011-06-23T20:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Differences between aggr show_space and Get-NaAggrSpace</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Differences-between-aggr-show-space-and-Get-NaAggrSpace/m-p/38816#M1758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you do an aggr show_space you get "Total space", "WAFL reserve", "Snap reserve", and "Usable space" (among other things).&amp;nbsp; The (Get-NaAggrSpace).SizeNominal value is equal to the "Usable space" value plus the "Snap reserve" value.&amp;nbsp; To verify, you can try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;PS&amp;gt; (Get-NaSnapshotReserve -Aggregate aggr0).Size + (Get-NaAggr aggr0).SizeTotal&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;3199338442752&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;PS&amp;gt; (Get-NaAggrSpace aggr0).SizeNominal&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;3199338442752&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;PS&amp;gt; Invoke-NaSsh aggr show_space&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Aggregate 'aggr0'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Total space&amp;nbsp;&amp;nbsp;&amp;nbsp; WAFL reserve&amp;nbsp;&amp;nbsp;&amp;nbsp; Snap reserve&amp;nbsp;&amp;nbsp;&amp;nbsp; Usable space&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BSR NVLOG&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A-SIS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Smtape&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; 3471504384KB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 347150436KB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 156217696KB&amp;nbsp;&amp;nbsp;&amp;nbsp; 2968136252KB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0KB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1209288KB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0KB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;PS C:\Users\Administrator&amp;gt; 156217696KB+2968136252KB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;3199338442752&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;P&gt;-Steven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 18:35:22 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Differences-between-aggr-show-space-and-Get-NaAggrSpace/m-p/38816#M1758</guid>
      <dc:creator>beam</dc:creator>
      <dc:date>2011-06-24T18:35:22Z</dc:date>
    </item>
  </channel>
</rss>

