Veritas Storage Foundation Intelligent Storage Provisioning 5.0 AdministratorÆs Guide, HP-UX 11i v3, First Edition, May 2008

47Understanding ISP
Examples of using ISP from the command line
Taking a full-sized snapshot of an application volume
Having prepared an empty volume, you can take a snapshot of the application
volume:
# vxsnap -g mydg make source=stmrvol/snapvol=mysnpvol/syncing=on
The following command starts a full synchronization of the snapshot volume,
and blocks until this is complete:
# vxsnap -g mydg syncwait mysnpvol
See “Creating instant snapshots” on page 101.
Creating a cache volume for space-optimized snapshots
If you want to use space-optimized snapshots, you must prepare a storage cache
where the snapshots can be created. This command sets up a 1GB cache volume,
mycache, in the clone pool, myclpool:
# vxassist -g mydg -P myclpool make mycache 1g type=cachevolume
See “Creating a shared cache volume and preparing space-optimized snapshots
on page 97.
Preparing a space-optimized snapshot
Having created a cache volume, you now need to prepare the space-optimized
snapshots that you require. This command sets up a space-optimized snapshot,
mysovol, using the cache volume, mycache:
# vxassist -g mydg -P myclpool make mysovol 2g type=snapshot \
cachevolume=mycache init=active
Note: The argument 2g is the same as the length of the original source volume
for which the snapshot is being prepared. This value defines the logical size of
the snapshot. The actual amount of storage that the snapshot requires is less
than this, and is limited by the size of the cache volume.
See “Creating a shared cache volume and preparing space-optimized snapshots
on page 97.
Taking a space-optimized snapshot of an application volume
Having prepared a cache volume and one or more empty space-optimized
snapshots, you are ready to take a snapshot of the application volume:
# vxsnap -g mydg make source=stmrvol/snapvol=mysovol
See “Creating instant snapshots” on page 101.