<?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: Get-NaLun reports SizeUsed &amp;gt; Size in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NaLun-reports-SizeUsed-gt-Size/m-p/54502#M2583</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What the toolkit is returning should be the same as the "Occupied Size" if you run "lun show -v" on the controller.&amp;nbsp; But they are both going to be very different than what the host OS sees in many cases.&amp;nbsp;&amp;nbsp; The storage controller can only keep track of blocks that have been written because the OS won't (usually) free unused blocks.&amp;nbsp; If you write a 1GB file in Windows and then delete it, ONTAP doesn't know that those blocks are no longer in use until the OS tries to rewrite over that data.&amp;nbsp; So if you have a lot of changing data on a LUN, it will probably be completely "occupied".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This thread has a little more information:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.netapp.com/message/30639#30639" target="_blank"&gt;http://communities.netapp.com/message/30639#30639&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;By the way, you can use the Get-WmiObject Cmdlet to ask the Windows hosts how much free space they have on each disk:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;PS C:\&amp;gt; Get-WmiObject -ComputerName WSFCRRE2 Win32_LogicalDisk&lt;BR /&gt;DeviceID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : C:&lt;BR /&gt;DriveType&amp;nbsp;&amp;nbsp;&amp;nbsp; : 3&lt;BR /&gt;ProviderName :&lt;BR /&gt;FreeSpace&amp;nbsp;&amp;nbsp;&amp;nbsp; : 1021333504&lt;BR /&gt;Size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 13849587712&lt;BR /&gt;VolumeName&amp;nbsp;&amp;nbsp; :&lt;BR /&gt;&lt;BR /&gt;DeviceID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : E:&lt;BR /&gt;DriveType&amp;nbsp;&amp;nbsp;&amp;nbsp; : 3&lt;BR /&gt;ProviderName :&lt;BR /&gt;FreeSpace&amp;nbsp;&amp;nbsp;&amp;nbsp; : 5512118272&lt;BR /&gt;Size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 5581565952&lt;BR /&gt;VolumeName&amp;nbsp;&amp;nbsp; : New Volume&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Those won't match exactly with LUNs because you can have multiple volumes per LUN or even one dynamic volume spread across multiple LUNs, but it might be the info you are looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Mar 2011 13:45:59 GMT</pubDate>
    <dc:creator>timothyn</dc:creator>
    <dc:date>2011-03-11T13:45:59Z</dc:date>
    <item>
      <title>Get-NaLun reports SizeUsed &gt; Size</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NaLun-reports-SizeUsed-gt-Size/m-p/54496#M2582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We're using the toolkit (1.3.0.130) to get LUN usage stats from our iSCSI-mapped LUNs and are seeing some strange behaviour in the Get-NaLun cmdlet, namely that the SizeUsed property returns a higher value than the Size property (as below). You log onto the OS (Windows 2003 R2 x64 running SnapDrive 6.0.2 or higher in all instances) and get more or less the same Capacity reported as Size (44054560768 vs 44054599680) but what the OS sees as used (13928558592) is nothing like what GetNaLun is putting out (44134756352).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can't narrow this down to a specific ONTAP rev as it appears to be happening across a mix (7.3.2 &amp;amp; 7.3.5.1) or LUN multiprotocol types (windows &amp;amp; windows_gpt). We have noted that it&amp;nbsp; &lt;EM&gt;appears &lt;/EM&gt;to happen on our 6070 controllers as opposed to our 3020s but that could be an irrelevancy as we have relatively few (and low-end) iSCSI LUNs running on the 3020s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm less a dedicated storage engineer than a sysadmin who scripts a bit so if I've missed a something totally fundamental to the way ONTAP calculates these blocks, please feel free to give me the WAFL-for-dummies &lt;SPAN __jive_emoticon_name="blush" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon" src="https://community.netapp.com/4.0.8/images/emoticons/blush.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS C:\&amp;gt; Get-NaLun /vol/HRDB/hrdb.lun | fl&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;BackingSnapshot&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :&lt;BR /&gt;BlockSize&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;&amp;nbsp;&amp;nbsp; : 512&lt;BR /&gt;CloneBackingSnapshot&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :&lt;BR /&gt;DeviceId&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; :&lt;BR /&gt;IsSpaceReservationEnabled : True&lt;BR /&gt;Mapped&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : True&lt;BR /&gt;MultiprotocolType&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : windows&lt;BR /&gt;Online&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : True&lt;BR /&gt;Path&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : /vol/HRDB/hrdb.lun&lt;BR /&gt;ReadOnly&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; : False&lt;BR /&gt;SerialNumber&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; : HnUAT4JS77Ww&lt;BR /&gt;ShareState&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;&amp;nbsp; : none&lt;BR /&gt;Size&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 44054599680&lt;BR /&gt;SizeUsed&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 44134756352&lt;BR /&gt;Staging&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : False&lt;BR /&gt;Uuid&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 4cb34210-4d01-11dd-aaa6-00a09805bb72&lt;BR /&gt;DeviceIdSpecified&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : False&lt;BR /&gt;Comment&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:58:38 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NaLun-reports-SizeUsed-gt-Size/m-p/54496#M2582</guid>
      <dc:creator>tom_maher</dc:creator>
      <dc:date>2025-06-05T06:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get-NaLun reports SizeUsed &gt; Size</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NaLun-reports-SizeUsed-gt-Size/m-p/54502#M2583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What the toolkit is returning should be the same as the "Occupied Size" if you run "lun show -v" on the controller.&amp;nbsp; But they are both going to be very different than what the host OS sees in many cases.&amp;nbsp;&amp;nbsp; The storage controller can only keep track of blocks that have been written because the OS won't (usually) free unused blocks.&amp;nbsp; If you write a 1GB file in Windows and then delete it, ONTAP doesn't know that those blocks are no longer in use until the OS tries to rewrite over that data.&amp;nbsp; So if you have a lot of changing data on a LUN, it will probably be completely "occupied".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This thread has a little more information:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.netapp.com/message/30639#30639" target="_blank"&gt;http://communities.netapp.com/message/30639#30639&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;By the way, you can use the Get-WmiObject Cmdlet to ask the Windows hosts how much free space they have on each disk:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;PS C:\&amp;gt; Get-WmiObject -ComputerName WSFCRRE2 Win32_LogicalDisk&lt;BR /&gt;DeviceID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : C:&lt;BR /&gt;DriveType&amp;nbsp;&amp;nbsp;&amp;nbsp; : 3&lt;BR /&gt;ProviderName :&lt;BR /&gt;FreeSpace&amp;nbsp;&amp;nbsp;&amp;nbsp; : 1021333504&lt;BR /&gt;Size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 13849587712&lt;BR /&gt;VolumeName&amp;nbsp;&amp;nbsp; :&lt;BR /&gt;&lt;BR /&gt;DeviceID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : E:&lt;BR /&gt;DriveType&amp;nbsp;&amp;nbsp;&amp;nbsp; : 3&lt;BR /&gt;ProviderName :&lt;BR /&gt;FreeSpace&amp;nbsp;&amp;nbsp;&amp;nbsp; : 5512118272&lt;BR /&gt;Size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 5581565952&lt;BR /&gt;VolumeName&amp;nbsp;&amp;nbsp; : New Volume&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Those won't match exactly with LUNs because you can have multiple volumes per LUN or even one dynamic volume spread across multiple LUNs, but it might be the info you are looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 13:45:59 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NaLun-reports-SizeUsed-gt-Size/m-p/54502#M2583</guid>
      <dc:creator>timothyn</dc:creator>
      <dc:date>2011-03-11T13:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Get-NaLun reports SizeUsed &gt; Size</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NaLun-reports-SizeUsed-gt-Size/m-p/54513#M2584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Eric - that makes perfect sense - we'll go with what the client OS sees.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Mar 2011 11:56:46 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NaLun-reports-SizeUsed-gt-Size/m-p/54513#M2584</guid>
      <dc:creator>tom_maher</dc:creator>
      <dc:date>2011-03-13T11:56:46Z</dc:date>
    </item>
  </channel>
</rss>

