Veritas Storage Foundation Intelligent Storage Provisioning 5.0.1 Administrators Guide, HP-UX 11i v3, First Edition, November 2009
# vxsnap [-g diskgroup] reattach snapvol source=vol \
[nmirror=number]
By default, all the plexes are attached, which results in the removal of the snapshot.
If required, the number of plexes to be attached may be specified as the value
assigned to the nmirror attribute.
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.
Only the plexes of a snapshot volume that was set up using ISP may be attached.
If the snapshot volume and the source volume lie in different storage pools, the
underlying disks of the snapshot volume are moved to the source volume’s storage
pool. However, if other objects in the snapshot volume’s storage pool are also
configured on these disks, the reattach command fails.
For example the following command attaches one plex from the snapshot volume,
snapmyvol, to the volume, myvol:
# vxsnap -g mydg reattach snapmyvol source=myvol nmirror=1
Reattaching a linked break-off snapshot volume
Unlike other types of snapshot, the reattachment operation for linked break-off
snapshot volumes does not return the plexes of the snapshot volume to the parent
volume. The link relationship is re-established that makes the snapshot volume
a mirror of the parent volume, and this allows the snapshot data to be
resynchronized. However, the snapshot volume is only readopted by its parent
volume if they are both in the same disk group.
To reattach a linked break-off snapshot volume, use the following form of the
vxsnap reattach command:
# vxsnap [-g snapdiskgroup] reattach snapvolume|snapvolume_set \
source=volume|volume_set [sourcedg=diskgroup]
The sourcedg attribute must be used to specify the data volume’s disk group if
this is different from the snapshot volume’s disk group, snapdiskgroup.
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 sizes
and region sizes are compatible.
For example the following command reattaches the snapshot volume, prepsnap,
in the disk group, snapdg, to the volume, myvol, in the disk group, mydg:
119Administering instant snapshots
Creating instant snapshots