<?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: powershell commandlet for vol size cli in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/powershell-commandlet-for-vol-size-cli/m-p/16828#M888</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Get-NaVol will report the size actually being used.&amp;nbsp; The *-NaVolSize cmdlets are to modify the actual size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is different though... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;apollo [0:90]≥ Invoke-NaSsh -Command 'df -g /vol/vmdata0'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Filesystem&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; total&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; used&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; avail capacity&amp;nbsp; Mounted on&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;/vol/vmdata0/&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8192GB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 135GB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6153GB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 25%&amp;nbsp; /vol/vmdata0/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;/vol/vmdata0/.snapshot&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2048GB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0GB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2047GB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0%&amp;nbsp; /vol/vmdata0/.snapshot&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;apollo [0:91]≥ Get-NaVol vmdata0 | Select-Object -ExpandProperty SizeUsed | ConvertTo-FormattedNumber&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;145G&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Glenn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Feb 2012 00:05:48 GMT</pubDate>
    <dc:creator>GlennSizemore</dc:creator>
    <dc:date>2012-02-17T00:05:48Z</dc:date>
    <item>
      <title>powershell commandlet for vol size cli</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/powershell-commandlet-for-vol-size-cli/m-p/16800#M877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the powershell cmdlets of&amp;nbsp; b&lt;STRONG&gt;&lt;A&gt;Get-NaVolSize&lt;/A&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Given the name of a flexible volume, return its current size in bytes.&lt;/P&gt;&lt;P&gt;same as the ontap cli vol size &amp;lt;volume name&amp;gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similary is&amp;nbsp; &lt;STRONG&gt;&lt;A&gt;Set-NaVolSize&amp;nbsp; &lt;/A&gt;&lt;/STRONG&gt;Given the name of a flexible volume, set the volume's size to the stated amount.&lt;/P&gt;&lt;P&gt; same as the ontap cli vol size &amp;lt;vol name&amp;gt; +/- new size ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;adai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:34:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/powershell-commandlet-for-vol-size-cli/m-p/16800#M877</guid>
      <dc:creator>adaikkap</dc:creator>
      <dc:date>2025-06-05T06:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: powershell commandlet for vol size cli</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/powershell-commandlet-for-vol-size-cli/m-p/16803#M879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From my experience, the netapp cli command "vol size" returns size in the units in which size was set.&amp;nbsp; In other words, if I enter "vol size vol1 1200g" and then enter the command "vol size vol1," I will expect a result of "1200g".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The command "df vol1" would return size in kibibytes (KiB) or 1024 bytes.&amp;nbsp; The commandled "Get-NaVolSize vol1" command returns the size in bytes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, here are the outputs for various commands in my environment for a volume named "vol1" (the volume name and NetApp names have been changed).&amp;nbsp; The volume size was set previously to 200g by using the command "vol size vol1 200g"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filer&amp;gt; vol size vol1&lt;BR /&gt;vol size: Flexible volume 'vol1' has size 200g.&lt;/P&gt;&lt;P&gt;filer&amp;gt; df vol1&lt;BR /&gt;Filesystem&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; kbytes&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; used&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; avail capacity&amp;nbsp; Mounted on&lt;BR /&gt;/vol/vol1/&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 188743680&amp;nbsp;&amp;nbsp; 80478696&amp;nbsp; 108264984&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 43%&amp;nbsp; /vol/vol1/&lt;BR /&gt;/vol/vol1/.snapshot&amp;nbsp;&amp;nbsp; 20971520&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 373032&amp;nbsp;&amp;nbsp; 20598488&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2%&amp;nbsp; /vol/vol1/.snapshot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS&amp;gt; $volSize = Get-NaVolSize vol1&lt;/P&gt;&lt;P&gt;PS&amp;gt; $volSize.VolumeSize&lt;BR /&gt;214748364800&lt;/P&gt;&lt;P&gt;PS&amp;gt; $volSize.VolumeSize / 1GB&lt;BR /&gt;200&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PowerShell allows conversion from bytes to Gibibytes (1 GiB = 1024^3 bytes) by dividing the bytes by 1GB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using Set-NaVolSize, the size is specified in the same format used by the NetApp CLI.&amp;nbsp; So, a NewSize value of "214748364800" is just as valid as "200g"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 18:20:11 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/powershell-commandlet-for-vol-size-cli/m-p/16803#M879</guid>
      <dc:creator>paleon</dc:creator>
      <dc:date>2012-02-16T18:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: powershell commandlet for vol size cli</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/powershell-commandlet-for-vol-size-cli/m-p/16808#M881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adai, the design point for the PowerShell Toolkit is to report all sizes, rates, etc. in bytes unless specifically stated otherwise.&amp;nbsp; The data formatters do reduce those to human-readable values with units, and the setter cmdlets accept both byte values as well as values with units.&amp;nbsp; The Toolkit invokes Data ONTAP APIs in most cases, rather than calling the CLI, but the Toolkit and CLI should obviously return the same results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 18:33:17 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/powershell-commandlet-for-vol-size-cli/m-p/16808#M881</guid>
      <dc:creator>cknight</dc:creator>
      <dc:date>2012-02-16T18:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: powershell commandlet for vol size cli</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/powershell-commandlet-for-vol-size-cli/m-p/16813#M883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi clinton,&lt;/P&gt;&lt;P&gt;Let me explain the situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say i create a volume snapmirror between two filers f1 and f2.In order to make sure that the VSM update always succed and to avoid constant resizing of the vsm destination volume I create the volume to the size of the aggr. &lt;/P&gt;&lt;P&gt;So if i have a source volume f1:v1 of 10g and aggr on filer f2: of size 100G. now in order to create a VSM destination volume on filer f2 i create a volume v2 of size 100G with guarntee set to none.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, once the VSM baseline is completed. On the destination filer f2. &lt;/P&gt;&lt;P&gt;df -h will give the size of f2:v2 as 10G( same as source)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where as &lt;/P&gt;&lt;P&gt;vol size v2 will give the size as 100G( the size to which it was created)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so my question now is does running &lt;STRONG&gt;Get-NaVolSize &lt;/STRONG&gt;will it reutrn 10g or 100G ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for the command that will list 100G and not 10G.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;adai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 18:50:09 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/powershell-commandlet-for-vol-size-cli/m-p/16813#M883</guid>
      <dc:creator>adaikkap</dc:creator>
      <dc:date>2012-02-16T18:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: powershell commandlet for vol size cli</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/powershell-commandlet-for-vol-size-cli/m-p/16818#M885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Get-NaVolSize will return the actual size, ignoring snapshot reserve, etc.&amp;nbsp; That's what you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 19:18:01 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/powershell-commandlet-for-vol-size-cli/m-p/16818#M885</guid>
      <dc:creator>cknight</dc:creator>
      <dc:date>2012-02-16T19:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: powershell commandlet for vol size cli</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/powershell-commandlet-for-vol-size-cli/m-p/16823#M887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Clinton and Glen...that solves my issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the volume is a snapmirror destination and the source volume is smaller, there is a difference between the "df" results and the "vol size" results.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is how the different volume sizes are reflected in the powershell commandlet's&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Get-NaVolSize dest&lt;UL&gt;&lt;LI&gt;Returns the results of "vol size dest"&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Get-NaVol dest | Format-Table TotalSize&lt;UL&gt;&lt;LI&gt;Returns the results of "df -g /vol/dest"&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;filer1&amp;gt;&lt;/STRONG&gt; df -g /vol/dest&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;/vol/dest/&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;1GB&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;0GB&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;1GB&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;0%&amp;nbsp; /vol/dest/&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;/vol/dest/.snapshot&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;0GB&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;0GB&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;0GB&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;0%&amp;nbsp; /vol/dest/.snapshot&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;STRONG&gt;filer1&amp;gt; &lt;/STRONG&gt;vol size dest&lt;/P&gt;&lt;P&gt;Warning: Volume 'dest' has fs_size_fixed option set.&amp;nbsp; The file system&lt;/P&gt;&lt;P&gt;size may differ from the volume size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See 'vol status -b' for more detail.&lt;/P&gt;&lt;P&gt;vol size: Flexible volume 'dest' has size &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;5g&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;filer1&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 23:36:13 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/powershell-commandlet-for-vol-size-cli/m-p/16823#M887</guid>
      <dc:creator>jburton</dc:creator>
      <dc:date>2012-02-16T23:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: powershell commandlet for vol size cli</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/powershell-commandlet-for-vol-size-cli/m-p/16828#M888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Get-NaVol will report the size actually being used.&amp;nbsp; The *-NaVolSize cmdlets are to modify the actual size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is different though... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;apollo [0:90]≥ Invoke-NaSsh -Command 'df -g /vol/vmdata0'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Filesystem&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; total&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; used&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; avail capacity&amp;nbsp; Mounted on&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;/vol/vmdata0/&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8192GB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 135GB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6153GB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 25%&amp;nbsp; /vol/vmdata0/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;/vol/vmdata0/.snapshot&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2048GB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0GB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2047GB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0%&amp;nbsp; /vol/vmdata0/.snapshot&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;apollo [0:91]≥ Get-NaVol vmdata0 | Select-Object -ExpandProperty SizeUsed | ConvertTo-FormattedNumber&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;145G&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Glenn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 00:05:48 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/powershell-commandlet-for-vol-size-cli/m-p/16828#M888</guid>
      <dc:creator>GlennSizemore</dc:creator>
      <dc:date>2012-02-17T00:05:48Z</dc:date>
    </item>
  </channel>
</rss>

