Top
PRIMECLUSTER  Cluster Foundation Configuration and Administration Guide 4.5
FUJITSU Software

1.3 Cluster Configuration Backup and Restore (CCBR)

Note

CCBR only saves PRIMECLUSTER configuration information.

CCBR provides a simple method to save the current PRIMECLUSTER configuration information of a cluster node. It also provides a method to restore the configuration information whenever a node update has caused severe trouble or failure, and the update (and any side-effects) must be removed. CCBR provides a node-focused backup and restore capability. Multiple cluster nodes must each be handled separately.

CCBR provides the following commands:

After cfrestore(1M) is executed, you must reactivate the RMS configuration in order to start RMS. Once the reactivation of the RMS configuration is done, RMS will have performed the following tasks:

See "4.4 Activating a configuration" in "PRIMECLUSTER Reliant Monitor Services (RMS) with Wizard Tools Configuration and Administration Guide."

Note

  • To guarantee that the cfrestore(1M) command will restore a functional PRIMECLUSTER configuration, it is recommended that there be no hardware or operating system changes since the backup was taken, and that the same versions of the PRIMECLUSTER products are installed.

  • Because the installation or reinstallation of some PRIMECLUSTER products and kernel drivers, device reconfiguration may occur. This is usually not a problem. However, if Network Interface Cards (NICs) have been installed, removed, replaced, or moved, the device instance numbers (for example, the number 2 in /dev/hme2) can change. Any changes of this nature can, in turn, cause a restored PRIMECLUSTER configuration to be invalid.

cfbackup(1M) and cfrestore(1M) consist of a framework and plug-ins. The framework and plug-ins function as follows:

  1. The framework calls the plug-in for the SMAWcf package.

  2. This plug-in creates and updates the saved-files list, the log files, and error log files.

  3. All the other plug-ins for installed PRIMECLUSTER products are called in name sequence.

  4. Once all plug-ins have been successfully processed, the backup directory is archived by means of tar(1M) and compressed.

  5. The backup is logged as complete and the file lock on the log file is released.

The cfbackup(1M) command runs on a PRIMECLUSTER node to save all the cluster configuration information. To avoid any problem, this command should be concurrently executed on every cluster node to save all relevant PRIMECLUSTER configuration information. This command must be executed as root. If a backup operation is aborted, no tar archive is created. If the backup operation is not successful for one plug-in, the command processing will abort rather than continue with the next plug-in. cfbackup(1M) exits with a status of zero on success and non-zero on failure.

The cfrestore(1M) command runs on a PRIMECLUSTER node to restore all previously saved PRIMECLUSTER configuration information from a compressed tar archive. The node must be in single-user mode with CF not loaded. The node must not be an active member of a cluster. The node must not be an active member of a cluster. cfrestore(1M) exits with a status of zero on success and non-zero on failure.

It is recommended to reboot once cfrestore(1M) returns successfully. If cfrestore(1M) aborts, the reason for this failure should be examined carefully since the configuration update may be incomplete.

Note

  • You cannot run cfbackup(1M) and cfrestore(1M) at the same time on the same node. However, cfbackup(1M) command can be run on multi-user mode, but cfrestore(1M) command cannot be run on single-user mode.

  • Some PRIMECLUSTER information is given to a node when it joins the cluster. The information restored is not used. To restore and to use this PRIMECLUSTER information, the entire cluster needs to be DOWN, and the first node to create the cluster must be the node with the restored data.When a node joins an existing, running cluster, the restored configuration is gone because it is the first node in the cluster that determines which restored configuration to use.

The following files and directories that are fundamental to the operation of the cfbackup(1M) and cfrestore(1M) commands:

Note

It is important to remember that re-installing the SMAWccbr package will reset the contents of the /opt/SMAW/ccbr/ccbr.conf file to the default package settings.

The following is an example of ccbr.conf:

#!/bin/ksh -
#ident "@(#)ccbr.conf   Revision: 12.1  02/05/08 14:45:57"
#
# CCBR CONFIGURATION FILE
#
# set CCBR home directory
#
CCBRHOME=/var/spool/SMAW/SMAWccbr
export CCBRHOME

Example

Example 1: Backup

The following command backs up and validates the configuration files for all CCBR plug-ins that exist on the system fuji2.

fuji2# cfbackup 

CCBR performs the backup automatically and does not require user interaction. Processing has proceeded normally when a message similar to the following appears at the end of the output:cfbackup(1M) command will output the following:

04/30/04 09:16:20 cfbackup 11 ended

This completes the backup of PRIMECLUSTER.

In the case of an error, the subdirectory /var/spool/SMAW/SMAWccbr/fuji2_ccbr11 is created.

Refer to "Chapter 9 Diagnostics and troubleshooting" for more details on troubleshooting CCBR.

Example

Example 2: Restore

Before doing cfrestore(1M), CF needs to be unloaded, the system needs to be in single-user mode, and the disks need to be mounted.

The following files are handled differently during cfrestore(1M):

  • root files

    These are the files under the CCBROOT/root directory. They are copied from the CCBROOT/root file tree to their corresponding places in the system file tree.

  • OS files

    These files are the operating system files that are saved in the archive but not restored. The system administrator might need to merge the new OS files and the restored OS files to get the necessary changes.

For example, on fuji2 we entered the following command to restore the configuration to backup 11.

fuji2# cfrestore 11

The restore process asks you to confirm the restoration and then carries out the process automatically. Processing has proceeded normally when a message similar to the following appears at the end of the output:

05/05/04 13:49:19 cfrestore 11 ended

This completes the PRIMECLUSTER restore.