The volume restore feature in SnapDrive enables you to restore all the LUNs on a volume automatically from a single Snapshot copy when you establish a connection to the first LUN on a SnapMirror destination.
Before you begin
The following prerequisites must be met before SnapDrive can initiate a volume-based Snapshot copy restoration:
- All LUNs on the active file system must be consistent in the Snapshot copy you intend to use to restore.
- LUNs on the active file system must be of the same size and have the same name as the selected Snapshot copy.
- A SnapMirror relationship must exist.
- LUNs on the volume being restored must be disconnected from the host before they can be restored from the Snapshot copy.
About this task
Volume restore functions are currently available through the sdcli utility.
Step
- Enter the following command from a Windows command prompt:sdcli snap restore_volume [-f StorageSystemName] -volume StorageSystemVolumeName -s SnapshotCopyName [-force] [-m MachineName]
-f StorageSystemName is the name of the storage system on which the volume resides.
-volumeStorageSystemVolumeName indicates name of the volume on which the restore operation will be performed.
-s SnapshotCopyName indicates the name of the Snapshot copy from which the volume will be restored.
-force is an optional switch that you use to ensure the volume restoration is performed even when non-LUN files or newer Snapshot copies are found on the volume.
-mMachineName is the host on which the operation is executed. You can use an IP address or a machine name to identify the host.
Result
The restoration is performed on the volume indicated.
Example
sdcli snap restore_volume -f clpubs-filer1 -volume vol3 -s my_snapThe preceding example restores a volume from the Snapshot copy named my_snap on a volume called vol3 that resides on a storage system called clpubs-filer1.