<?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: File system usage in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/file-system-usage/m-p/4089996#M310185</link>
    <description>Most likely a file that has been deleted but is still held open by a process. So until the process terminates the space will not be reclaimed. There are countless threads that discuss the discrepancy between bdf and du and to resolve this issue use lsof which can be obtained from HP's porting and archive center...&lt;A href="http://hpux.cs.utah.edu" target="_blank"&gt;http://hpux.cs.utah.edu&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;~cheers</description>
    <pubDate>Mon, 22 Oct 2007 12:04:11 GMT</pubDate>
    <dc:creator>Sandman!</dc:creator>
    <dc:date>2007-10-22T12:04:11Z</dc:date>
    <item>
      <title>File system usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-system-usage/m-p/4089993#M310182</link>
      <description>Dear Admins,&lt;BR /&gt;In one of the hpux server, filesystem is increasing frequently&lt;BR /&gt;In bdf output it showing 178768kb used&lt;BR /&gt;If I use du â  sk , its showing 8637, can any one tell me why the difference &amp;amp; how to fix the issue , in vgdisplay output I am to see 1PE=16mb &lt;BR /&gt;Here I attach the bdf output&lt;BR /&gt;&lt;BR /&gt;root /usr/local/mqm &amp;gt; du -sk * | sort -rn&lt;BR /&gt;7235    log&lt;BR /&gt;845     bin&lt;BR /&gt;419     c&lt;BR /&gt;89      dat&lt;BR /&gt;44      bkup&lt;BR /&gt;3       stage&lt;BR /&gt;1       diff&lt;BR /&gt;0       lost+found&lt;BR /&gt;root /usr/local/mqm &amp;gt; bdf .&lt;BR /&gt;Filesystem              kbytes    used      avail    %used   Mounted on&lt;BR /&gt;/dev/vg00/lvol9     262144  178768   78289   70%     /usr/local/mqm&lt;BR /&gt;root /usr/local/mqm &amp;gt; du -sk&lt;BR /&gt;8637    .&lt;BR /&gt;&lt;BR /&gt;Please help me how to fix this&lt;BR /&gt;Thanks in advance&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Thomas&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Oct 2007 11:52:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-system-usage/m-p/4089993#M310182</guid>
      <dc:creator>M.Thomas</dc:creator>
      <dc:date>2007-10-22T11:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: File system usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-system-usage/m-p/4089994#M310183</link>
      <description>Hi Thomas:&lt;BR /&gt;&lt;BR /&gt;This is probably a case of a process that has created a temporary file; immediately unlinked (removed) it; and it continuing to write to it.&lt;BR /&gt;&lt;BR /&gt;This is a common technique.  The disk space allocated to the file will not be released back to the system until the link count of the file is decremented to zero and the last process associated with the file terminates.&lt;BR /&gt;&lt;BR /&gt;You can use 'lsof' [available from the HP-UX Porting Center] to find the process(es) in question.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 22 Oct 2007 12:00:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-system-usage/m-p/4089994#M310183</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-10-22T12:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: File system usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-system-usage/m-p/4089995#M310184</link>
      <description>Because bdf and du are measuring different things. Bdf examines things from the perspective of the filesystem whereas du examines things from the perspective of the directory tree --- and those are very different things.&lt;BR /&gt;&lt;BR /&gt;The most common difference is temporary files. Consider a process that open()'s a file, e.g. mytempfile and then immediately unlink()'s it without doing a close(). The directory entry for mytempfile has been removed but the space used is not returned to the filesystem until the file is close()'ed or until all processes which had the file open terminate. This is a very standard idiom for temporary files in UNIX and because the file is not visible to du but the space used is visible to bdf, the two utilities report very different values. Another difference is sparse files.</description>
      <pubDate>Mon, 22 Oct 2007 12:03:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-system-usage/m-p/4089995#M310184</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-10-22T12:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: File system usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-system-usage/m-p/4089996#M310185</link>
      <description>Most likely a file that has been deleted but is still held open by a process. So until the process terminates the space will not be reclaimed. There are countless threads that discuss the discrepancy between bdf and du and to resolve this issue use lsof which can be obtained from HP's porting and archive center...&lt;A href="http://hpux.cs.utah.edu" target="_blank"&gt;http://hpux.cs.utah.edu&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;~cheers</description>
      <pubDate>Mon, 22 Oct 2007 12:04:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-system-usage/m-p/4089996#M310185</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-10-22T12:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: File system usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-system-usage/m-p/4089997#M310186</link>
      <description>Dear All,&lt;BR /&gt;&lt;BR /&gt;Thanks for your quick response,please tell me how find open files using lsof</description>
      <pubDate>Mon, 22 Oct 2007 13:13:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-system-usage/m-p/4089997#M310186</guid>
      <dc:creator>M.Thomas</dc:creator>
      <dc:date>2007-10-22T13:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: File system usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-system-usage/m-p/4089998#M310187</link>
      <description>Hi (again) Thomas:&lt;BR /&gt;&lt;BR /&gt;Manpages accompany 'lsof' and/or are available on the web (use Google to search).&lt;BR /&gt;&lt;BR /&gt;# lsof +D /path +L1&lt;BR /&gt;&lt;BR /&gt;...will list open, unlinked files in /path. &lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 22 Oct 2007 13:36:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-system-usage/m-p/4089998#M310187</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-10-22T13:36:24Z</dc:date>
    </item>
  </channel>
</rss>

