Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

Best way to delete a slave BE?

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


memmott at gmail

Nov 21, 2009, 8:45 AM

Post #1 of 4 (499 views)
Permalink
Best way to delete a slave BE?

My slave BE is my HD-PVR machine, and I'm planning on rebuilding it with
better hardware. I plan on keeping the hostname and IP but I don't care
about the recordings, channels or tuners on that box. I'm planning on
starting from scratch.

However, it's my understanding that the master BE adds a field (column? Not
sure exactly) for each slave BE, which is how other FEs know where to go for
recordings et al. I'm wondering what the best and / or easiest way it would
be to blow away all traces of the slave BE so I don't experience any
weirdness with the new box like phantom recordings, theme directories being
the wrong versions, etc.

I'm not good with SQL at all, but I'm not afraid to tear into it with some
guidance, if that's the only way to clean things out. I've considered
blowing away my master BE and starting everything from scratch with
MythBuntu Karmic, although if cleaning out the slave BE info is easy enough
I may leave the master BE as is.

Thoughts, suggestions appreciated.


mtdean at thirdcontact

Nov 21, 2009, 6:11 PM

Post #2 of 4 (460 views)
Permalink
Re: Best way to delete a slave BE? [In reply to]

On 11/21/2009 11:45 AM, Matt Emmott wrote:
> My slave BE is my HD-PVR machine, and I'm planning on rebuilding it
> with better hardware. I plan on keeping the hostname and IP but I
> don't care about the recordings, channels or tuners on that box. I'm
> planning on starting from scratch.
>
> However, it's my understanding that the master BE adds a field
> (column? Not sure exactly) for each slave BE, which is how other FEs
> know where to go for recordings et al. I'm wondering what the best and
> / or easiest way it would be to blow away all traces of the slave BE
> so I don't experience any weirdness with the new box like phantom
> recordings, theme directories being the wrong versions, etc.
>
> I'm not good with SQL at all, but I'm not afraid to tear into it with
> some guidance, if that's the only way to clean things out. I've
> considered blowing away my master BE and starting everything from
> scratch with MythBuntu Karmic, although if cleaning out the slave BE
> info is easy enough I may leave the master BE as is.
>
> Thoughts, suggestions appreciated.

Best way is to do the following /before/ decommissioning that host:

a) Go to Watch Recordings or Delete Recordings, then, individually go
through each recording and find the ones on the to-be-decommissioned
host and delete them. There's really nothing to help you do this, yet.
If you like, you can shut down all mythtv programs (frontends, remote
/and/ master backend) and then run (make sure you change the hostname as
appropriate):

cat << "EOF" | mysql -umythtv -p mythconverg
UPDATE recorded SET recgroup = 'LiveTV'
WHERE hostname = '<your hostname>';
EOF

Then, restart the master backend, then restart your other backends and
your frontend. Then, go into Watch Recordings, change the filter to
show the LiveTV recording group (if necessary), then select the LiveTV
recording group (which should now contain all of this host's
recordings), then MENU|Add this group to the Playlist, then
MENU|Playlist Options|Delete and allow rerecord (or just Delete, as
desired).

b) Go to mythtv-setup, Capture Cards, Delete all capture cards on <this
host>

c) In mythtv-setup, Storage Groups, Delete each storage group listed
(hit D after selecting the group name)

If you want to start settings from all defaults, you can optionally:

d) Run the restore script's --change_hostname to change the hostname
from the "good" hostname to a "garbage" hostname (i.e. some name you'll
never use). See
http://www.mythtv.org/wiki/Database_Backup_and_Restore#Change_the_hostname_of_a_MythTV_frontend_or_backend

Really, there's not a big benefit to doing d), so I would recommend you
don't, and you can just reconfigure the settings how you want
them--either way, you would need to go through all the settings to make
sure they're correct for what you want.

Mike
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


memmott at gmail

Nov 22, 2009, 7:51 AM

Post #3 of 4 (450 views)
Permalink
Re: Best way to delete a slave BE? [In reply to]

On Sat, Nov 21, 2009 at 9:11 PM, Michael T. Dean <mtdean [at] thirdcontact>wrote:

>
> Mike
> _______________________________________________
>

Wow, that is a ton of useful info. I wasn't aware of that wiki entry either,
but I'll take your advice and not use it this time. I'll start banging away
and see what happens. Thank you very much!


mtdean at thirdcontact

Nov 22, 2009, 9:34 AM

Post #4 of 4 (443 views)
Permalink
Re: Best way to delete a slave BE? [In reply to]

On 11/22/2009 10:51 AM, Matt Emmott wrote:
> Wow, that is a ton of useful info. I wasn't aware of that wiki entry either,
> but I'll take your advice and not use it this time. I'll start banging away
> and see what happens. Thank you very much!

Oh, yeah, I should say, "In your particular case--since the old hostname
and the new hostname are the same--there's not much benefit to moving
the old stuff out of the way and starting with fresh settings."

For anyone who actually changes the hostname of a system, doing the
--change_hostname is important.

Mike
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.