Backing Up and Restoring the Cluster Database

It is recommended to regularly back up the cluster database, especially before making any significant changes to the cluster configuration.

To back up the cluster database to the /etc/cluster.conf.bak file, invoke the cluadmin utility, and specify the cluster backup command. For example:

cluadmin> cluster backup

You can also save the cluster database to a different file by invoking the cluadmin utility and specifying the cluster saveas filename command.

To restore the cluster database, follow these steps:

  1. Stop the cluster software on one system by invoking the cluster stop command located in the System V init directory. For example:

     /sbin/service cluster stop

    The previous command will cause the cluster system's services to fail over to the other cluster system.

  2. On the remaining cluster system, invoke the cluadmin utility and restore the cluster database. To restore the database from the /etc/cluster.conf.bak file, specify the cluster restore command. To restore the database from a different file, specify the cluster restorefrom file_name command.

    The cluster will disable all running services, delete all the services, and then restore the database.

  3. Restart the cluster software on the stopped system by invoking the cluster start command located in the System V init directory. For example:

     /sbin/service cluster start
  4. Restart each cluster service by invoking the cluadmin utility on the cluster system on which you want to run the service and specifying the service enable service_name command.