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:
[destroy=yes|no] [syncing=yes|no] [nmirror=
For a full-sized instant snapshot, some or all of its plexes may be reattached to the parent volume or to a specified source volume in the snapshot hierarchy above the snapshot volume. If
destroy=yes is specified, all the plexes of the full-sized instant snapshot are reattached and the snapshot volume is removed.
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
It is not possible to restore a volume from an unrelated volume.
nmirror attributes are not supported for space-optimized instant snapshots.
The following example demonstrates how to restore the volume,
myvol, from the space-optimized snapshot,
vxsnap -g mydg restore myvol source=snap3myvol