Disk Filling up

For discussion of topics specific to MythTV on OSX
User avatar
bill6502
Developer
Posts: 2323
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: Disk Filling up

Post by bill6502 »

This just prints a bunch of info (and changes nothing) but if you're
not comfortable running it, it's understood.

http://pastebin.com/raw.php?i=NyAvsAjW

Copy and past into a file like printAutoExpireStuff.pl
type: chmod 755 printAutoExpireStuff.pl
type: ./printAutoExpireStuff.pl

All of this on your backend. I'm still trying to understand why the
yourBackendHostNameOrIP:6544/Dvr/GetExpiringList response
if empty.
User avatar
pvr4me
Senior
Posts: 763
Joined: Fri Feb 07, 2014 7:25 pm
Location: near Toronto, Canada
Contact:
Canada

Re: Disk Filling up

Post by pvr4me »

For use with Myth from the all-in-one OS X installer, change the first line of the script to:

Code: Select all

#!/opt/dvr/bin/python2.7
Otherwise, you'll get "ImportError: No module named MythTV" because the bindings are only accessible to the MacPorts-installed version of Python.

Otherwise, works very nicely. Thanks Bill!

Craig
Formerly the MacPorts guy.
leejk
Junior
Posts: 65
Joined: Wed Mar 18, 2015 1:51 am

Re: Disk Filling up

Post by leejk »

Thx Bill, here is the output

Code: Select all

Setting AutoExpireMethod, Value 2
Setting AutoExpireWatchedPriority, Value 0
Setting AutoExpireLiveTVMaxAge, Value 1
Setting AutoExpireDayPriority, Value 3
Setting AutoExpireExtraSpace, Value 50

