<?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: huge disprepancy in du output in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/huge-disprepancy-in-du-output/m-p/130892#M28486</link>
    <description>&lt;P&gt;If you have user quota enabled, on your home directory volume&lt;/P&gt;&lt;P&gt;You might have to use the "quota-report" API call&amp;nbsp;to get the user quota, thats the most efficient way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the "du" or "df" linux commands won't give you accurate info in case of user quota.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Send me a direct message if you need more help for&amp;nbsp;creating an perl/python script to query user quota info from filer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;robin.&lt;/P&gt;</description>
    <pubDate>Tue, 09 May 2017 04:14:48 GMT</pubDate>
    <dc:creator>robinpeter</dc:creator>
    <dc:date>2017-05-09T04:14:48Z</dc:date>
    <item>
      <title>huge disprepancy in du output</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/huge-disprepancy-in-du-output/m-p/130890#M28485</link>
      <description>&lt;P&gt;ONTAP 9.1 RC1&lt;/P&gt;&lt;P&gt;CentOS 6.3&lt;/P&gt;&lt;P&gt;NFS v3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As an exmaple, I have filer:/vol/vol0/home/[username] hosting user's homes. The size of vol0 is a few TB and it also contains other directories other than home but individual user home has quota set to 10GB. On Linux I have automount set up so that each user's home mounted like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/home/[username]&amp;nbsp; -&amp;gt;&amp;nbsp; filer:/vol/vol0/home/[username]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I am in a user's home directory (ie, /home/[username]) and do 'du .', it will take some time and the returned size is huge. By huge I mean it's over 1TB. If I cd to the same user's home via /net/filer/vol/vol0/home/[username]/ and du, it's fast and returns a few GB. If I am back in /home/[username]/ and do 'du . --exclude *snapshot*' then it returns a few GB which matches the results from doing du via /net/...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand du is not an accurate way to see actual disk usage but it can't be this off. And I don't think this only applies specifically to user home directories.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's going on here? Why du in /home/[userhome] seems to take the snapshots into account? Is it expected behavior? I don't think it's like this in 7 mode at least and possibly in the earlier version of cDOT?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goal here is to have a way to allow users to see his/her space consumption without admin's involvement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 15:06:32 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/huge-disprepancy-in-du-output/m-p/130890#M28485</guid>
      <dc:creator>ACHOU_SIMG</dc:creator>
      <dc:date>2025-06-04T15:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: huge disprepancy in du output</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/huge-disprepancy-in-du-output/m-p/130892#M28486</link>
      <description>&lt;P&gt;If you have user quota enabled, on your home directory volume&lt;/P&gt;&lt;P&gt;You might have to use the "quota-report" API call&amp;nbsp;to get the user quota, thats the most efficient way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the "du" or "df" linux commands won't give you accurate info in case of user quota.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Send me a direct message if you need more help for&amp;nbsp;creating an perl/python script to query user quota info from filer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;robin.&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 04:14:48 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/huge-disprepancy-in-du-output/m-p/130892#M28486</guid>
      <dc:creator>robinpeter</dc:creator>
      <dc:date>2017-05-09T04:14:48Z</dc:date>
    </item>
  </channel>
</rss>

