N1 Provisioning Server 3.1, Blades Edition, System Administration Guide

Backing Up the Control Center Database and the CPDB

The Control Center consists of software executable files and a database. Because the software files do not change after they have been installed, you can reinstall the software executables from the DVD to restore them.

This section describes backup of the Control Center and CP server database components running on either an Oracle or a Postgres database depending on which one you are using. The database stores all the data and state information for the Control Center. This is a general description of the Control Center and CPDB component backup process. For details on how to back up an Oracle or Postgres database, refer to the respective database manufacturer's documentation.


Note –

We recommend backing up the Control Center, CPDB, Control Center database, data files, control files, redo logs, init.ora files, and password files at regular intervals.



Note –

Database backup and restoration is a complicated task. Therefore, we strongly recommend that an experienced Oracle DBA perform this task.


Backing Up a Control Center and CP Server

This section describes the backup of the Control Center and CP server components running on either an Oracle or a Postgres database depending on which one you are using. The database stores all the data and state information for the Control Center. This is a general description of the Control Center and CPDB backup process. For step-by-step procedures for the full Oracle or Postgres database backup refer to the respective database manufacturer's documentation.

Back up the Control Center, CPDB, Control Center database, data files, control files, redo logs, init.ora files, {postgres_data}, and password files at regular intervals.


Note –

Full database backup and restoration is a complicated task. Therefore, an experienced DBA should perform this task.


ProcedureTo Back up the Control Center and Control Plane Server Components

Steps
  1. To back up the control plane server database run the following commands.

    For backing up the control plane server component running on an Oracle database:

    /opt/terraspring/sbin/backupdb -o $ {Oracle_Home} backup file name

    For backing up the control plane server component running on a Postgres database:

    /opt/terraspring/sbin/backupdb -o $ {Postgres_Home} backup file name

  2. To back up the Control Center database run the following commands.

    For backing up the Control Center component running on an Oracle or a Postgres database:

    /opt/terraspring/gwdb/bin/backupDB.sh

Control Center and CPDB File Locations

For the Oracle database, set the ORACLE_HOME variable to a directory, for example, /opt/oracle/OraHome1. By default, the Control Center and CPDB data files and control files for the Oracle database reside in the directory /oracle_data1/tsprdb/DATA.

The Postgres database is bundled with the N1 Provisioning Server software package and the default location of all the data and control files is POSTGRES_HOME/data.


Note –

Because the data file and control file locations are configurable, your precise file path may vary.


Data and Control File Location

The data and control file location is configurable.

ProcedureTo Back Up Data and Control Files

Steps
  1. Back up the following Control Center file:

    /opt/terraspring/sunone/domain_gw/server_gw/config/cc.properties

  2. Back up all files in the following directories:

    /var/opt/terraspring/gw

    /var/opt/terraspring/gwdb

Backing Up an Image Server

The image repository can run either on the control plane server or on separate server. If you run the image repository on a separate server, use a file transfer protocol (FTP) server. Images are stored as files. Use standard file system backup procedures as appropriate for your system environment to back up the image server.