<div dir="ltr"><div><div><div>Let me make another attempt to explain, I think I have a pretty standard setup<br></div><div><br><div style="margin-left:40px">host1 - backend master and frontend<br>host2 - backend slave and frontend<br></div></div><br></div>playing dvd iso on host1 frontend and all boxes have the same nfs paths.  All boxes use the same user.  Yes, the ISOs are stored in a local nfs directory /myth/video/.<br><br></div>Looks like you are on to something with the file type, as ISOs look to be a key with the problem.  I checked the other video types and they play locally with no network traffic.  Only the ISOs do with the weird streaming from the slave.<br><div><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 18, 2016 at 2:48 PM, HP-mini <span dir="ltr"><<a href="mailto:blm-ubunet@slingshot.co.nz" target="_blank">blm-ubunet@slingshot.co.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Fri, 2016-03-18 at 12:14 -0500, Dan Littlejohn wrote:<br>
><br>
><br>
> On Fri, Mar 18, 2016 at 5:59 AM, Michael T. Dean<br>
> <<a href="mailto:mtdean@thirdcontact.com">mtdean@thirdcontact.com</a>> wrote:<br>
>         (fixed top posting)<br>
><br>
><br>
>         On 03/17/2016 04:38 PM, Dan Littlejohn wrote:<br>
>                 On Thu, Mar 17, 2016 at 12:36 PM, Hika van den Hoven<br>
>                 wrote:<br>
><br>
>                         Thursday, March 17, 2016, 6:09:37 PM, you<br>
>                         wrote:<br>
><br>
>                                 I have a two system setup with a<br>
>                                 master and a frontend.  The<br>
>                                 frontend also has a slave backend that<br>
>                                 does recording (as the<br>
>                                 satellite box is where the frontend is<br>
>                                 at).  Both boxes have access to a<br>
>                                 NAS nfs share.<br>
>                                 Recently, I noticed that even though I<br>
>                                 am playing a video on the<br>
>                                 master it appears to be routed from<br>
>                                 the frontend?<br>
>                                 myth://Videos@host2/video.iso<br>
>                                 Why is this and how can I have either<br>
>                                 everything streamed from the<br>
>                                 backend or played locally?  There is<br>
>                                 some shuddering and my guess is<br>
>                                 it is due to all the traffic back and<br>
>                                 forth (frontend is on a weak<br>
>                                 wireless connection).<br>
>                         I guess because the slave did the recording,<br>
>                         so it is owned by the<br>
>                         slave.<br>
><br>
>         Exactly.<br>
><br>
>                           A recording record contains the hostname.<br>
>                         Possibly if you<br>
>                         change this to the hostname of the master...<br>
>                         Of cause the path on both<br>
>                         machines should be the same. Also then playing<br>
>                         back on the slave would<br>
>                         then again create a similar situation.<br>
>                         Alternatively, you could try adding the path<br>
>                         on both machines to the<br>
>                         storage group. These records also contain a<br>
>                         hostname field. I hope<br>
>                         that it then first tries to find the file on<br>
>                         the requesting machine.<br>
>                         As I understand older version would catch it<br>
>                         automatically from the<br>
>                         nfs share, but no longer.<br>
>                 Hi Hika:<br>
><br>
>                 This is what puzzles me.  The master backend has the<br>
>                 storage group<br>
>                 definition and the frontend slave backend does not.<br>
><br>
>         Storage Group definitions are global.  They are defined on the<br>
>         master backend and apply to all hosts.  However, if a host is<br>
>         missing a directory that's listed in the SG definition, it is<br>
>         ignored.  Therefore, the most straightforward approach to<br>
>         setting up SGs is to set the only on the master backend host<br>
>         and define the directory list as the union of all directories<br>
>         used on all hosts.<br>
><br>
>         If you "define" a Storage Group on a remote backend, you are<br>
>         not actually defining it.  You are simply overriding the<br>
>         global/master-specified directory list associated with that<br>
>         Storage Group for this remote host only.  Doing so serves<br>
>         almost no purpose whatsoever--unless for some reason<br>
>         you /must/ have a directory on the remote host that has the<br>
>         exact same path as one that's defined in the global definition<br>
>         of the SG and need to exclude it from use on the remote host<br>
>         (though, really, simply changing the path/name of the<br>
>         directory on one host or the other such that only usable<br>
>         directories are listed in the SG definition is a much<br>
>         preferred approach).<br>
><br>
>                    I just checked with<br>
>                 nload and it is clearly streaming from the frontend to<br>
>                 the master backend<br>
>                 (maybe both) and the frontend wireless connection<br>
>                 cannot keep up with the<br>
>                 network load.<br>
><br>
>         Note that mythfrontend will /always/ check to see if it has<br>
>         local access to the file before playing the video.  So, all<br>
>         you need to do is make sure that the mythfrontend you're<br>
>         wanting to use has "local" access to the file.<br>
><br>
>         Specifically, when you attempt to play a recording,<br>
>         mythfrontend asks the recording host (the host that originally<br>
>         recorded the show) where to find the file.  Then, once the<br>
>         recording host reports the location of the show, the frontend<br>
>         checks to see if that location is readable through the "local"<br>
>         file system--where "local" will include any NFS-/CIFS-mounted<br>
>         file systems.  If the specified location is not available to<br>
>         the frontend (i.e. the directory name doesn't exist on the<br>
>         frontend's file system or that directory name exists but<br>
>         corresponds to a different file system--you've mounted some<br>
>         other file system at the same-named location), then the<br>
>         frontend will request the file from the recording host.<br>
><br>
>         So, as long as all your hosts use the exact same file system<br>
>         layout for the recording directories, you will be able to play<br>
>         the file on any frontend host "directly" from your NAS without<br>
>         any backend involvement.<br>
><br>
>         If you'd like help figuring out exactly what's going on/how to<br>
>         make it work, please post information on your SG definitions<br>
>         (for all hosts) and information about all mount points on all<br>
>         hosts (using something like df and mount).  Or, if this<br>
>         provides enough informaiton for you to reconfigure things<br>
>         properly, then enjoy. :)<br>
><br>
>                 Is this something that could be fixed?  I have been<br>
>                 meaning for a while to<br>
>                 contribute to mythtv and would not mind fixing this if<br>
>                 someone can point me<br>
>                 to where in the code it would need to be adjusted.<br>
><br>
><br>
>         You really only need to fix your configuration.  There's no<br>
>         need for any changes to MythTV code.<br>
><br>
>         Mike<br>
><br>
><br>
><br>
><br>
> There is some confusion here so let me clear it up.<br>
><br>
><br>
> First, what I am trying to play back is a dvd iso.  It was not<br>
> recorded by any backend.<br>
><br>
><br>
> For the storage groups this is what I have in the databases.  All<br>
> entries are being saved to the master.<br>
><br>
><br>
><br>
> master<br>
> mysql> select * from storagegroup;<br>
> +----+-------------+----------+---------------------------------+<br>
> | id | groupname   | hostname | dirname                         |<br>
> +----+-------------+----------+---------------------------------+<br>
> |  3 | Default     | master   | /myth/tv/                       |<br>
> |  6 | Trailers    | master   | /myth/admin/video/trailers/     |<br>
> | 46 | Coverart    | master   | /myth/admin/video/coverart/     |<br>
> | 49 | Fanart      | master   | /myth/admin/video/fanart/       |<br>
> | 11 | Screenshots | master   | /myth/admin/video/screenshots/  |<br>
> | 12 | Banners     | master   | /myth/admin/video/banners/      |<br>
> | 16 | LiveTV      | master   | /myth/tv/                       |<br>
> | 17 | DB Backups  | master   | /myth/admin/backup/             |<br>
> | 18 | Videos      | master   | /myth/video/                    |<br>
> | 50 | Coverart    | slave    | /myth/admin/video/coverart/     |<br>
> | 51 | Fanart      | slave    | /myth/admin/video/fanart/       |<br>
> +----+-------------+----------+---------------------------------+<br>
><br>
><br>
><br>
> slave<br>
> mysql> select * from storagegroup;<br>
> Empty set (0.00 sec)<br>
><br>
><br>
> I deleted the entries for the slave in the master, but it still<br>
> streams from the slave when I play something on the master.<br>
><br>
><br>
> The nfs mounts on both boxes are identical<br>
><br>
> master mythuser # df -h<br>
> Filesystem                 Size  Used Avail Use% Mounted on<br>
> 192.168.0.3:/volume1/data   17T  9.3T  7.1T  57% /myth<br>
><br>
> slave mythuser # df -h<br>
> Filesystem                 Size  Used Avail Use% Mounted on<br>
> 192.168.0.3:/volume1/data   17T  9.3T  7.1T  57% /myth<br>
><br>
><br>
><br>
> when I play using a frontend on the master it is streaming from the<br>
> slave box.  Even with verbose this is the only clue of where it is<br>
> looking for the file, the actual path is not printed out.<br>
><br>
> 2016-03-18 12:01:50.077491 I  DVDRB: Opened DVD device at<br>
> myth://Videos@slave/video.iso<br>
><br>
><br>
><br>
> So I am unsure what to change.  If it is suppose to be looking for the<br>
> file locally and then using that path it is not working for some<br>
> reason.  What suggestions next?<br>
><br>
><br>
> Dan<br>
<br>
</div></div>I'm not even sure this could possibly work the way you explain it<br>
because I thought FE video path was private but if slave BE user is the<br>
same as FE user then it could read the folder..<br>
Each FE (in mythvideo FE setup) can have a local Video path..<br>
This path is not meant to intersect with SG paths (don't cross the<br>
streams).<br>
Is your video/ISO stored in the FE local video folder<br>
(like /home/mythtv/Videos) ?<br>
<br>
Is this a problem just with ISOs ? Do other videos play direct from NAS?<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a><br>
</div></div></blockquote></div><br></div>