<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jul 19, 2020 at 4:05 AM John <<a href="mailto:jksjdevelop@gmail.com">jksjdevelop@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 18/07/2020 23:36, Jim Abernathy wrote:<br>
> I have a remote v31 backend with a PCIe tuner card running on Ubuntu <br>
> 18.04 with mariadb-server.<br>
><br>
> I'd like to add a v31 slave backend running on a RPi4 using a HDHR <br>
> quatro tuner.<br>
><br>
> Is there a guide on how to set this up? I know how to setup the RPi4 <br>
> as a v31 remote backend, just not sure as to how to make it a slave <br>
> off of my master. I see one setting in mythtv-setup -> General that <br>
> has a check box for master or slave. There has to be more than that?<br>
><br>
> 1. Will the slave use the maradb on the Master?<br>
><br>
> 2. Will all frontends see the recordings/ EPG on both the master and <br>
> slave?<br>
><br>
> Any help would be appreciated. I didn't find much using google and <br>
> what I did was many versions old.<br>
><br>
> Jim A<br>
><br>
><br>
> _______________________________________________<br>
> mythtv-users mailing list<br>
> <a href="mailto:mythtv-users@mythtv.org" target="_blank">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>
<br>
I was really surprised how easy it was to set up a slave backend.<br>
<br>
Make sure the new master is accessible remotely over your network ie a <br>
remote frontend works fine.<br>
<br>
Then starting from a stand alone combined front & backend.<br>
<br>
Uninstalled the database as a slave uses the one on the machine to be <br>
used as master.<br>
<br>
Altered the config.xml for the slave with the host name pointing to the <br>
new master.<br>
<br>
Changed the master slave  setting in mythtv-setup .<br>
<br>
When running setup on the slave it should now see the masters database.<br>
<br>
You set up the tuners on the slave locally.<br>
<br>
If you have sources defined on the master the slave can see them so you <br>
don't need to do channel scan.<br>
<br>
The storage directories on the slave should all be blank in which case <br>
the system uses those defined on the master.<br>
<br>
The slave should be setup so that it sees the file system on the master <br>
at the same address.<br>
<br>
I shared the recording folder from the master using samba - works fine <br>
on a Pi 3B.<br>
<br>
Recordings are then seamlessly accessible on the master .<br></blockquote><div><br></div><div>I seem to have this working.  In my case I want the RPi4 Slave Backend to use it's HDHR tuners and record it's recordings on the SSD connected to the RPi4.</div><div>Here's what I did to get this working:</div><div><br></div><div>
        
        


<ol><li><p style="margin-bottom:0in;line-height:100%;background:transparent">Fresh
        install or Raspberry Pi OS on RPi4 4GB</p>
        </li><li><p style="margin-bottom:0in;line-height:100%;background:transparent">Setup
        repository and install mythty light per:
        <a href="https://www.mythtv.org/wiki/MythTV_Light#Repository_Setup" style="color:rgb(0,0,128)">https://www.mythtv.org/wiki/MythTV_Light#Repository_Setup</a>
                </p>
        </li><li><p style="margin-bottom:0in;line-height:100%;background:transparent">Install
        pi-utils per: <a href="https://github.com/MikeB2013/pi-utils.git" style="color:rgb(0,0,128)">https://github.com/MikeB2013/pi-utils.git</a></p>
        </li><li><p style="margin-bottom:0in;line-height:100%;background:transparent">Modify
        pi-mythbackend-helper.sh to run just part of the functions:</p>
        <ol>
                <p style="margin-bottom:0in;line-height:100%;background:transparent">fn_get_git</p>
                <p style="margin-bottom:0in;line-height:100%;background:transparent">fn_setup_mythtv_user</p>
                <p style="margin-bottom:0in;line-height:100%;background:transparent">fn_setup_mythtv_backend_service</p>
                <p style="margin-bottom:0in;line-height:100%;background:transparent">fn_setup_directories</p>
                <p style="margin-bottom:0in;line-height:100%;background:transparent">fn_tidy_up</p>
        </ol>
        </li><li><p style="margin-bottom:0in;line-height:100%;background:transparent">Run my modified
        pi-mythbackend-helper.sh and reboot</p>
        </li><li><p style="margin-bottom:0in;line-height:100%;background:transparent">Run
        mythtv-setup, but expect it to not find the database. Select the manual
        setup button and point it to the Master backend IP address and
        database password.</p>
        </li><li><p style="margin-bottom:0in;line-height:100%;background:transparent">Mythtv-setup
        will then come up as normal and you can setup the options.  I added
        the HDHR tuners.</p>
        </li><li><p style="margin-bottom:0in;line-height:100%;background:transparent">The Video
        Source will already have the source from the Master backend.</p>
        </li><li><p style="margin-bottom:0in;line-height:100%;background:transparent">I setup the
        Input Connections as I would on a regular backend setup and only
        scan the first tuner.</p>
        </li><li><p style="margin-bottom:0in;line-height:100%;background:transparent">I didn’t
        setup the Storage Groups on the slave backend.</p>
        </li><li><p style="margin-bottom:0in;line-height:100%;background:transparent">I copied the
        config.xml from “/home/pi/.mythtv/” to “/etc/mythtv/” and
        “/home/mythtv/.mythtv/”</p>
        </li><li><p style="margin-bottom:0in;line-height:100%;background:transparent">The hard part
        for me was to understand the Storage Groups setup for the slave
        backend since you don’t do that when you run mythtv-setup on the
        slave.  On my Master Backend for the Storage Group → Default, I
        have 2 directories defined:</p>
        <ol>
                <li><p style="margin-bottom:0in;line-height:100%;background:transparent">“/mnt/md0/recordings-tv1”</p>
                </li><li><p style="margin-bottom:0in;line-height:100%;background:transparent">“/mnt/md1/recordings-tv2”</p>
                <p style="margin-bottom:0in;line-height:100%;background:transparent">This is because I
                have 2 sets of RAID mirrors for the recordings.</p>
        </li></ol>
        </li><li><p style="margin-bottom:0in;line-height:100%;background:transparent">So to make this
        work on the slave backend I had to create a directory
        “/mnt/md0/recordings-tv1” on the slave backend owned by mythtv:mythtv
        with permissions 2775.</p>
        </li><li><p style="margin-bottom:0in;line-height:100%;background:transparent">At this point I
        used my Shield TV Android mythtv-frontend and I could see all the
        tuners on both backends and I started recording 8 programs. The
        recordings worked and were spread out over both backends. And as I
        wanted the RPI4’s recordings were in “/mnt/md0/recordings-tv1”
        on it’s SSD.</p></li></ol>Jim A</div><div><br></div><div> </div></div></div>