chanid  storage group      filesize     autoexp  preserve host     title
1221  Default            7311493336          0        0 macmini. Arrow
1221  Default            7350278676          0        0 macmini. Arrow
1221  Default            7360825476          0        0 macmini. Arrow
1221  Default            6985831088          0        0 macmini. Arrow
1051  Default            12052486548         0        0 macmini. CSI: Crime Scene Investigation
1501  Default            6070262440          0        0 MacMini. Gotham
1501  Default            5916647264          0        0 macmini. Gotham
1501  Default            5916646324          0        0 macmini. Gotham
1501  Default            5889533716          0        0 macmini. Gotham
1501  Default            5889978712          0        0 macmini. Gotham
1501  Default            5875952220          0        0 macmini. Gotham
1501  Default            5856448912          0        0 macmini. Gotham
1041  Default            11560772360         0        0 MacMini. Great Performances
1051  Default            6126114608          0        0 macmini. Hawaii Five-0
1051  Default            6112501716          0        0 macmini. Hawaii Five-0
1051  Default            6058635768          0        0 macmini. Hawaii Five-0
1051  Default            6157308320          0        0 macmini. Hawaii Five-0
1051  Default            6111979076          0        0 macmini. Hawaii Five-0
1051  Default            6140738188          0        0 macmini. Hawaii Five-0
1171  Default            6708818540          0        0 macmini. Heroes Reborn
1171  Default            6581548932          0        0 macmini. Heroes Reborn
1171  Default            6672830264          0        0 macmini. Heroes Reborn
1171  Default            6900578352          0        0 macmini. Heroes Reborn
1171  Default            6906799460          0        0 macmini. Heroes Reborn
1171  Default            6783976992          0        0 macmini. Law & Order: Special Victims Unit
1171  Default            6521748012          0        0 macmini. Law & Order: Special Victims Unit
1171  Default            6657390952          0        0 macmini. Law & Order: Special Victims Unit
1171  Default            6724888028          0        0 macmini. Law & Order: Special Victims Unit
1171  Default            7039300356          0        0 macmini. Law & Order: Special Victims Unit
1051  Default            6086118736          0        0 MacMini. Limitless
1051  Default            6074758272          0        0 macmini. Limitless
1051  Default            6024267488          0        0 macmini. Limitless
1051  Default            5977563588          0        0 macmini. Limitless
1051  Default            6095598260          0        0 macmini. Limitless
1051  Default            6042920096          0        0 macmini. Limitless
1051  Default            6065323680          0        0 macmini. Limitless
1111  Default            3359353012          0        0 macmini. Marvel's Agents of S.H.I.E.L.D.
1111  Default            3291570552          0        0 macmini. Marvel's Agents of S.H.I.E.L.D.
1111  Default            3490837580          0        0 macmini. Marvel's Agents of S.H.I.E.L.D.
1111  Default            3416767836          0        0 macmini. Marvel's Agents of S.H.I.E.L.D.
1111  Default            3448343376          0        0 macmini. Marvel's Agents of S.H.I.E.L.D.
1111  Default            3407890664          0        0 macmini. Marvel's Agents of S.H.I.E.L.D.
1282  Default            4213409564          0        0 MacMini. McLintock!
1051  Default            5915423384          0        0 macmini. NCIS
1051  Default            5915304004          0        0 macmini. NCIS
1051  Default            5952876180          0        0 macmini. NCIS
1051  Default            5846439416          0        0 macmini. NCIS
1051  Default            5885907196          0        0 macmini. NCIS
1051  Default            6145287600          0        0 macmini. Survivor
1051  Default            6093329476          0        0 macmini. Survivor
1051  Default            6141980116          0        0 macmini. Survivor
1051  Default            6125218976          0        0 macmini. Survivor
1051  Default            6117448936          0        0 macmini. Survivor
1051  Default            3142638456          0        0 macmini. The Big Bang Theory
1051  Default            3143517168          0        0 macmini. The Big Bang Theory
1051  Default            3139059124          0        0 macmini. The Big Bang Theory
1051  Default            3126103104          0        0 macmini. The Big Bang Theory
1051  Default            3121659160          0        0 macmini. The Big Bang Theory
1051  Default            3119518216          0        0 macmini. The Big Bang Theory
1051  Default            5946291480          0        0 macmini. The Good Wife
1051  Default            5879635516          0        0 macmini. The Good Wife
1051  Default            5969675672          0        0 macmini. The Good Wife
1051  Default            5909210172          0        0 macmini. The Good Wife
1051  Default            5941223376          0        0 macmini. The Good Wife
1051  Default            3740648596          0        0 macmini. The Last Samurai
1501  Default            2882084368          0        0 macmini. The Simpsons
1501  Default            2811021120          0        0 macmini. The Simpsons
1501  Default            2846208892          0        0 macmini. The Simpsons
1501  Default            2914527528          0        0 macmini. The Simpsons
1501  Default            2893852040          0        0 macmini. The Simpsons
1171  Default            7261135468          0        0 macmini. The Tonight Show Starring Jimmy Fallon
1171  Default            7062821412          0        0 macmini. The Tonight Show Starring Jimmy Fallon
1171  Default            7166976232          0        0 macmini. The Tonight Show Starring Jimmy Fallon
1171  Default            7185538788          0        0 macmini. The Tonight Show Starring Jimmy Fallon
1171  Default            7465969364          0        0 macmini. The Tonight Show Starring Jimmy Fallon
1171  Default            7280105796          0        0 macmini. The Tonight Show Starring Jimmy Fallon
1171  Default            7237958452          0        0 macmini. The Tonight Show Starring Jimmy Fallon
1171  Default            7305749372          0        0 macmini. The Tonight Show Starring Jimmy Fallon
1171  Default            7404277352          0        0 macmini. The Tonight Show Starring Jimmy Fallon
1221  Default            3612678688          0        0 macmini. Whose Line Is It Anyway?
1221  Default            3681266728          0        0 macmini. Whose Line Is It Anyway?

