<?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: Discrepancy is disk usage in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/discrepancy-is-disk-usage/m-p/2464977#M654239</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the space is not released yet. This can happen when you try to remove active files.&lt;BR /&gt;A reboot will clean this up or if you can find the process which was using the files you might be lucky by killing the process that it will release the space.&lt;BR /&gt;&lt;BR /&gt;This might be tricky and I would recommedn the usage of the shareware program lsof for this.&lt;BR /&gt;&lt;BR /&gt;But in anycase a reboot will help you,&lt;BR /&gt;&lt;BR /&gt;Steffi jones</description>
    <pubDate>Tue, 21 Nov 2000 06:27:20 GMT</pubDate>
    <dc:creator>Steffi Jones_1</dc:creator>
    <dc:date>2000-11-21T06:27:20Z</dc:date>
    <item>
      <title>Discrepancy is disk usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/discrepancy-is-disk-usage/m-p/2464971#M654233</link>
      <description>Hi&lt;BR /&gt;  When I do du -ks /opt it gives 2153590&lt;BR /&gt;  When I do df -k /opt its gives&lt;BR /&gt;                                    3223552 allocated&lt;BR /&gt;                                     0           free&lt;BR /&gt;                                     3223552 used&lt;BR /&gt;                                     100% allocation used.&lt;BR /&gt; So on a 3GB file systems though du say only 2GB is used df say 3GB is used. Why is this diescrepancy.&lt;BR /&gt;  Actually I have deleted some files of total 1 GB a little while ago. Has this caused the problem.&lt;BR /&gt;Please help&lt;BR /&gt;Thanks in advance&lt;BR /&gt;Praveen</description>
      <pubDate>Thu, 16 Nov 2000 08:13:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/discrepancy-is-disk-usage/m-p/2464971#M654233</guid>
      <dc:creator>Praveen Bezawada</dc:creator>
      <dc:date>2000-11-16T08:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Discrepancy is disk usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/discrepancy-is-disk-usage/m-p/2464972#M654234</link>
      <description>Hi&lt;BR /&gt;Drop to a single user status and try:-&lt;BR /&gt;fuser -u /dev/VG??/opt &lt;BR /&gt;and look to see if any areas are locked.&lt;BR /&gt;&lt;BR /&gt;See also man fuser.&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Thu, 16 Nov 2000 08:29:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/discrepancy-is-disk-usage/m-p/2464972#M654234</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2000-11-16T08:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Discrepancy is disk usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/discrepancy-is-disk-usage/m-p/2464973#M654235</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Discrepancies between 'du' and 'df' will happen if the directory isn't a mount point or if there are mount points below it.&lt;BR /&gt;&lt;BR /&gt;With a standard installation, /opt should be a separate filesystem, so, as far as there are no filesystems mounted below /opt, 'du' and 'df' should report the same figures.&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Nov 2000 08:30:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/discrepancy-is-disk-usage/m-p/2464973#M654235</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2000-11-16T08:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Discrepancy is disk usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/discrepancy-is-disk-usage/m-p/2464974#M654236</link>
      <description>think you have additional mount points in /opt (NFS or lvols) so that du walks thru different filesystems.&lt;BR /&gt;Use&lt;BR /&gt;&lt;BR /&gt;du -sxk /opt&lt;BR /&gt;&lt;BR /&gt;this will not go to any other mount point within /opt and the result should be the same as df -k /opt</description>
      <pubDate>Thu, 16 Nov 2000 08:33:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/discrepancy-is-disk-usage/m-p/2464974#M654236</guid>
      <dc:creator>Rainer_1</dc:creator>
      <dc:date>2000-11-16T08:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Discrepancy is disk usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/discrepancy-is-disk-usage/m-p/2464975#M654237</link>
      <description>Even though a file is deleted, there may still be open file handles on it.  If this is the case, then "df" will not report the file as being deleted.  If you know what process(es) were using the deleted file(s), then they will have to close the handles, or you will have to end or kill them.   Only when the file handles are cleared from the file table will df report accurately.</description>
      <pubDate>Sat, 18 Nov 2000 23:18:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/discrepancy-is-disk-usage/m-p/2464975#M654237</guid>
      <dc:creator>Byron Myers</dc:creator>
      <dc:date>2000-11-18T23:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Discrepancy is disk usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/discrepancy-is-disk-usage/m-p/2464976#M654238</link>
      <description>There may be another explanation: sparse files. A sparse file is one that has been created with 'holes' or unwritten parts.  Consider writing a file with record #1, then by seeking to record one million, writing another record and then closing the file.  The file has but two records and occupies only a couple of blocks but the missing parts are not stored nor counted in bdf(1) or du(1).  Depending on the size of the file and the spareseness, the difference in apparent versus actual size may be quite large.&lt;BR /&gt;&lt;BR /&gt;It is possible to create a sparse file with:&lt;BR /&gt;&lt;BR /&gt;dd if=/etc/issue of=/var/tmp/sparse bs=2048k  seek=1&lt;BR /&gt;&lt;BR /&gt;where you will see the original file is just a few dozen bytes, the result with ls -l or wc -c shows a 2 meg file, but du(1) will show the file as occupying just a bit more than the original /etc/issue file.  A cp(1) of the file will create a new file that is the same size (using ls -l or wc -c) but du(1) will now show a much larger size.   &lt;BR /&gt;&lt;BR /&gt;A common file that is often sparse is a core file from a crashed program.  Another file that might be sparse is /etc/mail/aliases.pag.  And of course, any programmer could write special code that creates a sparse file.</description>
      <pubDate>Sun, 19 Nov 2000 00:14:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/discrepancy-is-disk-usage/m-p/2464976#M654238</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2000-11-19T00:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Discrepancy is disk usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/discrepancy-is-disk-usage/m-p/2464977#M654239</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the space is not released yet. This can happen when you try to remove active files.&lt;BR /&gt;A reboot will clean this up or if you can find the process which was using the files you might be lucky by killing the process that it will release the space.&lt;BR /&gt;&lt;BR /&gt;This might be tricky and I would recommedn the usage of the shareware program lsof for this.&lt;BR /&gt;&lt;BR /&gt;But in anycase a reboot will help you,&lt;BR /&gt;&lt;BR /&gt;Steffi jones</description>
      <pubDate>Tue, 21 Nov 2000 06:27:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/discrepancy-is-disk-usage/m-p/2464977#M654239</guid>
      <dc:creator>Steffi Jones_1</dc:creator>
      <dc:date>2000-11-21T06:27:20Z</dc:date>
    </item>
  </channel>
</rss>

