You can use SnapRestore to restore a Snapshot copy of a LUN and the volume that contains it to its state when the Snapshot copy was taken. You can use SnapRestore to restore an entire volume or a single LUN.
When restoring a volume using SnapRestore, you only need as much available space as the size of the volume you are restoring. For example, if you are restoring a 10 GB volume, then you only need 10 GB of available space to perform the SnapRestore.
-f suppresses the warning message and the prompt for confirmation. This option is useful for scripts.
-t vol volume_name specifies the volume name to restore.
volume_name is the name of the volume to be restored. Enter the name only, not the complete path. You can enter only one volume name.
-s snapshot_name specifies the name of the Snapshot copy from which to restore the data. You can enter only one Snapshot copy name.
storage_system> WARNING! This will restore a volume from a snapshot into the active filesystem. If the volume already exists in the active filesystem, it will be overwritten with the contents from the snapshot. Are you sure you want to do this? y You have selected file /vol/payroll_lun, snapshot payroll_lun_backup.2 Proceed with restore? y
If you did not use the -f option, Data ONTAP displays a warning message and prompts you to confirm your decision to restore the volume.
Data ONTAP displays the name of the volume and the name of the Snapshot copy for the reversion. If you did not use the -f option, Data ONTAP prompts you to decide whether to proceed with the reversion.
After you use SnapRestore to update a LUN from a Snapshot copy, you also need to restart any applications you closed down and remount the volume from the host side.