<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Verdana; font-size: 8pt; color: #000000'>Hi,<br><br>Thanks for your help.&nbsp; I recommend you change the docs to specify the host and the ip, since in my world host names resolve to IP's, and are not neccesarily used as unique id's<br><br>I changed the IP of my new server to that of my old, and everything works again.<br><br>Gerald<br><br>----- "Michael T. Dean" &lt;mtdean@thirdcontact.com&gt; wrote:
<br>&gt; On 11/04/2009 06:10 PM, Gerald Brandt wrote:<br>&gt; &gt; ----- "Nick Rout" wrote: <br>&gt; &gt; &nbsp; <br>&gt; &gt;&gt; On Thu, Nov 5, 2009 at 11:53 AM, Gerald Brandt wrote: <br>&gt; &gt;&gt; &nbsp; &nbsp; <br>&gt; &gt;&gt;&gt; I built a new backend and moved my databse over using the .22 supplied <br>&gt; &gt;&gt;&gt; backup and restore scripts. Everything works, except playing back of old <br>&gt; &gt;&gt;&gt; recordings. <br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; I'm streaming recording from the backend, and they still want to come from <br>&gt; &gt;&gt;&gt; the old backend, not the new one. <br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; How can I tell myth to get it's recordings from the new backend? <br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; Thanks, <br>&gt; &gt;&gt;&gt; gerald <br>&gt; &gt;&gt;&gt; &nbsp; &nbsp; &nbsp; <br>&gt; &gt;&gt; Does the new backend have a different host name? <br>&gt; &gt;&gt;<br>&gt; &gt;&gt; If so, did you follow the advice here? <br>&gt; &gt;&gt; http://www.gossamer-threads.com/lists/mythtv/users/405443 <br>&gt; &gt; The hostname did change, but I never referenced it in any of the configs, I only reference the IP's. In fact, the hostnames didn't resolve to an IP, if I recall. I didn't bother to throw them into DNS. <br>&gt; &gt; &nbsp; <br>&gt; <br>&gt; That doesn't matter. &nbsp;In myth, hostnames are not used for IP address <br>&gt; resolution, but as unique identifiers of systems. &nbsp;So, your recordings <br>&gt; are all associated with the old system, so Myth tries to find that <br>&gt; system to ask it for the recordings, but it doesn't exist (or, at the <br>&gt; least, doesn't have those recordings).<br>&gt; <br>&gt; &gt; Gerald <br>&gt; &gt;<br>&gt; &gt; ps: I did follow that guid, thnaks. <br>&gt; <br>&gt; You missed the part e) and "If you change hostnames on a MythTV system, <br>&gt; it is critical that you update all the data in the database to change <br>&gt; the old hostname to the new hostname so recordings, settings, <br>&gt; keybindings, jumppoints, and /much/ more are properly found for the <br>&gt; host" part, then.<br>&gt; <br>&gt; At this point, your options are limited. &nbsp;The best fix would be to use <br>&gt; the restore script to do a hostname change of the new (desired) hostname <br>&gt; to some garbage hostname and then run the script again to change the old <br>&gt; hostname to the new (desired) hostname. &nbsp;See <br>&gt; http://www.mythtv.org/wiki/Database_Backup_and_Restore#Change_the_hostname_of_a_MythTV_frontend_or_backend <br>&gt; . &nbsp;The problem with this fix is you lose any configuration and/or <br>&gt; recordings done with the new hostname.<br>&gt; <br>&gt; Another fix would be to "lie" to MythTV about the hostname by editing <br>&gt; /all/ of your mysql.txt and config.xml files on the new sytem to include:<br>&gt; <br>&gt; LocalHostName=newhostname<br>&gt; <br>&gt; in mysql.txt or<br>&gt; <br>&gt; &lt;LocalHostName&gt;newhostname&lt;/LocalHostName&gt;<br>&gt; <br>&gt; in config.xml<br>&gt; <br>&gt; Here, also, you lose any configuration/recordings done with the new <br>&gt; hostname.<br>&gt; <br>&gt; Another partial fix is to run:<br>&gt; <br>&gt; cat &lt;&lt; "EOF" | mysql -umythtv -p mythconverg<br>&gt; UPDATE recorded<br>&gt; &nbsp;&nbsp; SET hostname = 'newhostname'<br>&gt; &nbsp;WHERE hostname = 'oldhostname'<br>&gt; EOF<br>&gt; <br>&gt; which will only fix some of the broken data--and leave the rest broken.<br>&gt; <br>&gt; I /really/ wasn't lying in that post when I said, "it is criticial," and <br>&gt; "If you forget to do so, changing the hostname becomes /much/ more <br>&gt; difficult--to the point that restoring your pre-upgrade backup and doing <br>&gt; the upgrade properly, and using the script to change the hostname, is <br>&gt; the easiest solution. "<br>&gt; <br>&gt; Which brings me to my final approach--restore the pre-upgrade backup and <br>&gt; do the name change properly (which also loses configuration/recordings <br>&gt; done on the new hostname).<br>&gt; <br>&gt; Mike<br>&gt; _______________________________________________<br>&gt; mythtv-users mailing list<br>&gt; mythtv-users@mythtv.org<br>&gt; http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users<br>&gt; </div></body></html>