Difference between revisions of "Backend migration"

From MythTV Official Wiki
Jump to: navigation, search
(Creation of page, based on suggestions made by Michael T Dean on the users mailing list on 10 October 2010)
 
(Remember also to modify mysql.txt and config.xml to point to the new database server)
Line 14: Line 14:
 
* Start up mythtv-setup and also change the master backend IP address on the General Settings page.
 
* Start up mythtv-setup and also change the master backend IP address on the General Settings page.
 
* Copy all media (recordings, videos, music, etc) from the old machine to the same directory structure on the new machine.
 
* Copy all media (recordings, videos, music, etc) from the old machine to the same directory structure on the new machine.
 +
* Modify /etc/mythtv/mysql.txt and /etc/mythtv/config.xml on all machines to point to the new database server.
 
* If your frontends NFS-mount anything from the master backend, change those mounts to point to the new backend.
 
* If your frontends NFS-mount anything from the master backend, change those mounts to point to the new backend.
 
* Start the master backend and all mythtv processes on all machines.
 
* Start the master backend and all mythtv processes on all machines.
  
 
[[Category:HOWTO]]
 
[[Category:HOWTO]]

Revision as of 13:00, 9 December 2010

If you want to build a new master backend, and test it before taking it into service, then follow these steps:

  • Build the machine, install the OS, etc.
  • It is suggested that unless you have a dedicated network on which to test the new machine, to give it a new IP address and hostname.
  • Test the machine.

When you are ready to press the machine into service as the master backend:

  • Stop all frontend and backend processes on all machines.
  • Back up the database on your existing master backend.
  • Copy the resulting backup file to the new machine.
  • Restore the database on the new machine. Depending on how your distribution initialises the database upon installation of the backend, you may need to use the procedure for replacing the database by the backup.
  • Before doing anything else, change the hostname of the master backend.
  • Start up mythtv-setup and also change the master backend IP address on the General Settings page.
  • Copy all media (recordings, videos, music, etc) from the old machine to the same directory structure on the new machine.
  • Modify /etc/mythtv/mysql.txt and /etc/mythtv/config.xml on all machines to point to the new database server.
  • If your frontends NFS-mount anything from the master backend, change those mounts to point to the new backend.
  • Start the master backend and all mythtv processes on all machines.