18.3 Restoring NNMi data
The NNMi restore script (nnmrestore.ovpl) places backup data on the NNMi management server. The type and scope of the backup determines what NNMi can restore.
- Reference note
-
If you use the nnmrestore.ovpl script to place database records on a second NNMi management server, both NNMi management servers must have the same type of operating system and the same NNMi version and patch level.
- Important note
-
Do not restore backup data acquired from an NNMi with a cluster configuration to an NNMi with a single configuration.
When you are using the global network management function, placing the backup data from one NNMi management server onto a second NNMi management server means that both servers have the same database UUID. After you restore NNMi on the second NNMi management server, you must uninstall NNMi from the original NNMi management server.
-
In restoring an online backup, NNMi copies the file system data to the correct locations and overwrites the contents of the database tables that were included in the backup. Objects that were deleted after the backup was made are restored, and objects that have been created since the backup was made disappear. Additionally, any objects that were changed after the backup was made revert to their state at the time of the backup. For the NNMi database, the nmsdbmgr service must be running.
-
In restoring an offline backup, NNMi overwrites the Postgres files in the file system, completely replacing the database files with the contents of the backup.
With the -force option, the nnmrestore.ovpl command stops all NNMi processes, starts the nmsdbmgr service (if restoring from an online backup of the NNMi database), restores the data, and then restarts all NNMi processes.
If the provided source is a tar file, the NNMi restore command extracts the tar file to a temporary folder in the current working directory. In this case, either ensure that the current working directory has adequate storage capacity to support the temporary folder, or extract the archive before running the restore command.
- Reference note
-
Because the database schema might change from one version of NNMi to the next, data backups cannot be shared across versions of NNMi.
- Organization of this section