HP (Hewlett-Packard) HP-UX 11i v3 Landscape Lighting User Manual


 
338 Administering volume snapshots
Creating instant snapshots
To disable resynchronization, specify the syncing=no attribute. This attribute is
not supported for space-optimized snapshots.
Note: The snapshot being refreshed must not be open to any application. For
example, any file system configured on the volume must first be unmounted.
It is possible to refresh a volume from an unrelated volume provided that their
sizes are compatible.
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
See “Controlling instant snapshot synchronization” on page 344 for more
information.
Reattaching an instant snapshot
Note: This operation is not supported for space-optimized instant snapshots.
Using the following command, some or all plexes of an instant snapshot may be
reattached to the specified original volume, or to a source volume in the
snapshot hierarchy above the snapshot volume:
# vxsnap [-g diskgroup] reattach snapvolume|snapvolume_set \
source=volume|volume_set [nmirror=number]
By default, all the plexes are reattached, which results in the removal of the
snapshot. If required, the number of plexes to be reattached may be specified as
the value assigned to the nmirror attribute.
Note: The snapshot being reattached must not be open to any application. For
example, any file system configured on the snapshot volume must first be
unmounted.
It is possible to reattach a volume to an unrelated volume provided that their
volume sizes and region sizes are compatible.
For example the following command reattaches one plex from the snapshot
volume, snapmyvol, to the volume, myvol:
# vxsnap -g mydg reattach snapmyvol source=myvol nmirror=1
While the reattached plexes are being resynchronized from the data in the
parent volume, they remain in the SNAPTMP state. After resynchronization is
complete, the plexes are placed in the SNAPDONE state. You can use the
vxsnap