<div>That could help you if there are open files which are not deleted.</div><div>I had that sometimes in the past, where a ugly-written script for logration moved away some logfiles and created a new one at the same place with the old name.</div>
<div>In this case the old file was in use by the process which writes to this process while moving and the filesystem for the logfile slowly grew up for no appearent reason.</div><div><br></div><div>Good luck! :)</div><div>
<br></div><a href="http://www.ibm.com/developerworks/aix/library/au-lsof.html">http://www.ibm.com/developerworks/aix/library/au-lsof.html</a><br><br><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "><a name="listing5" style="color: rgb(76, 110, 148); "><b style="font-size: 0.76em; font-weight: bold; padding-top: 0.3em; padding-right: 5px; padding-bottom: 0.7em; padding-left: 5px; font-family: arial, sans-serif; ">Listing 5. Using lsof on Linux to look for a deleted file</b></a></span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "><table width="572" cellpadding="0" cellspacing="0" border="0">
<tbody><tr><td class="code-outline" style="font-family: arial, sans-serif; background-color: rgb(247, 247, 247) !important; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); padding-top: 2px; padding-right: 2px; padding-bottom: 5px; padding-left: 2px; font-size: 0.75em; ">
<pre class="displaycode" style="width: 694px; margin-top: 0px; margin-bottom: 0px; font-family: 'Andale Mono', 'Lucida Console', Monaco, Liberation, fixed, monospace; font-size: 11px; overflow-x: auto; overflow-y: auto; background-image: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: rgb(247, 247, 247) !important; color: rgb(0, 0, 0); background-position: initial initial !important; background-repeat: initial initial !important; ">
# lsof | grep error_log
httpd 2452 root 2w REG 33,2 499 3090660
/var/log/httpd/error_log (deleted)
httpd 2452 root 7w REG 33,2 499 3090660
/var/log/httpd/error_log (deleted)
... more httpd processes ...</pre></td></tr></tbody></table></span><br><div class="gmail_quote">On Tue, Jun 29, 2010 at 15:08, Dirk Deimeke <span dir="ltr"><<a href="mailto:dirk@deimeke.net">dirk@deimeke.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">Answering Kaushal Shriyan <<a href="mailto:kaushalshriyan@gmail.com">kaushalshriyan@gmail.com</a>><br>
</div>(Tue, 29 Jun 2010 17:43:52 +0530):<br>
<br>
Hi,<br>
<br>
are you sure, no one (program, daemon, human being) is using any<br>
deleted files?<br>
<br>
If you are not sure consider a shutdown of all services or eventually<br>
a complete reboot.<br>
<br>
> Please suggest further<br>
<br>
Your blocksize is 4096, so regardless of the size of the file it will<br>
use at minimum 4k.<br>
<br>
If you want to take the effort you can check for wasted space.<br>
<br>
For example<br>
find /home /usr -size -4096c | wc -l<br>
shows you a count of files which are smaller than 4096 bytes.<br>
<div><div></div><div class="h5"><br>
Cheers<br>
<br>
Dirk<br>
<br>
--<br>
Kontakt: <a href="http://d5e.org/contact" target="_blank">http://d5e.org/contact</a><br>
Blog: <a href="http://dirk.deimeke.net/" target="_blank">http://dirk.deimeke.net/</a><br>
Podcast: <a href="http://deimhart.net/" target="_blank">http://deimhart.net/</a><br>
<br>
--<br>
ubuntu-server mailing list<br>
<a href="mailto:ubuntu-server@lists.ubuntu.com">ubuntu-server@lists.ubuntu.com</a><br>
<a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-server" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-server</a><br>
More info: <a href="https://wiki.ubuntu.com/ServerTeam" target="_blank">https://wiki.ubuntu.com/ServerTeam</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>To be or not to be -- Shakespeare | To do is to be -- Nietzsche | To be is to do -- Sartre | Do be do be do -- Sinatra<br><br>