[mythtv-users] Disk space is not freed from deleted recording until mythbackend exits

Disconnect mythtv at gotontheinter.net
Wed Aug 16 15:03:31 UTC 2006


On Wed, 16 Aug 2006, Joe Ripley did have cause to say:

> Jim,
> 
> Have you tried syncing your disks?  Try deleting a recording from the
> frontend and then issuing a 'sync' command.  This should commit any buffered
> disk activity to the hard drives.

The buffers are always used, as they are up to date. The only thing that 
uses the disk directly is the kernel bits that handle moving data into and 
out of the buffer. Sync will just tie up the system for however long it 
takes to flush out the pending writes.

> You can also try adding the 'sync' option to your fstab file for your myth
> partition.  That way Linux will mount the drive and perform synchronous I/O
> whenever changes are made (i.e. changes are committed immediately).  Running
> with 'sync' may degrade HD performance, depending on how much I/O takes
> place on that disk.  But it might be worth a try.  (Note: a reboot or
> re-mount of the partition will be necessary for this to take effect).

And all this will do is destroy performance. (I suspect you'd have real 
trouble doing basic SD recording with such a setup, much less anything 
else.)

The problem he's having is that the recording file is still opened by 
something (presumably in the front-end) but as to what that might be, I 
can't say.

When you delete a file in *NIX, if it is still open, the directory entry is 
removed but the space cannot be used until the file is closed.  (And if 
there are hardlinks to it, those need to be removed also.)  So no NEW apps 
can see it or open it, but the space is still used because the program that 
has it open can still read/write/etc to it.

> 
> - Joe
> 
> On 8/15/06, Jim O'Neill <oneillji at gmail.com> wrote:
> >
> >I've been having a problem for about two to three weeks now where the
> >space from a recording manually deleted from within mythfrontend is not
> >returned to the system until i exit mythbackend.  It was working prior
> >to this.   The recording appears to be deleted according to mythfrontend
> >and the file system but myth and df do not show the space being
> >returned.  The file system is used by mythtv alone and only for
> >recordings.  As a test i have deleted a recording from konqueror and
> >space is returned after a few moments without exiting konqueror but i
> >have no clue as to whether this test has any validity.
> >
> >I've found one thread on the list mentioning similar symptoms but in
> >that case having mythbackend and mythfrontend running on different boxes
> >was determined to be a contributing factor and i'm running both on the
> >same box.
> >
> >I'd appreciate any insight anyone can share that may lead to a solution.
> >
> >Thanks
> >Jim
> >
> >------------------------------------
> >
> >LVM with reiserfs.  reiserfsck reports no problems.
> >
> >mythbackend --version
> >Library API version: 0.19.20060708-1
> >Source code version: 10761M
> >
> >_______________________________________________
> >mythtv-users mailing list
> >mythtv-users at mythtv.org
> >http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
> >
> 
> 
> !DSPAM:16,44e3317e279907642614171!

> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
> 
> 
> !DSPAM:16,44e3317e279907642614171!



More information about the mythtv-users mailing list