Reinitializing the database server and restoring data

Reinitializing disk space destroys all existing data managed by the database server. However, you can restore data from a backup that was performed before reinitialization.

You must have a current, level-0 backup of all storage spaces.

During initialization, ON-Bar saves the emergency boot file elsewhere and starts a new, empty emergency boot file. Therefore, any backups that you performed before reinitializing the database server are not recognized. You must use the copy of the emergency boot file you saved before initialization to restore the previous database server instance.

To reinitialize the database server and restore the old data:

  1. Copy the emergency boot file, the oncfg file, and the onconfig file to a different directory.
  2. Set the FULL_DISK_INIT configuration parameter to 1 in the onconfig file.
  3. Shut down the database server.
  4. Reinitialize the database server by running the oninit -i command.
  5. Move the administrative files into the database server directory. If the administrative files are unavailable, copy them from the last backup into the database server directory.
  6. Perform a restore by running the onbar -r -p -w command. Do not salvage the logical logs.
  7. Verify that you restored the correct instance of the critical and noncritical storage spaces.