Restoring data from a SnapVault backup
After selecting the SnapVault backup destination volume, you must perform the restore operation either to a new volume to test the backed-up data or to an existing volume to restore the lost or corrupted data. You must log in to the command line interface (CLI) to run the following snapmirror restore command.You can restore the contents of an entire volume from a Snapshot copy in a SnapMirror destination volume.You can restore the contents of a volume to the original source volume or to a different volume.
Before you begin
To restore a volume from a SnapMirror Synchronous destination (supported starting with ONTAP 9.5), you must first delete and release the relationship.
About this task
A read-write volume, in which case SnapMirror performs an incremental restore, provided that the source and destination volumes have a common Snapshot copy (as is typically the case when you are restoring to the original source volume).
NoteCommand execution will fail if there is not a common Snapshot copy. Contents of a volume cannot be restored to an empty read-write volume.An empty data protection volume, in which case SnapMirror performs a baseline restore, in which the specified Snapshot copy and all the data blocks it references are transferred to the source volume.
If the destination volume for the restore operation has compression enabled while the source volume not, disable compression on the destination volume. You need to re-enable compression after the restore operation is completed.
Any quota rules defined for the destination volume are deactivated before the restore operation is performed. You can run the volume quota modify command to reactivate quota rules after the restore operation is completed.
Unlike network compression, the deduplication option cannot be included in the snapmirror restore command. To use the deduplication feature on the SnapVault volume, you will have to assign an efficiency policy to a volume to perform deduplication or data compression operations by running the volume efficiency modify command. If an efficiency policy is assigned to a SnapVault secondary volume, only the volume efficiency priority attribute is considered during volume efficiency operations. The job schedules are ignored and the deduplication operation is performed when incremental updates are made to the SnapVault secondary volume.
You can enable deduplication on a FlexVol volume to achieve storage efficiency. You can enable postprocess deduplication on all volumes and inline deduplication on volumes that reside on AFA or Flash Pool aggregates. You must contact technical support if you want to enable inline deduplication on other types of volumes. For a FlexVol volume, you must have verified that enough free space is available for deduplication metadata in volumes and aggregates. Beginning with ONTAP 9.4, inline deduplication is enabled by default on AFA systems.
Run the volume efficiency on command to enable postprocess deduplication.
Example
The following command enables postprocess deduplication on volume secondary1:volume efficiency on -vserver vserverB -volume secondary1
Run the volume efficiency on command followed by the volume efficiency modify command with the -inline-dedupe option set to true to enable both postprocess deduplication and inline deduplication.
Example
The following commands enable both postprocess deduplication and inline deduplication on a volume:volume efficiency on -vserver vserverB -volume secondary1volume efficiency modify -vserver vserverB -volume secondary1 -inline-dedupe true
The following command enables only inline deduplication on a volume:volume efficiency modify -vserver vserverB -volume secondary1 -policy inline-only -inline-dedupe true
Verification
Verify that the setting has been changed by checking the volume efficiency settings:volume efficiency show -instance