Restores the volume from the selected snapshot.
The restored volume will contain the data that existed in the volume at the time the snapshot was created and will have the original volume name and iSCSI target name.
Note: Before restoring a volume from a snapshot, be sure to disconnect any iSCSI initiators from the volume. Follow the instructions for your operating system and initiator. Otherwise, the restored volume may be corrupted when initiators reconnect to it.
The snapshot will still exist after the restore operation.
The restored volume will be in the same pool as the original volume.
In addition, before the restore operation begins, a snapshot of the current volume is automatically created. This snapshot is named according to the normal rules for naming snapshots; in other words, the volume name plus a timestamp plus an identification number. If the restore operation fails, or if you want to return to the current volume, you can restore the snapshot of the current volume.
Format
volume select vol_name snapshot select snap_name restore
Variables
|
vol_name |
Name of a volume. |
|
snap_name |
Name of a snapshot. |
Example
The following command restores a volume from a snapshot:
> volume select db snapshot select db-2006-07-10-10:34:16.8 restore