Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments

Restoring SnapVault data to the primary storage system

About SnapVault data restoration  Top

In the event of data loss on a primary storage system, restoring data from the SnapVault secondary storage system involves these command-line operations.

Restoring data to the primary storage system  Top

To restore data from the SnapVault secondary storage system to the primary storage system, complete the following step.

Step

Action

1

If you intend to restore a primary qtree to the exact qtree location on the primary storage system from which you backed it up, delete the existing qtree from the primary storage system.

2

Enter the following command on the primary storage system on a single line:

snapvault restore [options] -S [sec_filer:]sec_qtree_path 
[prim_filer:]prim_qtree_path

options can be one or more of the following:

  • -s snapname specifies the name of the secondary storage system snapshot that you want to restore to the primary storage system, if it is not the most recent snapshot.
  • -k kbs specifies a value for the throttle (transfer speed) for this snapshot in kilobytes per second. A value of unlimited is the default and lets the transfer run as fast as it can.

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

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

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

3

If you want to...

Then...

Resume SnapVault backups of the newly restored qtree on the primary storage system

Go to Step 4.

Discontinue the backup relationship between the newly restored qtree on the primary storage system and its secondary qtree partner

Go to Step 6.

4

If you want to resume the SnapVault relationship between the restored qtree and its backup qtree on the secondary storage system, enter the following command on a single line:

snapvault start -r [options] -S 
[prim_filer:]prim_qtree_path 
[sec_filer:]/vol/sec_volume/sec_qtree_path 

-r is required to restart backups from a restored primary storage system.

options can be one or more of the following:

  • -k kbs sets a value for the throttle (transfer speed) in kilobytes per second for the primary storage system.
  • -t n sets the number of times to try to start the transfer before giving up.

    Note
    This parameter does not enable SnapVault to restart incomplete transfers.

-S [prim_filer:]prim_qtree_path specifies the primary storage system and path for the restored qtree.

sec_filer is the name of the secondary storage system filer to which the snapshots from the primary storage system are transferred. If specified, this filer name must match the name of the host filer. If no secondary storage system filer is specified, the local host's name is used for the filer name.

sec_volume is the name of the volume on the secondary storage system to which the data from the primary storage system is transferred.

sec_qtree_path is the path and name of the qtree on the secondary storage system. It must be the same name and path as used for the sec_qtree_path variable in Step 1.

5

You have finished. See Example 1.

6

If you want to discontinue the SnapVault relationship between the restored qtree and its backup qtree on the secondary storage system, enter the following command on the secondary storage system:

snapvault release sec_qtree_path 
[prim_filer:]prim_qtree_path

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

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

7

You have finished. See Example 2.

Example 1

This example shows the primary storage system (filerA) requesting data to be restored from the secondary storage system (filerB) and then the secondary storage system restarting the SnapVault backup relationship.

filerA> snapvault restore -S filerB:/vol/sv_vol/qtree3 
vol/vol1/qtree3

 
filerB> snapvault start -r -S filerA:/vol/vol1/qtree3 
filerB:/vol/sv_vol/qtree3

Example 2

This example shows the primary storage system (filerA) requesting data to be restored from the secondary storage system (filerB) and then the secondary storage system canceling the SnapVault backup relationship on both filers to release the resources used.

filerA> snapvault restore -S filerB:/vol/sv_vol/qtree3 
/vol/vol1/qtree3

 
filerB> snapvault release /vol/sv_vol/qtree3 
filerA:/vol/vol1/qtree3

Deleting the residual snapshot  Top

When you use the snapvault restore command to restore a primary qtree, SnapVault places a residual SnapVault snapshot on the volume of the restored primary qtree. This snapshot is not automatically deleted. If you have configured this volume to retain the maximum 251 snapshots allowed by Data ONTAP, you must manually delete this residual snapshot, or else no new snapshots can be created.

To find and delete this residual snapshot, complete the following steps.

Step

Action

1

To display all snapshots (including the residual snapshot) on the volume of the restored qtree, enter the following command:

snap list primaryvolume

The residual snapshot will be distinguished by the following syntax:

primaryhost (nvram_id)_primaryvolume_restoredqtree-dst.2

Example


 
prim_filer (1880911275)_vol1_mytree-dst.2
2

To delete the residual snapshot, enter the following command:

snap delete primaryvolume extrasnapshotname

Example

snap delete vol1 prim_filer (1880911275)_vol1_mytree-
dst.2

Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments