I didn't catch if you said where your Myth BE stores it's databases? I assume locally on your BE machine? Or is the DB on the FreeNAS as well?
Lots of moving parts.. Glad you at least found a workaround and maybe the answer.
Have to revisit this.
No, the Database is local on the SSD. Only storage groups are remote via NFS.
I finished my FreeNAS upgrade a while back.
My MythTV database degraded terribly, to the point where it was barely useable. I'm thinking my workaround script above was to blame. The backend is supposed to be able to find moved files in different storage groups and automatically update the database, but I think with the massive amount of moves I was doing it was just too much , and over time degraded the database.
I figured now that my FreeNAS box is faster, has more RAM, more drives and cache up the wazoo, I'd give MythTV with storage over NFS another try.
I still have the same issue. Live TV skips, and frequently freezes completely. Scheduled recording do better for some reason, but if watching them before they have finished recording, performance is iffy.
I have read the
MythTV NFS Server Guide, but its suggestions haven't helped much. I've tried pretty much every combination of mount options, wsize, rsize, tcp, udp, nfsvers=3, etc. etc. with no success. I have also tried both a dual Intel Gigabit adapter in LACP mode, as well as 10gig. Both result in the same LiveTV freezes.
I don't think my storage pool in and of itself is the issue. It is very fast with 12 drives configured in two 6 drive RAIDz2 vdevs striped together to one large pool The storage box has 72GB of RAM for plenty of caching, and has two striped 128GB SSD's for read cache (L2ARC). I created a dedicated dataset just for MythTV in which I forced sync=off, just in case my mirrored Intel S3700 SLOG's weren't cutting it, but still no dice. When MythTV is recording to the storage box, disk activity is very very light, so it can't be that the drives can't keep up.
When I have benchmarked it (making sure to first disable lz4 compression) I achieved 975MB/s reads and 675MB/s writes, with large enough 500GB tests, to make sure I wasn't just measuring cache speed.
Everything else connected to the FreeNAS box performs very well, which leads me to believe there is something specific about MythTV and how it interacts with NFS.
I have temporarily installed an old 1.5TB WD Green drive I had kicking around, dedicated for LiveTV and everything works well. Recordings are still going directly over NFS, and they seem to be working, but they appear to be a bit skippy when watching in-process recordings.
I'd really rather fix this correctly though, and have everything going directly to FreeNAS.
Does anyone have any suggestions? Does MythTV just not play nice with NFS? Would going with SMB be a better choice?
I'd appreciate any thoughts or recommendations!
Thanks,
Matt