Bytes in use = 464567604264
I checked free space status using mythweb this morning, and it's down to less than the 50gb minimum I set, so I guess it was not a permission problem. I wonder if Myth is considering both partitions and therefore thinks there is plenty of free space still?
Attachments
Screen Shot 2015-11-08 at 1.16.51 PM.png
Screen Shot 2015-11-08 at 1.16.51 PM.png (91.69 KiB) Viewed 1890 times
User avatar
bill6502
Developer
Posts: 2323
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: Disk Filling up

Post by bill6502 »

Turns out that there's: mythbackend --printexpire too.

But looking at the above, the host/profile/storage group info is missing, but that's probably OK
for now. Typically, the machine's hostname and the MythTV hostname (profile name) are
the same and would match the value in Storage Group and getRecorded list.

OK because all of the autoexpire entries are 0, meaning that they won't
autoexpire. All of mine are 1. It could be that at the time the recordings
above were made, the rules didn't have autoexpire set (which suggests
that it's not set in the default template) Changing rules/templates won't
have any affect on programs already recorded.

You could select each of the 18 programs above and press m, then
add them to the playlist. After that, then select m again and playlist
options and enable auto expire. As opposed to turning on autoexpire
on each of the 70 individual episodes. Or, choose delete from the
playlist.

If the template is now correct, then new rules will be and those programs
should autoexpire. New recordings on 'old' rules that are correct will
autoexpire too.

I truncated the hostname in the output to 8 characters, so macmini. is
misleading. Note that a few of the hostnames are MacMini. suggesting a
hostname change or change in config.xml. I'm not concerned about it
if everything else is working OK.
User avatar
pvr4me
Senior
Posts: 763
Joined: Fri Feb 07, 2014 7:25 pm
Location: near Toronto, Canada
Contact:
Canada

Re: Disk Filling up

Post by pvr4me »

leejk wrote:...I checked free space status using mythweb this morning, and it's down to less than the 50gb minimum I set, so I guess it was not a permission problem. I wonder if Myth is considering both partitions and therefore thinks there is plenty of free space still?
Your screen shot showing "Disk Usage Details" still looks wrong to me. The entry "MythTV Drive 1 Directory macmini:/Users/leejk/.mythtv/channels" should not be there, I believe. That is why I originally asked for a dump of your storage group definitions. I was surprised when it did not show up; I don't understand why it is appearing now.

Craig
Formerly the MacPorts guy.
leejk
Junior
Posts: 65
Joined: Wed Mar 18, 2015 1:51 am

Re: Disk Filling up

Post by leejk »

Thank you both for your help on this. I think I have figured out the initial problem... mis-configuration of the recording rules. In the storage options for the rule, there was an "x" showing for the "Allow to auto expire?" setting. I never gave this any thought and assumed a value in the box meant it was active, but it's the opposite - you have to toggle it to show a green checkmark. :lol: While that was dumb of me, I am a bit smarter now :)

rgds
User avatar
bill6502
Developer
Posts: 2323
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: Disk Filling up

Post by bill6502 »

Interesting, looks to be a theme issue. In Steppes, the box in empty or a checkmark.
dbmyth
Newcomer
Posts: 4
Joined: Thu Dec 17, 2015 1:36 am
United States of America

Re: Disk Filling up

Post by dbmyth »

I have what seems to be a similar set up, my workflow is to:
1) record episodes of a series
2) transcode to mp4
3) transfer to a NAS-based iTunes library
4) watch through the iTunes ecosystem on various devices.

Aside from the issue that you noticed, one of the things that caught me was that I would have episodes continuously rerecording, despite the fact that I'd tried to avoid duplicates in the recording rules. I was being bitten by the fact that if MythTV doesn't think you've watched the episode, and it has "auto-expired" the original recording, it will try to record it again. I've adjusted my script to set the "Watched" flag in the database, and this seems to have addressed the issue, though I'm still testing.

If that helps you out at all, then maybe my karma will be that much better
Post Reply