Skip to content

HOW TO move a MASTER CS to a new machine ?

Joel Closier edited this page Jun 23, 2014 · 1 revision
  • Install and run the Configuration/Server service on the new machine
  • copy the configuration file of your master instance (MyInstance-Prod.cfg) from the old machine to the new one in $DIRACROOT/etc
  • If you are using an alias for your MASTER CS, remove the previous alias from the OLD machine and create the same alias to the new machine
  • wait until the alias has been propagated in your DNS
  • add the following info in the dirac.cfg of your new machine
Name = MyInstance-Prod
Master = yes  Configuration
{
  Production
  {
    Services
    {
      Server
      {
        HandlerPath = DIRAC/ConfigurationSystem/Service/ConfigurationHandler.py
        Port = 9135
        Authorization
        {
          Default = all
          commitNewData = CSAdministrator
          rollbackToVersion = CSAdministrator
          getVersionContents = ServiceAdministrator
          getVersionContents += CSAdministrator
        }
      }
    }
  }
}
  • restart the service Configuration/Server on the new machine
  • remove the line "Master = yes" on the old machine
  • restart the service Configuration/Server on the old machine.
  • copy the csbackup directory from the old machine to the new machine
Clone this wiki locally