<?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: deleted file still occupying space in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711229#M42679</link>
    <description>this doesnt show the files which i had deleted.&lt;BR /&gt;&lt;BR /&gt;the command lsof | grep deleted shows a whole bunch of files ... none actually show a size greater than zero.&lt;BR /&gt;my partition is a ocfs partition which is shared on two nodes</description>
    <pubDate>Sat, 13 Nov 2010 19:10:56 GMT</pubDate>
    <dc:creator>iinfi1</dc:creator>
    <dc:date>2010-11-13T19:10:56Z</dc:date>
    <item>
      <title>deleted file still occupying space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711222#M42672</link>
      <description>I think this question would have appeared many times in several forums.&lt;BR /&gt;I read that rm'ing a file actually deletes only the name of the file  if it is open and the file inode is still present.&lt;BR /&gt;it can be removed by killing processes which lsof lists with empty names.&lt;BR /&gt;we have 2 nodes of RAC n I use one ocfs moutpoint for export dumps. the export dumps are 4-5G big and sometimes i do a TAR.GZ of the exp files and remove the original ones to save space.&lt;BR /&gt;today i did the same and deleted 10 .EXP files immediately after tarring them. I found that the space around 25G occupied by the files did not get released.&lt;BR /&gt;&lt;BR /&gt;user@dbs1:~&amp;gt; df -h | grep u10&lt;BR /&gt;/dev/sdi1             200G  164G   37G  82% /u10&lt;BR /&gt;user@dbs1:~&amp;gt; du -sh /u10/&lt;BR /&gt;113G    /u10/&lt;BR /&gt;&lt;BR /&gt;this is how my system shows as of now. I am lucky it didnt happen to a production mountpoint which is running out of space.&lt;BR /&gt;I would like to know how i should handle this in future.&lt;BR /&gt;&amp;gt;&amp;gt; If I leave it as is, will the new files automatically write to the disk without running out space.&lt;BR /&gt;&lt;BR /&gt;lsof does not show anything for me.  I mean there is no file which has empty names.&lt;BR /&gt;&lt;BR /&gt;any inputs on how to deal with such situations and what I should do now to recover this space (apart from rebooting).</description>
      <pubDate>Tue, 09 Nov 2010 18:46:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711222#M42672</guid>
      <dc:creator>iinfi1</dc:creator>
      <dc:date>2010-11-09T18:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: deleted file still occupying space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711223#M42673</link>
      <description>What lsof command did you use?&lt;BR /&gt;&lt;BR /&gt;The best way to find deleted files is with 'lsof +L 1'&lt;BR /&gt;&lt;BR /&gt;Try that and see what you find.</description>
      <pubDate>Tue, 09 Nov 2010 19:48:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711223#M42673</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2010-11-09T19:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: deleted file still occupying space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711224#M42674</link>
      <description>Here's an example of output from a quick test I did:&lt;BR /&gt;&lt;BR /&gt;# lsof +L 1 | grep afile&lt;BR /&gt;more      19812    root    3r   REG    8,2   110079     0 558341 /root/afile (deleted)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This shows that /root/afile has been deleted but is still open by the 'more' command from pid 19812.</description>
      <pubDate>Tue, 09 Nov 2010 19:51:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711224#M42674</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2010-11-09T19:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: deleted file still occupying space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711225#M42675</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;The deleted file will occupy space so long as a process maintains an open file handle on it.&lt;BR /&gt;&lt;BR /&gt;Lets use /tmp as an example&lt;BR /&gt;&lt;BR /&gt;fuser -cu /tmp&lt;BR /&gt;# displays process with open file handles on the file system&lt;BR /&gt;&lt;BR /&gt;fuser -cuk /tmp&lt;BR /&gt;&lt;BR /&gt;Kills them all. Very dangerous. I warned you.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 09 Nov 2010 20:48:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711225#M42675</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2010-11-09T20:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: deleted file still occupying space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711226#M42676</link>
      <description>hi..thanks Steven,Patrik for your inputs.&lt;BR /&gt;the command i was trying all this while was&lt;BR /&gt;lsof /u10&lt;BR /&gt;shows no output&lt;BR /&gt;&lt;BR /&gt; lsof +L 1&lt;BR /&gt;does not show the files which i deleted yesterday. how do i deal with this.&lt;BR /&gt;&lt;BR /&gt;and further, if I now copy a 50G file into the partition /u10, will it run out of space at 37G or will it overwrite the open handles?</description>
      <pubDate>Wed, 10 Nov 2010 03:58:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711226#M42676</guid>
      <dc:creator>iinfi1</dc:creator>
      <dc:date>2010-11-10T03:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: deleted file still occupying space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711227#M42677</link>
      <description>i am afraid i hit a roadblock here.&lt;BR /&gt;diff between df and dh is as below. I am losing over 50G&lt;BR /&gt;&lt;BR /&gt;user1@dbs1:~&amp;gt; du -sh /u10/&lt;BR /&gt;114G    /u10/&lt;BR /&gt;user1@dbs1:~&amp;gt; df -h | grep u10&lt;BR /&gt;/dev/sdi1             200G  166G   35G  83% /u10&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Nov 2010 04:22:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711227#M42677</guid>
      <dc:creator>iinfi1</dc:creator>
      <dc:date>2010-11-11T04:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: deleted file still occupying space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711228#M42678</link>
      <description>hi iinfi,&lt;BR /&gt;run "lsof |grep deleted" command and then kill that processes&lt;BR /&gt;taylan.</description>
      <pubDate>Fri, 12 Nov 2010 14:21:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711228#M42678</guid>
      <dc:creator>taylan kurtkaya</dc:creator>
      <dc:date>2010-11-12T14:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: deleted file still occupying space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711229#M42679</link>
      <description>this doesnt show the files which i had deleted.&lt;BR /&gt;&lt;BR /&gt;the command lsof | grep deleted shows a whole bunch of files ... none actually show a size greater than zero.&lt;BR /&gt;my partition is a ocfs partition which is shared on two nodes</description>
      <pubDate>Sat, 13 Nov 2010 19:10:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711229#M42679</guid>
      <dc:creator>iinfi1</dc:creator>
      <dc:date>2010-11-13T19:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: deleted file still occupying space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711230#M42680</link>
      <description>&amp;gt;this doesn't show the files which I had deleted.&lt;BR /&gt;&lt;BR /&gt;How can you tell, wrong filesystem?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;none actually show a size greater than zero.&lt;BR /&gt;&lt;BR /&gt;Why not clean them up too?</description>
      <pubDate>Sun, 14 Nov 2010 00:01:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711230#M42680</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-11-14T00:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: deleted file still occupying space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711231#M42681</link>
      <description>the lsof | grep deleted shows files in the /u01 partition. this is where oracle home is installed.&lt;BR /&gt;i deleted files. backup exp dumps from /u10 which is an ocfs partition.&lt;BR /&gt;current status&lt;BR /&gt;du -sh /u10/&lt;BR /&gt;128G    /u10/&lt;BR /&gt;Filesystem            Size  Used Avail Use% Mounted on&lt;BR /&gt;/dev/sdi1             200G  180G   21G  90% /u10&lt;BR /&gt;&lt;BR /&gt;52G loss.&lt;BR /&gt;there are about 110 entries when i run lsof | grep deleted. is it safe to kill those processes.</description>
      <pubDate>Sun, 14 Nov 2010 04:45:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711231#M42681</guid>
      <dc:creator>iinfi1</dc:creator>
      <dc:date>2010-11-14T04:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: deleted file still occupying space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711232#M42682</link>
      <description>&amp;gt;there are about 110 entries when I run lsof | grep deleted. is it safe to kill those processes?&lt;BR /&gt;&lt;BR /&gt;Which is more important, those processes or the space?</description>
      <pubDate>Sun, 14 Nov 2010 11:57:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711232#M42682</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-11-14T11:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: deleted file still occupying space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711233#M42683</link>
      <description>@Dennis: Kindly explain what you want to convey.&lt;BR /&gt;the lsof command does not show any entries from /u10&lt;BR /&gt;So will deleting the other processes help. For sure space is imp, but i dont want to screw something.</description>
      <pubDate>Sun, 14 Nov 2010 19:15:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711233#M42683</guid>
      <dc:creator>iinfi1</dc:creator>
      <dc:date>2010-11-14T19:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: deleted file still occupying space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711234#M42684</link>
      <description>&amp;gt;Kindly explain what you want to convey.&lt;BR /&gt;&lt;BR /&gt;You don't know what each file has, only the filesystem.  But you do know the process and the owner.  That the info you can use to figure out what's more important.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;the lsof command does not show any entries from /u10&lt;BR /&gt;&lt;BR /&gt;Then there is nothing you can do.  Somebody is lying to you.  You might want to see if you regain that space after some future reboot.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;So will deleting the other processes help. space is imp, but I don't want to screw something.&lt;BR /&gt;&lt;BR /&gt;No, not if it is a different filesystem.</description>
      <pubDate>Sun, 14 Nov 2010 20:00:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711234#M42684</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-11-14T20:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: deleted file still occupying space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711235#M42685</link>
      <description>&amp;gt;&amp;gt;is an ocfs partition.&lt;BR /&gt;&lt;BR /&gt;Have you checked ALL nodes that use the OCFS partition?  Could a node other than the one you are logged into be holding the files open?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Nov 2010 22:46:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711235#M42685</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2010-11-15T22:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: deleted file still occupying space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711236#M42686</link>
      <description>well, future reboot is an option.&lt;BR /&gt;i had checked on both nodes of my cluster. my partition /u10 is not seen in &lt;BR /&gt;lsof | grep deleted&lt;BR /&gt;&lt;BR /&gt;the current partition doesnt contain anything related to production. i can try to umount it and remount it.... provided it allows me to.&lt;BR /&gt;my concern is, if this happens in my production mountpoint tomorrow, i sud be able to handle it. :)</description>
      <pubDate>Tue, 16 Nov 2010 10:40:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711236#M42686</guid>
      <dc:creator>iinfi1</dc:creator>
      <dc:date>2010-11-16T10:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: deleted file still occupying space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711237#M42687</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt; not sure, u might have alrady tried all these, but just for your information.&lt;BR /&gt;&lt;BR /&gt;If you use just lsof, it will show lot of entries, please try to use something like this&lt;BR /&gt;&lt;BR /&gt;#lsof /u01 | grep -i deleted&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;as you stated, yes i understand, no deleted open files. can u also check the list of process using /u01 filesystem? by fuser, and try to understand which process can be killed.&lt;BR /&gt;&lt;BR /&gt;Such issues, shuld be solved without a server reboot... good luck.... please post the solution without fail.</description>
      <pubDate>Wed, 17 Nov 2010 13:59:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711237#M42687</guid>
      <dc:creator>bullz</dc:creator>
      <dc:date>2010-11-17T13:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: deleted file still occupying space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711238#M42688</link>
      <description>I suggest reviewing &lt;BR /&gt;&lt;A href="http://www.idevelopment.info/data/Oracle/DBA_tips/OCFS2/OCFS2_5.shtml" target="_blank"&gt;http://www.idevelopment.info/data/Oracle/DBA_tips/OCFS2/OCFS2_5.shtml&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It may shed some light on the problems you are having.</description>
      <pubDate>Wed, 17 Nov 2010 15:26:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711238#M42688</guid>
      <dc:creator>Earl_Crowder</dc:creator>
      <dc:date>2010-11-17T15:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: deleted file still occupying space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711239#M42689</link>
      <description>thank you ... &lt;BR /&gt;looks like the idevelopment.info like mite help me.&lt;BR /&gt;&lt;BR /&gt;rpm -qa shows ocfs2 version as 1.4.0&lt;BR /&gt;the partition in question is not in production.&lt;BR /&gt;so shall i umount it from all nodes and do a fsck.ocfs2 -fy /dev/sdi1 without stopping the clusterware?</description>
      <pubDate>Wed, 17 Nov 2010 19:04:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711239#M42689</guid>
      <dc:creator>iinfi1</dc:creator>
      <dc:date>2010-11-17T19:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: deleted file still occupying space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711240#M42690</link>
      <description>I would run the debugfs.ocfs2 commands first, then the fsck if it turns out there are orphaned files.</description>
      <pubDate>Fri, 19 Nov 2010 19:06:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711240#M42690</guid>
      <dc:creator>Earl_Crowder</dc:creator>
      <dc:date>2010-11-19T19:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: deleted file still occupying space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711241#M42691</link>
      <description>Hey Mate...&lt;BR /&gt;&lt;BR /&gt;Try this example.. it should work. kill all the process which has the nlink count as 0.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;lsof +L1 /u300 | sort -nr +7 &lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Saleem</description>
      <pubDate>Mon, 22 Nov 2010 08:24:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleted-file-still-occupying-space/m-p/4711241#M42691</guid>
      <dc:creator>Mohamed Saleem_1</dc:creator>
      <dc:date>2010-11-22T08:24:10Z</dc:date>
    </item>
  </channel>
</rss>

