It may sometimes be desirable to reinstate the contents of a volume from a backup or modified replica in a snapshot volume. The following command may be used to restore one or more volumes from the specified snapshots:
# vxsnap [-g diskgroup] restore volume|volume_set \ source=snapvolume|snapvolume_set \ [[volume2|volume_set2 \ source=snapvolume2|snapvolume_set2]...]\ [syncing=yes|no]
For a space-optimized instant snapshot, the cached data is used to recreate the contents of the specified volume. The space-optimized instant snapshot remains unchanged by the restore operation.
It is not possible to restore a volume from an unrelated volume.
The following example demonstrates how to restore the volume, myvol, from the space-optimized snapshot, snap3myvol.
# vxsnap -g mydg restore myvol source=snap3myvol