<?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 a Directory size containing many child objects on CIFS ntfs style volume in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/Get-a-Directory-size-containing-many-child-objects-on-CIFS-ntfs-style-volume/m-p/156291#M35256</link>
    <description>&lt;P&gt;Him&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to this&lt;/P&gt;
&lt;P&gt;&lt;A href="https://kb.netapp.com/Advice_and_Troubleshooting%2FData_Storage_Software%2FONTAP_OS%2FWhy_is_Windows_Explorer_reporting_incorrect_values_in_properties_pane%3F" target="_blank"&gt;https://kb.netapp.com/Advice_and_Troubleshooting%2FData_Storage_Software%2FONTAP_OS%2FWhy_is_Windows_Explorer_reporting_incorrect_values_in_properties_pane%3F&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The cause is &amp;gt;250 chars UNC paths. You can maybe map the folders you want to look at as a drive, or you can use 3rd party tools&amp;nbsp; or PS script. I'm not aware of a ONTAP PS CMDLT, API call or non-high-privilaged command that can give that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See some 3rd party tools recommended here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.netapp.com/t5/Network-Storage-Protocols-Discussions/Cifs-size-of-a-folder-including-all-subfolders-and-files/td-p/43300" target="_blank"&gt;https://community.netapp.com/t5/Network-Storage-Protocols-Discussions/Cifs-size-of-a-folder-including-all-subfolders-and-files/td-p/43300&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 May 2020 12:03:33 GMT</pubDate>
    <dc:creator>GidonMarcus</dc:creator>
    <dc:date>2020-05-18T12:03:33Z</dc:date>
    <item>
      <title>Get a Directory size containing many child objects on CIFS ntfs style volume</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Get-a-Directory-size-containing-many-child-objects-on-CIFS-ntfs-style-volume/m-p/156275#M35253</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Our companies clusters run Ontap 9.6sp4 with many CIFS SVMs and contain a few hundreds of ntfs volumes that are quite large 5 to 10 TB and even more with lots of Directories, Sub-Directories and files.&lt;/P&gt;
&lt;P&gt;As mentionned, some volumes contain lots of child directories with lots of files. When CIFS administrators right click a folder in the windows explorer.exe to have look at the current Directory size, the count and sizing stops at some point ...&amp;nbsp; and returns incorrect values f.ex. 13GB with 2300 files etc ... in reality there are 1.6TB with a few 100 of thousands of files in that directory: &lt;BR /&gt;volume\Directory\SubDirectory\SubDirectory\1000 of files\SubDirectory\SubDirectory\SubDirectory\1000 of files&lt;BR /&gt;volume\Directory\SubDirectory\SubDirectory\1000 of files&lt;BR /&gt;volume\Directory1\SubDirectory\SubDirectory\SubDirectory\1000 of files&lt;BR /&gt;etc ....&lt;BR /&gt;total 1.6TB&lt;BR /&gt;windows explorer (right click properties on folder) +/- 15GB&lt;/P&gt;
&lt;P&gt;I guess there is probably some kind a CIFS threshold (client or SVM side)&amp;nbsp; that avoids excessive CIFS ressource consumption for windows clients.&lt;/P&gt;
&lt;P&gt;The only tool that we were able to find is the Netapp xcp.exe tool. The tool return the correct size, but we would really appreciate to now if there are other possibilities.&lt;BR /&gt;f.ex:&lt;BR /&gt;xcp scan -stats volume\Directory&lt;BR /&gt;Gives the correct size 1.6TB&lt;/P&gt;
&lt;P&gt;The problem doesn't happen on volumes containing a limited amount of child directory objects, f.ex. we are able to right click a folder with 2 level of subdirectories which contains almost 10TB of video files.&lt;BR /&gt;volume\Directory1\empty&lt;BR /&gt;volume\Directory2\30-40000 movie files&lt;BR /&gt;volume\Directory3\30-40000 audio files&lt;BR /&gt;total 9tb (is also showed correctly in windows explorer.exe)&lt;/P&gt;
&lt;P&gt;Has anyone an idea what could cause this type of issues in Windows or Netapp?&lt;/P&gt;
&lt;P&gt;How can you get the correct directory size of any random "directory" (not a volume size!!!) in Ontap (ideally in the "Netapp Powershell toolkit"?&lt;/P&gt;
&lt;P&gt;Thank you very much for any kind of help!&lt;BR /&gt;Regards,&lt;BR /&gt;Didier&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 11:09:49 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Get-a-Directory-size-containing-many-child-objects-on-CIFS-ntfs-style-volume/m-p/156275#M35253</guid>
      <dc:creator>DidierW</dc:creator>
      <dc:date>2025-06-04T11:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Get a Directory size containing many child objects on CIFS ntfs style volume</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Get-a-Directory-size-containing-many-child-objects-on-CIFS-ntfs-style-volume/m-p/156291#M35256</link>
      <description>&lt;P&gt;Him&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to this&lt;/P&gt;
&lt;P&gt;&lt;A href="https://kb.netapp.com/Advice_and_Troubleshooting%2FData_Storage_Software%2FONTAP_OS%2FWhy_is_Windows_Explorer_reporting_incorrect_values_in_properties_pane%3F" target="_blank"&gt;https://kb.netapp.com/Advice_and_Troubleshooting%2FData_Storage_Software%2FONTAP_OS%2FWhy_is_Windows_Explorer_reporting_incorrect_values_in_properties_pane%3F&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The cause is &amp;gt;250 chars UNC paths. You can maybe map the folders you want to look at as a drive, or you can use 3rd party tools&amp;nbsp; or PS script. I'm not aware of a ONTAP PS CMDLT, API call or non-high-privilaged command that can give that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See some 3rd party tools recommended here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.netapp.com/t5/Network-Storage-Protocols-Discussions/Cifs-size-of-a-folder-including-all-subfolders-and-files/td-p/43300" target="_blank"&gt;https://community.netapp.com/t5/Network-Storage-Protocols-Discussions/Cifs-size-of-a-folder-including-all-subfolders-and-files/td-p/43300&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 12:03:33 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Get-a-Directory-size-containing-many-child-objects-on-CIFS-ntfs-style-volume/m-p/156291#M35256</guid>
      <dc:creator>GidonMarcus</dc:creator>
      <dc:date>2020-05-18T12:03:33Z</dc:date>
    </item>
  </channel>
</rss>

