<br><br><div><span class="gmail_quote">On 6/6/07, <b class="gmail_sendername">Michael T. Dean</b> &lt;<a href="mailto:mtdean@thirdcontact.com">mtdean@thirdcontact.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 06/06/2007 03:19 AM, Stefan van der Eijk wrote:<br>&gt; I&#39;m also seeing that my disk is filling up, but it&#39;s not due to the<br>&gt; mysql database. I think it&#39;s due to recorded programs that have been<br>&gt; deleted, but the mythbackend process is still holding onto them:
<br>&gt;<br>&gt; # lsof | grep myth | grep deleted<br>&gt; mythbacke 23174&nbsp;&nbsp;&nbsp;&nbsp; mythtv&nbsp;&nbsp; 18r&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;REG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;8,3<br>&gt; 2894512128&nbsp;&nbsp; 28181291<br>&gt; /var/lib/mythtv/recordings/1028_20070604212500.mpg (deleted)<br>
&gt;<br>&gt; Restarting the mythbackend process releases the diskspace.<br><br>So disable slow deletes.<br><br>Delete files slowly<br>Some filesystems use a lot of resources when deleting large recording<br>files.&nbsp;&nbsp;This option makes Myth delete the file slowly on this backend to
<br>lessen the impact.<br><br>in mythtv-setup (on each backend).<br></blockquote></div><br>No, what he&#39;s describing, here, is something else.&nbsp; On any Unix machine, if multiple processes have a file open, and someone comes along and makes an unlink() call on that file, the file won&#39;t actually be deleted until all processes close their file handles.&nbsp; In this case, mythbackend has opened the file, for whatever reason, and has unlinked the file, but isn&#39;t closing it&#39;s currently opened file handle, and so the filesystem can&#39;t actually free the underlying disk space.&nbsp; If this is true, it seems like a pretty serious bug.
<br><br>To the original poster, what version of mythbackend are you running?&nbsp; What&#39;s your use case, here?&nbsp; Is there some sequence of operations which produces this behaviour 100% of the time?<br><br>Brett.<br>