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