Article ID: 128675, created on Apr 15, 2016, last review on Jul 6, 2016

  • Applies to:
  • Operations Automation 6.0

This article contains instructions on how to migrate a Operations Automation management node host running RHEL/CentOS 5.x to a host running RHEL/CentOS 6.x in case if a database is on a separate host.

A migration process includes a full backup and restore of the system database. You can estimate total amount of time required for the migration as time of full database backup and restore plus two hours to migrate other components. This time depends on the database size and a number of available CPU cores. For example:

  • number of subscriptions: 150K
  • number of accounts: 100K
  • number of users: 250K
  • number of processing cores on OA DB server: 8
  • backup time: 1h
  • restore time 1h
  • total estimated migration time: 3h

Rolling back of migration is fast and it does not require any considerable time.

Changes

Version 1.0.1

  • initial release

Version 1.0.2

  • migration steps for Windows Asure Pack

Known issues

  • no issues

Preparation

Make sure that target management host meets all the requirements listed at Linux Platform Deployment Guide > Installing Linux-based Operations Automation Management Node > Installation Preconditions.

Assign any temporary IP addresses on the target node.

Additional packages will be installed automatically by a migration scripts.

Check that Service Automation Central YUM Repository http://download.pa.parallels.com/pa/6.0/RPMS/ is accessible from the destination node.

Names of network interfaces should be the same on the original and on the destination hosts. That is, if the BackNet IP address of a source node is bound to eth0 interface, then on the destination node the eth0 interface should be also configured for the BackNet IP.

Prepare a new RHEL/CentOS 6 host for the database server:

  1. Install the PostgreSQL server on the new database server. You need to install the following RPMs from the OA distribution with the dependencies:

    - postgresql91-libs-9.1.14-1PGDG.rhel6.x86_64
    - postgresql91-server-9.1.14-1PGDG.rhel6.x86_64
    - postgresql91-9.1.14-1PGDG.rhel6.x86_64
    - pgtune-0.9.3-4 (for CentOS5/RHEL5)
    
  2. Configure the kernel parameters kernel.shmall and kernel.shmmax on the new database server in the same way as they are configured on the source database node:

    1. Copy the kernel.shmmax = ... and kernel.shmall = ... lines from the /etc/sysctl.conf file of the source database node, and paste them to the /etc/sysctl.conf file on the new database node.
    2. Execute the sysctl -p command on the new database node.
  3. Initialize the new PostgreSQL database on the new database node:

    /etc/init.d/postgresql-9.1 initdb
    
  4. Add to chkconfig and start the PostgreSQL server on the new database node:

    chkconfig postgresql-9.1 on
    /etc/init.d/postgresql-9.1 start
    
  5. Copy the /var/lib/pgsql/9.1/data/postgresql.conf and /var/lib/pgsql/9.1/data/pg_hba.conf files from the source database node to the new one.

  6. Restart PostgreSQL on the new database node:

    /etc/init.d/postgresql-9.1 restart
    

Before backing up the Operations Automation management node, make sure that the source node is ready for migration:

  1. Log in to source management node as root.
  2. Download the following scripts.
  3. Extract content of the archive into /usr/local/pem/bin.
  4. Run the pre-check script:

        /usr/local/pem/bin/backup.sh -t mn-migration-precheck
    

If the pre-check failed for some reason, follow recommendations in the script output.

Backup

Important: Before backing up the Operations Automation management node, make sure that there are no custom services (for example, apache, proftpd, bind, and so on) installed on the host. In case there are custom services which you also need to migrate, refer to Migrating Services to Nodes Running Up-to-Date OSes.

To back up all necessary data from the Operations Automation management node do the following:

  1. Log in to management node as root.
  2. Make sure that there is enough free space to store the backed up data.
  3. Make sure that Operations Automation is not running. You can use the following commands to shut Operations Automation down:

        service pemui stop
        service pem stop
        service pau stop
    
  4. Back up necessary data using the following command:

    /usr/local/pem/bin/backup.sh -t mn-migration -o /Operations_Automation_backup -d <db_host_ip_address>
    

    After the operation is performed, the backup data will be stored in the /Operations_Automation_backup directory.

    The data contains all the information needed for migration:

    • Entire pem folder (including tarballs, APS, binaries, etc.)
    • Full DB dump
    • ssh configs
    • redis configs
    • Configs of OACI, pvps APS
  5. Copy the backup to any safe external storage.
  6. Write down the host name, the external and internal IP addresses of the management and database hosts.
  7. If Windows Azure Pack component is installed on source management node, use Backup section of this instruction to backup additional data.

  8. Shutdown the original management and database hosts.

Restore

To finish migration of the Operations Automation management node, you need to restore the backed up data to new host.

  1. Log in to the target database host as root.
  2. Assign the original database host's IP addresses to the target database host.
  3. Configure the host name so that it matches the name of the original database host.
  4. Log in to target management host as root.
  5. Assign the original host's IP addresses to the new host. Make sure that the the IP-addresses are assigned to the same network interfaces, as it was configured on the source host.
  6. Configure the host name so that it matches the name of the original host.
  7. If a virtualization technology is used, make sure that it have correct settings (IP addresses, hostname, name servers) for the destination node.
  8. Copy the backed up data to the host.
  9. Perform the following command from the directory with the backed up data:

        cd /Operations_Automation_backup
        ./install.py --migrate
    
  10. If Windows Azure Pack component is installed on source management node, use Restore section of this instruction to restore additional data.

Once the data is restored all necessary services will be launched automatically, and you will be able to work with Operations Automation.

Rollback

To rollback the migration:

  • for the database and management hosts:

    1. Revert the hostname and IP addresses on the target host.
    2. Shutdown the target host.
    3. Start the original host.

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07 956c448bddc7e1f3585373687602379f 6f1456866eed87488c0f02b298a741c0

Email subscription for changes to this article
Save as PDF