Veritas Storage Foundation 5.1 SP1 Advanced Features Administrator"s Guide (5900-1503, April 2011)
Warning: For this operation to succeed, the volume that is being restored and the
snapshot volume must not be open to any application. For example, any file
systems that are configured on either volume must first be unmounted.
It is not possible to restore a volume from an unrelated volume.
The destroy and 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, snap3myvol.
# vxsnap -g mydg restore myvol source=snap3myvol
Dissociating an instant snapshot
The following command breaks the association between a full-sized instant
snapshot volume, snapvol, and its parent volume, so that the snapshot may be
used as an independent volume:
# vxsnap [-f] [-g diskgroup] dis snapvolume|snapvolume_set
This operation fails if the snapshot, snapvol, has unsynchronized snapshots. If
this happens, the dependent snapshots must be fully synchronized from snapvol.
When no dependent snapshots remain, snapvol may be dissociated. The snapshot
hierarchy is then adopted by the parent volume of snapvol.
See “Controlling instant snapshot synchronization” on page 239.
See “Removing an instant snapshot” on page 236.
The following command dissociates the snapshot, snap2myvol, from its parent
volume:
# vxsnap -g mydg dis snap2myvol
Warning: When applied to a volume set or to a component volume of a volume set,
this operation can result in inconsistencies in the snapshot hierarchy in the case
of a system crash or hardware failure. If the operation is applied to a volume set,
the -f (force) option must be specified.
Removing an instant snapshot
When you have dissociated a full-sized instant snapshot, you can use the vxedit
command to delete it altogether, as shown in this example:
Administering volume snapshots
Creating instant snapshots
236