Hitachi

JP1 Version 12 JP1/Network Node Manager i Setup Guide


18.7.3 Backing up and restoring NNMi

Organization of this subsection

(1) Backing up NNMi

You can back up NNMi configured for application failover by using the same procedure as is used for ordinary systems. However, you cannot use the -force option (for forcing NNMi into a state suitable to backup). Place NNMi in a state appropriate for backing up before starting backup.

Do the following on the active server:

  1. Place NNMi in a state appropriate for backing up.

    Using nnmbackup.ovpl:

    For online backup: Start the NNMi service.

    For offline backup: Stop the NNMi service.

    Using nnmbackupembdb.ovpl:

    Start the NNMi service.

  2. Make a backup.

    Run the nnmbackup.ovpl or nnmbackupembdb.ovpl command.

    Important
    • Make the backup on the active server (the server that was previously running if you stopped NNMi for an offline backup).

    • Make the backup on both the active server and standby server if restoring NNMi failover environment on a different set of servers.

(2) Restoring NNMi

To restore your NNMi database from an original backup when active and standby NNMi management servers are configured for application failover, follow these steps:

  1. Run the nnmcluster -halt command on the active NNMi management server.

    This stops NNMi on both the active and standby servers. To verify that the NNMi service has stopped, run the nnmcluster command with no options specified (interactive mode) or the nnmcluster -display command.

  2. Delete or move the following directories on both the active and standby NNMi management servers:

    • Windows:

      %NnmDataDir%shared\nnm\databases\Postgres_standby

      %NnmDataDir%shared\nnm\databases\Postgres.OLD

    • Linux:

      $NnmDataDir/shared/nnm/databases/Postgres_standby

      $NnmDataDir/shared/nnm/databases/Postgres.OLD

  3. Restore the database on the active NNMi management server:

    1. Temporarily cancel the application failover configuration setting.

      Modify the following file to comment out the cluster name com.hp.ov.nms.cluster.name (by adding the characters #! at the beginning of the line):

      Windows:

      %NnmDataDir%shared\nnm\conf\props\nms-cluster.properties

      Linux:

      $NnmDataDir/shared/nnm/conf/props/nms-cluster.properties

    2. Restore the database as normal. Run the nnmrestore.ovpl command or the nnmrestoreembdb.ovpl command with the -force option. After the services necessary for restoration are started by the specification of the -force option, restoration is performed. For details about these commands, see 20.3 Restoring NNMi data.

      If you restore data that was backed up using nnmbackup.ovpl, the change made in step a might be overwritten in the restored files. Therefore, do step a again.

    3. Run the ovstop command on the active NNMi management server. This stops the services that were started in step b for restoration processing.

    4. Reset the application failover configuration.

      Modify the following file to uncomment the cluster name com.hp.ov.nms.cluster.name (by deleting the #! characters added in step a):

      Windows:

      %NnmDataDir%shared\nnm\conf\props\nms-cluster.properties

      Linux:

      $NnmDataDir/shared/nnm/conf/props/nms-cluster.properties

  4. Run the ovstart command on the active NNMi management server.

  5. Wait until the active NNMi management server generates a new backup (a ZIP file for synchronizing the active and standby servers).

    To verify that this step is complete, run the nnmcluster -display command and look for an ACTIVE_NNM_RUNNING message.

  6. Run the ovstart command on the standby NNMi management server.

    The standby NNMi management server copies and extracts the new backup (the ZIP file created in step 5). To verify that this step is complete, run the nnmcluster -display command and look for a STANDBY_READY message.

(3) Restoring NNMi Failover Environment on a different set of servers

Restoring NNMi failover environment on a different set of servers requires obtaining backup of both NNMi active and standby systems, restoring them on the required servers, and also changing the hostnames in certain property files.

To restore NNMi failover environments, follow these steps:

  1. Obtain a complete offline backup of all NNMi data on both Active and Standby systems in the source failover environment. For more information, see 20.2 Backing up NNMi data.
  2. Copy the backup files to the respective destination Active and Standby systems.
  3. Install NNMi to the same version and patch level as were in place for the backup.
  4. Restore NNMi data on both Active and Standby systems.

    Perform the step 3 described in (2) Restoring NNMi on both Active and Standby systems.

  5. On both active and standby NNMi management servers, do the following:
    1. Identify hostnames of both active and standby NNMi management servers.
    2. Open the following file.
      Windows:

      %NnmDataDir%shared\nnm\conf\props\nms-cluster.properties

      Linux:

      $NnmDataDir/shared/nnm/conf/props/nms-cluster.properties

    3. Add the hostnames of both active and standby nodes to the com.hp.ov.nms.cluster.member.hostnames parameter.
      com.hp.ov.nms.cluster.member.hostnames = fqdn_for_active, fqdn_for_standby
  6. Configure NNMi failover environment to use SSL certificates for secure communication. For more information, see 10. Working with Certificates for NNMi.