Project

General

Profile

[Resolved]Auto remove with quota fails depending on mount type

Added by Brent Bolin about 7 years ago

Hello All,

Long time user of MythTV. I've been pulling my hair out trying to figure out how to get autoremove(expire recordings) to work with tvheadend. I've come to the conclusion it's the directory or how it's mounted. Basically if it's an NFS share it fails. If it's local storage it works.

I'm using an Odroid C2 running Ubuntu

Linux odroid64 3.14.79-116 #1 SMP PREEMPT Tue Sep 26 01:19:06 BRT 2017 aarch64 aarch64 aarch64 GNU/Linux

tvheadend 4.2.4~xenial arm64 Tvheadend

It's not a permission problem. I can 'su - hts;cd /home/hts/recordings;touch 1 2 3;rm 1 2 3'

Will paste success and errors along with mount options. Will see if I can also attach some screenshots of web configurations.

Works (directory of recordings is /home/hts/recordings and it's local)

Filesystem      Size  Used Avail Use% Mounted on
udev            716M     0  716M   0% /dev
tmpfs           172M   14M  159M   8% /run
/dev/mmcblk0p2   59G  1.2G   56G   3% /
tmpfs           859M     0  859M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           859M     0  859M   0% /sys/fs/cgroup
/dev/mmcblk0p1  128M   18M  111M  14% /media/boot

2017-11-07 18:16:50.889 dvr: running out of used disk space for dvr config "Default profile", required used space "25000 MiB", current used space "25039 MiB" 
2017-11-07 18:16:50.889 dvr: Delete "until space needed" recording "The Ed Sullivan Show" with stop time "2017-11-07 16:30:00" and file size "272 MB" 
2017-11-07 18:16:50.889 dvr: delete entry de088b83bc12b60435f4942b144b2273 "The Ed Sullivan Show" on "DECADES" start time 2017-11-07 15:59:30, scheduled for recording by "admin", retention "On file removal" removal "Until space needed" 

2017-11-07 18:18:05.883 dvr: running out of used disk space for dvr config "Default profile", required used space "25000 MiB", current used space "25026 MiB" 
2017-11-07 18:18:05.884 dvr: Delete "until space needed" recording "Judge Judy" with stop time "2017-11-07 16:30:00" and file size "1779 MB" 
2017-11-07 18:18:05.885 dvr: delete entry 9fad6d9b936b48784207e2598c510444 "Judge Judy" on "CBS2-HD" start time 2017-11-07 15:59:30, scheduled for recording by "admin", retention "On file removal" removal "Until space needed" 

2017-11-07 18:26:50.886 dvr: running out of used disk space for dvr config "Default profile", required used space "25000 MiB", current used space "25006 MiB" 
2017-11-07 18:26:50.886 dvr: Delete "until space needed" recording "NBC 5 News at 4pm" with stop time "2017-11-07 17:00:00" and file size "2491 MB" 
2017-11-07 18:26:50.886 dvr: delete entry fcb18e82ab882792c85565dffa0b1c20 "NBC 5 News at 4pm" on "NBC5   " start time 2017-11-07 15:59:30, scheduled for recording by "admin", retention "On file removal" removal "Until space needed" 

Fails (directory of recordings is /home/hts/recordings and it's an NFS share)
Filesystem               Size  Used Avail Use% Mounted on
udev                     716M     0  716M   0% /dev
tmpfs                    172M   16M  157M   9% /run
/dev/mmcblk0p2            59G  1.2G   56G   3% /
tmpfs                    859M     0  859M   0% /dev/shm
tmpfs                    5.0M     0  5.0M   0% /run/lock
tmpfs                    859M     0  859M   0% /sys/fs/cgroup
/dev/mmcblk0p1           128M   18M  111M  14% /media/boot
myth:/export/recordings  912G  824G   42G  96% /home/hts/recordings

2017-11-07 20:41:36.467 dvr: running out of used disk space for dvr config "Default profile", required used space "25000 MiB", current used space "25028 MiB" 
2017-11-07 20:41:36.476 dvr: No "until space needed" recordings found for config "Default profile", aborting active recordings now!
2017-11-07 20:41:36.483 subscription: 0027: "DVR: Frasier" unsubscribing from "COZI   " 
2017-11-07 20:41:36.494 dvr: "Frasier" on "COZI   ": End of program: Not enough disk space
2017-11-07 20:41:36.502 subscription: 0024: "DVR: Rowan & Martin's Laugh-In" unsubscribing from "DECADES" 
2017-11-07 20:41:36.504 dvr: "Rowan & Martin's Laugh-In" on "DECADES": End of program: Not enough disk space
2017-11-07 20:41:36.562 subscription: 0025: "DVR: Bull" unsubscribing from "CBS2-HD" 
2017-11-07 20:41:36.564 dvr: "Bull" on "CBS2-HD": End of program: Not enough disk space
2017-11-07 20:41:36.599 subscription: 0026: "DVR: This Is Us" unsubscribing from "NBC5   " 
2017-11-07 20:41:36.599 subscription: 001D: "keep" unsubscribing
2017-11-07 20:41:36.612 dvr: "This Is Us" on "NBC5   ": End of program: Not enough disk space
2017-11-07 20:41:36.612 subscription: 001B: "keep" unsubscribing

All recording fail and tvheadend basically stops. I did not change any configurations in tvheadend between these two tests. Just disabled my Autorecs rules and made the mount changes.

I have tried with both name and IP with the same result

192.168.0.50:/export/recordings /home/hts/recordings nfs _netdev,auto 0 0
myth:/export/recordings /home/hts/recordings nfs _netdev,auto 0 0

Does anybody have any ideas? Would really like to get this to work. This is an Odroid C2 ARM device. There is no room for local storage. Usually run with eMMc disk but in this case was lucky to have a large microSD card

Failed Recording properties.png (26.6 KB) Failed Recording properties.png Failed Recording properties screenshot
Autorecs rule.png (73.3 KB) Autorecs rule.png Autorecs rule screenshot
DVR behavior.png (75.2 KB) DVR behavior.png DVR behavior screenshot

Replies (2)

RE: Auto remove with quota fails depending on mount type - Added by Mark Clarkstone about 7 years ago

Open an issue with this info (or create one and link to this). :)

RE: Auto remove with quota fails depending on mount type - Added by Brent Bolin about 7 years ago

Have done so. Thanks for the heads up

Tvheadend - Bug #4713

    (1-2/2)