VERITAS Storage Foundation 4.1 Intelligent Storage Provisioning Administrator's Guide

Creating Instant Snapshots
84 VERITAS Storage Foundation ISP Administrators Guide
If you want to move a snapshot into a separate disk group, or to turn it into an independent
volume, you must wait for its contents to be synchronized with those of its parent volume.
For example, to use the prepared volume, snap2myvol, as the snapshot for the volume,
myvol, in the disk group, mydg, on the volume, use the following command:
# vxsnap -g mydg make source=myvol/snapvol=snap2myvol
You can use the vxsnap syncwait command to wait for the synchronization of the
snapshot volume to be completed, as shown here:
# vxsnap [-g diskgroup] syncwait snapvol
For example, you would use the following command to wait for synchronization to finish on
the snapshot volume, snap2myvol:
# vxsnap -g mydg syncwait snap2myvol
This command exits (with a return code of zero) when synchronization of the snapshot volume
is complete. The snapshot volume may then be moved to another disk group or turned into an
independent volume.
If required, you can use the following command to verify whether the
V_PFLAG_INCOMPLETE flag is set on a volume:
# vxprint [-g diskgroup] -F%incomplete snapvol
This command returns the value off if synchronization of the volume, snapvol, is complete;
otherwise, it returns the value on.
See “Controlling Instant Snapshot Synchronization” on page 92 for more information.
To create a space-optimized instant snapshot, snapvol, that uses a prepared space-optimized
snapshot:
# vxsnap [-g diskgroup] make source=vol/snapvol=snapvol
For example, to create the space-optimized instant snapshot of the volume, myvol, in the disk
group, mydg, and the prepared snapshot, snap3myvol, enter the following command:
# vxsnap -g mydg make source=myvol/snapvol=snap3myvol
For details of how to create a shared cache object and prepare a snapshot that uses this cache,
see “Creating a Shared Cache Volume and Preparing Space-Optimized Snapshots” on page 77.
4. Use fsck (or some utility appropriate for the application running on the volume) to clean the
temporary volume’s contents. For example, you can use this command:
# fsck -F vxfs /dev/vx/rdsk/diskgroup/snapshot
5. If you require a backup of the data in the snapshot, use an appropriate utility or operating
system command to copy the contents of the snapshot to tape, or to some other backup
medium.