<?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 Getting the value for the amount of space in a volume being used by files? in Data Protection</title>
    <link>https://community.netapp.com/t5/Data-Protection/Getting-the-value-for-the-amount-of-space-in-a-volume-being-used-by-files/m-p/2655#M8247</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't remember the details of the arithmetic involved in those fields but I suspect you're right. The problem is, once your host file system deletes a file, ONTAP has no idea those blocks are unused. As a result, they're still allocated as data blocks on disk and show up in the accounting that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're attaching from Windows systems, I thought SnapDrive for Windows had a way to tell ONTAP which file system blocks were unused so they could be freed on the storage system (this went by the name of "hole punching"). I don't know if SnapDrive for Unix has a similar feature. Once you hole punch the LUN, dfKBytesData should accurately reflect the used space in the host file system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, you might want to try configuring the file SRM agent to walk the host side file system to give a host side view of how much space is used. You should be able to construct a report correlating what FSRM reports against what ONTAP reports. I personally have never tried this so I can't help you much more than that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Sep 2011 21:23:12 GMT</pubDate>
    <dc:creator>smoot</dc:creator>
    <dc:date>2011-09-13T21:23:12Z</dc:date>
    <item>
      <title>Getting the value for the amount of space in a volume being used by files?</title>
      <link>https://community.netapp.com/t5/Data-Protection/Getting-the-value-for-the-amount-of-space-in-a-volume-being-used-by-files/m-p/2650#M8246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to get a report that breaks out the following space usage values for each volume: Allocated to LUNs, Reserved for Snapshots, Unallocated Space, LUN Space Used, Snapshot Space Used, &amp;amp; Snapshot Count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tricky value seemed to be getting LUN Space Used (how much space in the volume is being used by data and/or files). In most reports that have any kind of "Space Used" value, it refers to how much space in the volume has been allocated to LUNs, I'm trying to get a report that also gives an indication of how full those LUNs are. Then I thought I had found everything I needed by scheduling the Volume Space Breakout report (in Operations Manager) to send an xml file that included all fields, I was able to map the fields like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="3" cellspacing="0" class="jiveNoBorder" style="width: 500px; border-width: 0px; border-color: #000000; border-style: solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;My Report&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;xml field&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Volume Name&lt;/TD&gt;&lt;TD&gt;objName&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Total Size&lt;/TD&gt;&lt;TD&gt;dfKBytesTotal + volSnapshotReserveSpaceTotal&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Allocated to LUNs&lt;/TD&gt;&lt;TD&gt;dfKBytesUsed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Reserved for Snapshots&lt;/TD&gt;&lt;TD&gt;volSnapshotReserveSpaceTotal&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Unallocated Space&lt;/TD&gt;&lt;TD&gt;dfKBytesAvail&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;LUN Space Used&lt;/TD&gt;&lt;TD&gt;dfKBytesData&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Snapshot Space Used&lt;/TD&gt;&lt;TD&gt;volSnapshotReserveSpaceUsed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Snapshot Count&lt;/TD&gt;&lt;TD&gt;snapshotCount&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This initially seemed to work, but then I noticed that some of the LUN Space Used values were no longer accurate after a day or two, they had a value higher than they should've been (e.g. the report would show "4 GB" when all the files actually added up to 3 GB). It seems the dfKBytesUsed field in the xml report only increases in value, never decreases, so my report ends up showing a "high water mark" for each volume instead of a current value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a bug in the Volume Space Breakout report? Or am I misunderstanding what the dfKBytesData field actually refers to? If so, is there a field in a different report that will get me what I need?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:45:58 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/Getting-the-value-for-the-amount-of-space-in-a-volume-being-used-by-files/m-p/2650#M8246</guid>
      <dc:creator>gunthermontez</dc:creator>
      <dc:date>2025-06-05T06:45:58Z</dc:date>
    </item>
    <item>
      <title>Getting the value for the amount of space in a volume being used by files?</title>
      <link>https://community.netapp.com/t5/Data-Protection/Getting-the-value-for-the-amount-of-space-in-a-volume-being-used-by-files/m-p/2655#M8247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't remember the details of the arithmetic involved in those fields but I suspect you're right. The problem is, once your host file system deletes a file, ONTAP has no idea those blocks are unused. As a result, they're still allocated as data blocks on disk and show up in the accounting that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're attaching from Windows systems, I thought SnapDrive for Windows had a way to tell ONTAP which file system blocks were unused so they could be freed on the storage system (this went by the name of "hole punching"). I don't know if SnapDrive for Unix has a similar feature. Once you hole punch the LUN, dfKBytesData should accurately reflect the used space in the host file system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, you might want to try configuring the file SRM agent to walk the host side file system to give a host side view of how much space is used. You should be able to construct a report correlating what FSRM reports against what ONTAP reports. I personally have never tried this so I can't help you much more than that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 21:23:12 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/Getting-the-value-for-the-amount-of-space-in-a-volume-being-used-by-files/m-p/2655#M8247</guid>
      <dc:creator>smoot</dc:creator>
      <dc:date>2011-09-13T21:23:12Z</dc:date>
    </item>
    <item>
      <title>Getting the value for the amount of space in a volume being used by files?</title>
      <link>https://community.netapp.com/t5/Data-Protection/Getting-the-value-for-the-amount-of-space-in-a-volume-being-used-by-files/m-p/2664#M8248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, your explanation made complete sense. In SnapDrive for Windows I was able to run the Space Reclaimer on a LUN and sure enough the dfKBytesData value in the report dropped back down. I'm not sure if there's a way to have the Space Reclaimer run automatically at a specified time (or if that's even a good idea), but at least I understand now what's going on. And the SRM agent idea is interesting, I might dig into that further.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 15:40:51 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/Getting-the-value-for-the-amount-of-space-in-a-volume-being-used-by-files/m-p/2664#M8248</guid>
      <dc:creator>gunthermontez</dc:creator>
      <dc:date>2011-09-14T15:40:51Z</dc:date>
    </item>
    <item>
      <title>Getting the value for the amount of space in a volume being used by files?</title>
      <link>https://community.netapp.com/t5/Data-Protection/Getting-the-value-for-the-amount-of-space-in-a-volume-being-used-by-files/m-p/2668#M8249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad it helped. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if running a space reclaimation on a regular basis is a good idea either but I can't see how it would hurt. The simplest method is to use the Windows scheduler and "sdcli".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 15:52:13 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/Getting-the-value-for-the-amount-of-space-in-a-volume-being-used-by-files/m-p/2668#M8249</guid>
      <dc:creator>smoot</dc:creator>
      <dc:date>2011-09-14T15:52:13Z</dc:date>
    </item>
  </channel>
</rss>

