I have 2085 total recording count listed in All Programs filter view in Watch Recording of MythTV frontend. This also reports a usage of 4.3TB of space, yet my recordings directories have about up 4170 MPG, TS and NUV files taking up 7.9TB space. That's a 3.6TB discrepancy.
My Recorded table has 2085 out of 4170 records flagged as both recgroup = “Deleted” AND autoexpire = 9999 . Note: exactly half just seems to be a coincidence, sorting all records there seems to be no duplicates, and all basename values are unique.
find_orphans.py doesn’t find any discrepancies between table records and the files in the filesystem.
The 2085 deleted records don’t appear in the Deleted filter view of the recordings list in mythtv’s frontend (and this does work, as I have deleted other recording and they go into this view before being removed by the system).
I’d like to remove the 2085 records and their files (to free up 3.6TB) but am not sure the best way to do this. These recording have been flagged for deletion in the frontend interface more than a month ago (with most years ago), though they are still there in the backend table (and the filesystem).
My “Time to retain deleted recording (days)” variable (in frontend) is set to 0.
I’ve tried running flush_deleted_recgroup.pl but I get the following.
Code: Select all
{about 855 prior of similar format)
DELETE: House Hunters Renovation: Massive Master Bath Redo
DELETE: Fireman Sam: Norman's Big Fossil Adventure
Error reading from MythTV backend: Connection reset by peer
error:
DELETE: Fireman Sam: Pontypandy Heatwave
error:
DELETE: Kazoops, Peppa and Fireman Sam (Manual Record): 2016-11-11 17:25:00
error:
{about 1240 repeats of similarly formatted line pairs}
I’m happy to run a query on the table to delete the offending records (in recorded table) then run find_orphans.py to clean up the orphaned files, but understand this is probably a last resort (and without knowing how all the tables work together I don’t want to do without proper advice).
So my question is what is the best way to remove my 2085 deletion flagged records (and their files) from my MythTV?
Thanks, any suggestions appreciated.