<?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: Missing free file system space in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5049988#M434587</link>
    <description>Common problem owing to space held by a process holding open a deleted file. Look for it with lsof as follows:&lt;BR /&gt;&lt;BR /&gt;# lsof +aL1 /dev/vg01/lv_out</description>
    <pubDate>Wed, 30 May 2007 13:06:42 GMT</pubDate>
    <dc:creator>Sandman!</dc:creator>
    <dc:date>2007-05-30T13:06:42Z</dc:date>
    <item>
      <title>Missing free file system space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5049987#M434586</link>
      <description>I have a file system that is mysteriously missing  space.  bdf and df are reporting more space used than du.&lt;BR /&gt;&lt;BR /&gt;root@foo  $ bdf .&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vg01/lv_out&lt;BR /&gt;                    524288  341542  182746   65% /foo/out&lt;BR /&gt;root@foo  $ pwd&lt;BR /&gt;/foo/out&lt;BR /&gt;root@foo  $ du -ks &lt;BR /&gt;244468  .&lt;BR /&gt;root@foo  $ df .&lt;BR /&gt;/foo/out    (/dev/vg01/lv_out):   365270 blocks        382290 i-nodes&lt;BR /&gt;&lt;BR /&gt;ls -alR does not show any "Hidden Files" that would account for the missing 100 MB.&lt;BR /&gt;&lt;BR /&gt;I need to reclaim lost space, any suggestions?</description>
      <pubDate>Wed, 30 May 2007 13:01:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5049987#M434586</guid>
      <dc:creator>Rob Beglinger</dc:creator>
      <dc:date>2007-05-30T13:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Missing free file system space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5049988#M434587</link>
      <description>Common problem owing to space held by a process holding open a deleted file. Look for it with lsof as follows:&lt;BR /&gt;&lt;BR /&gt;# lsof +aL1 /dev/vg01/lv_out</description>
      <pubDate>Wed, 30 May 2007 13:06:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5049988#M434587</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-05-30T13:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Missing free file system space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5049989#M434588</link>
      <description>Hi Rob:&lt;BR /&gt;&lt;BR /&gt;To add, see the manpages for 'unlink(2)' for more information.&lt;BR /&gt;&lt;BR /&gt;A very common programming technique is to create a temporary file and immediately unlink() it.  This leaves the file (and its space) available for the duration of the program but automatically causes its removal when the program using it terminates.  One advantage is that no epilog (cleanup) code is necessary to write.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 30 May 2007 13:17:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5049989#M434588</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-05-30T13:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Missing free file system space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5049990#M434589</link>
      <description>Sandman:&lt;BR /&gt;&lt;BR /&gt;The lsof reveals nothing.  When I run the command it runs for a couple seconds and the just returns to the command prompt.  And fuser doesn't show anything out of the ordinary either.&lt;BR /&gt;&lt;BR /&gt;James:&lt;BR /&gt;&lt;BR /&gt;If I had a file that had been unlinked but hasn't been released, how would I track it down?&lt;BR /&gt;</description>
      <pubDate>Wed, 30 May 2007 14:05:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5049990#M434589</guid>
      <dc:creator>Rob Beglinger</dc:creator>
      <dc:date>2007-05-30T14:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Missing free file system space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5049991#M434590</link>
      <description>Hi (again) Rob:&lt;BR /&gt;&lt;BR /&gt;# lsof -a +L1 /dev/vg01/lv_out&lt;BR /&gt;&lt;BR /&gt;(or)&lt;BR /&gt;&lt;BR /&gt;# lsof +D /dev/vg01/lv_out +L1&lt;BR /&gt;&lt;BR /&gt;Look for any files with an NLINK value of zero (0).  These would be files with a zero link count that will vanish when the last process terminates.  The SIZE/OFFSET column will offer the character size of the file in question.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 30 May 2007 14:38:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5049991#M434590</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-05-30T14:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Missing free file system space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5049992#M434591</link>
      <description>Another thing to check would be to find out if "/foo/out" is a nested mount point i.e. has other mount points below it. If that's the case then cmds below should give identical results for the "kbytes used" column.&lt;BR /&gt;&lt;BR /&gt;# bdf /foo/out&lt;BR /&gt;# du -kxs /foo/out&lt;BR /&gt;&lt;BR /&gt;the "-x" token prevents du(1) from crossing mount points.</description>
      <pubDate>Wed, 30 May 2007 14:39:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5049992#M434591</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-05-30T14:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Missing free file system space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5049993#M434592</link>
      <description>James&lt;BR /&gt;&lt;BR /&gt;The version of lsof I have 4.76 did not show any NLINK value from either command, so I downloaded the latest version 4.78 and compiled it.  Here is the command and output that I used.&lt;BR /&gt;&lt;BR /&gt;root@foo  $ ./lsof -a +L1 /dev/vg01/lv_out&lt;BR /&gt;root@foo  $ ./lsof +D /foo/out&lt;BR /&gt;COMMAND   PID     USER   FD   TYPE     DEVICE SIZE/OFF NODE NAME&lt;BR /&gt;ksh      7471 bill  cwd    DIR 64,0xa0003     9216 8256 /foo/out/DIR&lt;BR /&gt;ksh     20055 bill  cwd    DIR 64,0xa0003    18432 8257 /foo/out/DIR/ARCHIVE&lt;BR /&gt;ftp     24761 bill  cwd    DIR 64,0xa0003     9216 8256 /foo/out/DIR&lt;BR /&gt;ftp     24761 bill    6u   REG 64,0xa0003  3898348 8216 /foo/out/DIR/filename&lt;BR /&gt;&lt;BR /&gt;Sandman&lt;BR /&gt;This is not a nested mount point.&lt;BR /&gt;root@foo  $ bdf |grep /foo/out&lt;BR /&gt;                    524288  348982  175306   67% /foo/out&lt;BR /&gt;</description>
      <pubDate>Wed, 30 May 2007 15:05:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5049993#M434592</guid>
      <dc:creator>Rob Beglinger</dc:creator>
      <dc:date>2007-05-30T15:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Missing free file system space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5049994#M434593</link>
      <description>Hi (again) Rob:&lt;BR /&gt;&lt;BR /&gt;# lsof +D /mountpoint +L1&lt;BR /&gt;&lt;BR /&gt;...I think that you forgot to specify "+L1".&lt;BR /&gt;&lt;BR /&gt;For example, if you do:&lt;BR /&gt;&lt;BR /&gt;# perl -e '$f="/tmp/sparse";open(FH,"&amp;gt;",$f) or die;seek(FH,1024*1024,1);print FH "ok\n";unlink $f;sleep 120' &amp;amp;&lt;BR /&gt;&lt;BR /&gt;# lsof +D /tmp +L1 -o | grep perl&lt;BR /&gt;&lt;BR /&gt;...you will see something like:&lt;BR /&gt;&lt;BR /&gt;perl      27248     root    3w  VREG     64,0x6 0t1048576     0      66 /tmp (/d&lt;BR /&gt;ev/vg00/lvol6)&lt;BR /&gt;&lt;BR /&gt;...where the "0t1048576" is the file OFFSET value and the zero (0) in the next column is the NLINK value.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 30 May 2007 15:44:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5049994#M434593</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-05-30T15:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Missing free file system space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5049995#M434594</link>
      <description>The lsof command line should be...&lt;BR /&gt;&lt;BR /&gt;# lsof +aL1 /foo/out&lt;BR /&gt;&lt;BR /&gt;not -&amp;gt; lsof -a +L1</description>
      <pubDate>Wed, 30 May 2007 15:50:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5049995#M434594</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-05-30T15:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Missing free file system space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5049996#M434595</link>
      <description>James&lt;BR /&gt;&lt;BR /&gt;Thanks for the added clarification on your command, I am now seeing the output you expected, but not what is using the space. &lt;BR /&gt;&lt;BR /&gt;root@foo  $ ./lsof +D /foo/out +L1 -o |grep out&lt;BR /&gt;_appl 11372 bill   33u   REG 64,0xa0003 0t3625984     1  8249 /foo/out/DIR/filename&lt;BR /&gt;root@foo  $ bdf /foo/out&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vg01/lv_out&lt;BR /&gt;                    524288  189760  334528   36% /foo/out&lt;BR /&gt;root@foo  $ du -ks /foo/out&lt;BR /&gt;95111   /foo/out&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sandman:&lt;BR /&gt;&lt;BR /&gt;When I run your command it returns nothing.</description>
      <pubDate>Wed, 30 May 2007 16:00:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5049996#M434595</guid>
      <dc:creator>Rob Beglinger</dc:creator>
      <dc:date>2007-05-30T16:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Missing free file system space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5049997#M434596</link>
      <description>What do you get if you omit the '|grep out' from your lsof command? Any change?</description>
      <pubDate>Wed, 30 May 2007 16:07:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5049997#M434596</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2007-05-30T16:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Missing free file system space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5049998#M434597</link>
      <description>Patrick,&lt;BR /&gt;&lt;BR /&gt;When I omit the |grep out, I get every file access on the server.</description>
      <pubDate>Wed, 30 May 2007 16:10:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5049998#M434597</guid>
      <dc:creator>Rob Beglinger</dc:creator>
      <dc:date>2007-05-30T16:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Missing free file system space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5049999#M434598</link>
      <description>Hi Rob:&lt;BR /&gt;&lt;BR /&gt;Wait a second.&lt;BR /&gt;&lt;BR /&gt;When you do 'du -ks' you are reporting in 1K blocks, NOT chunks of 512.  Try:&lt;BR /&gt;&lt;BR /&gt;# bdf /foo/out&lt;BR /&gt;# du -s /foo/out&lt;BR /&gt;# df /foo/out&lt;BR /&gt;&lt;BR /&gt;...The values should be fairly close.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 30 May 2007 16:10:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5049999#M434598</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-05-30T16:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Missing free file system space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5050000#M434599</link>
      <description>James,&lt;BR /&gt;&lt;BR /&gt;Here's what I get:&lt;BR /&gt;&lt;BR /&gt;root@foo  $ bdf /foo/out&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vg01/lv_out&lt;BR /&gt;                    524288  349152  175136   67% /foo/out&lt;BR /&gt;root@foo  $ du -s /foo/out&lt;BR /&gt;503910  /foo/out&lt;BR /&gt;root@foo  $ df /foo/out&lt;BR /&gt;/foo/out    (/dev/vg01/lv_out):   350470 blocks        382518 i-nodes&lt;BR /&gt;&lt;BR /&gt;Thank you all for your continuing help. &lt;BR /&gt;&lt;BR /&gt;BTW the platform I am running on is HP-UX 11.11 PA-RISC in a MC-ServiceGuard cluster.  Not sure it that should make a difference for this problem.</description>
      <pubDate>Wed, 30 May 2007 16:16:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5050000#M434599</guid>
      <dc:creator>Rob Beglinger</dc:creator>
      <dc:date>2007-05-30T16:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Missing free file system space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5050001#M434600</link>
      <description>If taking this filesystem offline is okay then you could stop all processes that are using it; unmount "/foo/out" and mount it back (alongwith starting every process that uses "/foo/out") to see if that fixes the problem.</description>
      <pubDate>Wed, 30 May 2007 17:06:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5050001#M434600</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-05-30T17:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Missing free file system space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5050002#M434601</link>
      <description>Sandman&lt;BR /&gt;&lt;BR /&gt;I was hoping to avoid that, but I think you may be correct.  I will let you know how it goes.&lt;BR /&gt;&lt;BR /&gt;Thanks for all the help,&lt;BR /&gt;&lt;BR /&gt;Rob</description>
      <pubDate>Wed, 30 May 2007 17:10:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5050002#M434601</guid>
      <dc:creator>Rob Beglinger</dc:creator>
      <dc:date>2007-05-30T17:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Missing free file system space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5050003#M434602</link>
      <description>The unmount remount worked thanks for all the help</description>
      <pubDate>Thu, 13 Sep 2007 16:14:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5050003#M434602</guid>
      <dc:creator>Rob Beglinger</dc:creator>
      <dc:date>2007-09-13T16:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Missing free file system space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5050004#M434603</link>
      <description>Unmounting and remounting the file system worked.</description>
      <pubDate>Thu, 13 Sep 2007 16:15:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/missing-free-file-system-space/m-p/5050004#M434603</guid>
      <dc:creator>Rob Beglinger</dc:creator>
      <dc:date>2007-09-13T16:15:53Z</dc:date>
    </item>
  </channel>
</rss>

