Enterprise Edition Home | Express Edition Home | Previous Page | Next Page   Overview of the ON-Bar Backup and Restore System > Restoring Data with ON-Bar > Transferring Data with the Imported Restore >

Importing a Restore

Before you back up the data, set the storage-manager environment variables.

To back up the data and migrate the storage-manager objects
  1. Perform a level-0 backup (ON-Bar -b or onbar -b -w) of all storage spaces on the source database server. (Do not perform an incremental backup.)
  2. If you are using ISM, follow these steps:
    1. Shut down the storage manager on both computers.
    2. Create a tar file of the storage-manager directories on the source computer.
    3. Copy this tar file and unpack it on the target computer.

    With other storage managers, you might be able to use backup tapes or import the storage-manager directories over the network. For more information, see your storage-manager documentation.

  3. Mount the transferred storage volumes.
    • If the backup files are on disk, copy them from the source computer to the target computer.
    • If the backup is on tape, mount the transferred volumes on the storage devices that are attached to the target computer. Both the source and target computers must use the same type of storage devices such as 8mm tape or disk.
    • Some storage managers support remote backups to a backup server. If the backup is on the backup server, retrieve the backup from that backup server.
  4. Use storage-manager commands (such as nsradmin -c) to add the source hostname as a client on the target computer.
To perform the imported restore
  1. Copy the following files from the source computer to the target computer:
    1. Emergency boot file

      Rename the emergency boot file with the target database server number. For example, rename ixbar.51 to ixbar.52. The emergency boot file needs only the entries from the level-0 backup on the source computer.

      On Dynamic Server, the filename is ixbar.servernum. On Extended Parallel Server, the filename is bixbar.servernum.coservernum.

    2. The oncfg files: oncfg_servername.servernum

      ON–Bar needs the oncfg file to know what dbspaces to retrieve. Rename the oncfg file with the target database server name and number. For example, rename oncfg_bostonserver.51 to oncfg_chicagoserver.52. The filename should match the DBSERVERNAME and SERVERNUM on the target computer.

    3. The ONCONFIG file

      In the ONCONFIG file, update the DBSERVERNAME and SERVERNUM parameters with the target database server name and number.

    4. Storage-manager configuration files, if any

      The storage-manager configuration files might need updating.

  2. Use the ON-Bar -r command to restore the data.
    Dynamic Server

    If you are importing a whole-system backup, you can use the onbar -r -w -p command to restore the data.

    End of Dynamic Server
  3. Before you expire objects on the target computer and the storage manager using onsmsync, perform one of the following tasks:
    • Manually edit the emergency boot file viz ixbar.servernum in the $INFORMIXDIR/etc directory on the target computer to replace the Informix server name that is used on the source computer with the Informix server name of the target computer.
    • Execute the command onsmsync -b as user informix on the target computer to regenerate the emergency boot file from the sysutils database only, so that the newly regenerated emergency boot file reflects the server name of the target computer.
    Otherwise, onsmsync expires the incorrect objects.
Important:
Every chunk (including mirrors) must match exactly in size, location, and offset on the source and target computers for the imported restore to complete.
Enterprise Edition Home | Express Edition Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]