Table of ContentsView in Frames

Restoring SnapVault data to the primary system

In the event of data loss on a primary system, you might need to restore data from the secondary system.

About this task

Restoring data from the SnapVault secondary system involves the following command-line operations.

Steps

  1. If you intend to restore a primary qtree to the exact qtree location on the primary system from which you backed it up, you can perform Baseline restore or Incremental restore.
    • Baseline restore—The baseline restore can be to an existing qtree or to a non-existing qtree.
      Note: In case of a baseline restore to an existing qtree, the restore operation overwrites the qtree data.
    • Incremental restore—The restore operation transfers only incremental changes from the secondary qtree to the specified primary qtree.
    Note: When restoring an existing primary qtree, an incremental restore is more efficient. If the incremental restore fails, then you can attempt an in-place baseline restore.
  2. Enter the following command on the primary system on a single line:snapvault restore [-f] [-k n] [-r] [-w] [-s snapname] -S sec_system:sec_qtree_path [prim_system:]prim_qtree_path

    -S [sec_system:]sec_qtree_path specifies the secondary system and qtree path from which you want to restore the data.

    The -f option forces the command to proceed without first asking for confirmation from the user.

    The -k option sets the maximum transfer rate in kilobytes per second.

    The -r option attempts an incremental restore. The incremental restore can be used to revert the changes made to a primary qtree since any backed-up version on the secondary system.

    The -w option causes the command not to return after the baseline transfer starts. Instead, it waits until the transfer completes (or fails). At that time, it prints the completion status and then returns. If the command returns successfully, the status of the transfer can be idle or quiescing.

    The -s option specifies that the restore operation must use the specified (snapname) Snapshot copy on the secondary system.

    prim_system is the name of the primary system that you want to restore to. If specified, this name must match the name of the host system.

    prim_qtree_path is the name of the primary system qtree that you want to restore to.

    For more information about the snapvault restore command options, see the na_snapvault(1) man page.

  3. As required, choose one of the actions from the following table.
    If you want to... Then...
    Resume SnapVault backups of the newly restored qtree on the primary system Go to Step 4.
    Discontinue the backup relationship between the newly restored qtree on the primary system and its secondary qtree partner Go to Step 6.
  4. To resume the SnapVault relationship between the restored qtree and its backup qtree on the secondary system, enter the following command on a single line: snapvault start -r [options] -S [prim_system:]prim_qtree_path [sec_system:]sec_qtree_path

    -r is required to restart backups from a restored primary system. For details about the snapvault command syntax, see the na_snapvault(1) man page.

  5. To discontinue the SnapVault relationship between the restored qtree and its backup qtree on the secondary system, enter the following command on the secondary system:snapvault release sec_qtree_path [prim_system:]prim_qtree_path

    sec_qtree_path is the name of the secondary system qtree that you want to release from a SnapVault relationship.

    [prim_system:]prim_qtree_path is the name of the primary system qtree that you want to release.