<?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: bdf or du ? which is wrong? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/bdf-or-du-which-is-wrong/m-p/3547713#M224355</link>
    <description>There were probably some files that their inodes were removed.&lt;BR /&gt;&lt;BR /&gt;bdf command "looks" on the filesystem and don't care much about inodes and du command goes over inodes in the filesystem and sums the sizes. When process hold file descriptor to space on disk and you remove the inode with "rm" command, the space is not released untill the process that holds the space is dead. The fact that bdf "looks" on the fs itself and du goes over the inodes, explains the difference.&lt;BR /&gt;&lt;BR /&gt;You should check wich programs use this filesystem (lsof and fuser will give you the info) and try to figure out wich program "holds" the space and stop it and then you'll see the same values.&lt;BR /&gt;&lt;BR /&gt;Anyway, it's not adviced to remove large files with rm, because rm removes only the inode so the space if it's in use, will remain. Before using rm on the inode, consider "cat /dev/null &amp;gt; /some/file" and only then use rm.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 19 May 2005 03:27:18 GMT</pubDate>
    <dc:creator>Alex Lavrov.</dc:creator>
    <dc:date>2005-05-19T03:27:18Z</dc:date>
    <item>
      <title>bdf or du ? which is wrong?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bdf-or-du-which-is-wrong/m-p/3547712#M224354</link>
      <description>Hi!&lt;BR /&gt;&lt;BR /&gt;In my HP-UX 11.23 bdf command gives me the following&lt;BR /&gt;&lt;BR /&gt;# pwd&lt;BR /&gt;/usr/sap/NW1&lt;BR /&gt;# bdf .&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vgNW1/lvusrsapNW1&lt;BR /&gt;                   1245184 1223161   20930   98% /usr/sap/NW1&lt;BR /&gt;&lt;BR /&gt;but du gives other result:&lt;BR /&gt;&lt;BR /&gt;# du -sk *&lt;BR /&gt;231329  DVEBMGS72&lt;BR /&gt;0       SYS&lt;BR /&gt;0       lost+found&lt;BR /&gt;# &lt;BR /&gt;&lt;BR /&gt;Where is the rest 1Gb?</description>
      <pubDate>Thu, 19 May 2005 03:19:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bdf-or-du-which-is-wrong/m-p/3547712#M224354</guid>
      <dc:creator>Igor Sovin</dc:creator>
      <dc:date>2005-05-19T03:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: bdf or du ? which is wrong?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bdf-or-du-which-is-wrong/m-p/3547713#M224355</link>
      <description>There were probably some files that their inodes were removed.&lt;BR /&gt;&lt;BR /&gt;bdf command "looks" on the filesystem and don't care much about inodes and du command goes over inodes in the filesystem and sums the sizes. When process hold file descriptor to space on disk and you remove the inode with "rm" command, the space is not released untill the process that holds the space is dead. The fact that bdf "looks" on the fs itself and du goes over the inodes, explains the difference.&lt;BR /&gt;&lt;BR /&gt;You should check wich programs use this filesystem (lsof and fuser will give you the info) and try to figure out wich program "holds" the space and stop it and then you'll see the same values.&lt;BR /&gt;&lt;BR /&gt;Anyway, it's not adviced to remove large files with rm, because rm removes only the inode so the space if it's in use, will remain. Before using rm on the inode, consider "cat /dev/null &amp;gt; /some/file" and only then use rm.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 19 May 2005 03:27:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bdf-or-du-which-is-wrong/m-p/3547713#M224355</guid>
      <dc:creator>Alex Lavrov.</dc:creator>
      <dc:date>2005-05-19T03:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: bdf or du ? which is wrong?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bdf-or-du-which-is-wrong/m-p/3547714#M224356</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;This is caused because of processes which are still using the "deleted" files.&lt;BR /&gt;&lt;BR /&gt;fuser -u /usr/sap/NW1&lt;BR /&gt;&lt;BR /&gt;should give you some info.&lt;BR /&gt;&lt;BR /&gt;or else use lsof to see open files.&lt;BR /&gt;&lt;BR /&gt;Best wishes,&lt;BR /&gt;--Naveej</description>
      <pubDate>Thu, 19 May 2005 03:35:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bdf-or-du-which-is-wrong/m-p/3547714#M224356</guid>
      <dc:creator>Naveej.K.A</dc:creator>
      <dc:date>2005-05-19T03:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: bdf or du ? which is wrong?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bdf-or-du-which-is-wrong/m-p/3547715#M224357</link>
      <description>thank you guys!&lt;BR /&gt;&lt;BR /&gt;but how to use lsof?&lt;BR /&gt;I get &lt;BR /&gt;# lsof /usr/sap/NW1&lt;BR /&gt;sh: lsof:  not found.</description>
      <pubDate>Thu, 19 May 2005 03:42:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bdf-or-du-which-is-wrong/m-p/3547715#M224357</guid>
      <dc:creator>Igor Sovin</dc:creator>
      <dc:date>2005-05-19T03:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: bdf or du ? which is wrong?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bdf-or-du-which-is-wrong/m-p/3547716#M224358</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;lsof might not be installed, get it from here.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.74/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.74/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Naveej</description>
      <pubDate>Thu, 19 May 2005 03:46:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bdf-or-du-which-is-wrong/m-p/3547716#M224358</guid>
      <dc:creator>Naveej.K.A</dc:creator>
      <dc:date>2005-05-19T03:46:53Z</dc:date>
    </item>
  </channel>
</rss>

