Server migration

From ControlTier

Jump to: navigation, search

A situation may arise where you need to migrate to a different machine to serve as your ControlTier server. There are three main approaches to a migration of this sort:

Contents

Move your entire installation wholesale

  1. Back up $CTIER_ROOT on the old server.
  2. Unpack $CTIER_ROOT on the new server.
  3. Copy .ctierrc and .bashrc from your old server to your new server.
  4. Repoint the DNS name of your ctier server to the new server.

Caveats

Migrate individual projects using project archive files

Step 1: Create project archive (PAR) file(s)

Go to (old server's) Workbench and open your project. Click the Admin button on the right hand side. Then pick the Create Archive command. In the screen that follows, use these options:

Repeat for each project.

Step 2: Install new server

Step 3: Copy the WebDAV repository

In this step, you need to copy the contents of the old WebDAV repository into the new.

Step 4: Import the PAR file(s)

Repeat this procedure if you have more than one project.

Step 5: Copy Jobcenter and Reportcenter databases

Copy the files $CTIER_ROOT/jobcenter/grailsdb.* and $CTIER_ROOT/reportcenter/grailsdb.* from the old box to the new box.

Step 6: Repoint clients

Caveats

Be careful that you make sure /etc/hosts on your new server points your server hostname to itself during the migration. Otherwise, it may cause production issues by connecting to the old server instead of the new.

Reload your entire project from ProjectBuilder source files

  1. Temporarily add an /etc/hosts entry on your new box pointing the DNS hostname of the server (e.g. ctier.example.com) to itself. Or, you can choose to skip this step and just use the real name of the new server.
  2. Go through the normal Installation process for the new server. Override the server name to the the eventual name of the box that you just added to /etc/hosts, if needed.
  3. Recreate your node objects, either from node.xml or by re-registering each node from the node itself using ctl-project -p create. If you choose the latter option, you need to add an /etc/hosts entry on those nodes as well, so that the nodes talk to the correct server.
  4. Recreate your project, adding ProjectBuilder objects and rebuilding modules as necessary. Reload all your objects and jobs from your ProjectBuilder source base.
  5. Remove and recreate the depot on each node using the ctl-project actions remove, create and install, in that order. You can use ctl-exec to do this.
  6. Repoint DNS to your new server, if needed.

Caveats

Personal tools
Namespaces
Variants
Actions
Navigation
Communication
Development
Toolbox
Print/export