Table of ContentsView in Frames

Restoring a single file or LUN

You can restore a single file or LUN or a set of files or LUNs from a Snapshot copy in a SnapVault secondary volume to the active file system of a primary volume. You can restart a failed or aborted single file or LUN restore operation by reissuing the snapmirror restore command.

Before you begin

About this task

Multiple concurrent single file or LUN restore operations cannot be performed on the primary volume (to which file or LUNs are restored) if the volume is already in a single file or LUN restore operation.

An incremental restore occurs if the SnapVault secondary volume and the primary volume have common Snapshot copies and the file or LUN in the Snapshot copy on the primary volume is a different version from the file or LUN that is being restored. Otherwise, a baseline restore occurs.

During a baseline restore, one of the following occurs:

Steps

  1. Use the snapmirror restore command with the -source-snapshot and -file-list parameters to restore a single file or LUN or a set of files or LUNs from a Snapshot copy in the SnapVault secondary volume to the primary volume.
    Example
    The following command restores the files file1 and file2 from the Snapshot copy snap1 in the SnapVault secondary volume secondary1 to the same location of the active file system on the primary volume primary1:
    vserverA::> snapmirror restore -source-path vserverB:secondary1 -destination-path vserverA:primary1 -source-snapshot snap1 -file-list /dir1/file1,/dir2/file2
    [Job 3479] Job is queued: snapmirror restore for the relationship with destination vserverA:primary1
    Example
    The following command restores the files file1 and file2 from the Snapshot copy snap1 in the SnapVault secondary volume secondary1 to a different location on the primary volume primary1:

    The destination file path begins with the @ symbol followed by the path of the file from the root of the active file system of the primary volume. In this example, file1 is restored to @/dir1/file1.new and file2 is restored to @/dir2.new/file2 on primary1.

    vserverA::> snapmirror restore -source-path vserverB:seoondary1 -destination-path vserverA:primary1 -source-snapshot snap1 -file-list /dir/file1,@/dir1/file1.new,/dir2/file2,@/dir2.new/file2
    [Job 3479] Job is queued: snapmirror restore for the relationship with destination vserverA:primary1 
    Example
    The following command restores the files file1 and file3 from the Snapshot copy snap1 in the SnapVault secondary volume secondary1 to different locations on the primary volume primary1, and restores file2 from snap1 to the same location in the active file system on primary1:

    The file file1 is restored to @/dir1/file1.new and file3 is restored to @/dir3.new/file3

    vserverA::> snapmirror restore -source-path vserverB:secondary1 -destination-path vserverA:primary1 -source-snapshot snap1 -file-list /dir/file1,@/dir1/file1.new,/dir2/file2,/dir3/file3,@/dir3.new/file3
    [Job 3479] Job is queued: snapmirror restore for the relationship with destination vserverA:primary1
  2. Optional: Use the snapmirror show command with the -file-restore-file-list parameter to display the files that you are restoring to keep an account of the files you are restoring.
    The file list that is displayed uses the UTF-8 Unicode format.
  3. If the single file or LUN restore operation fails or is aborted, rerun the snapmirror restore command on the primary volume.