Veritas Volume Manager 5.0.1 Administrator's Guide, HP-UX 11i v3, First Edition, November 2009

To create and manage a linked break-off snapshot
1
Use the following command to link the prepared snapshot volume, snapvol,
to the data volume:
# vxsnap [-g diskgroup] [-b] addmir volume mirvol=snapvol \
[mirdg=snapdg]
The optional mirdg attribute can be used to specify the snapshot volumes
current disk group, snapdg. The -b option can be used to perform the
synchronization in the background. If the -b option is not specified, the
command does not return until the link becomes ACTIVE.
For example, the following command links the prepared volume, prepsnap,
in the disk group, mysnapdg, to the volume, vol1, in the disk group, mydg:
# vxsnap -g mydg -b addmir vol1 mirvol=prepsnap mirdg=mysnapdg
If the -b option is specified, you can use the vxsnap snapwait command to
wait for the synchronization of the linked snapshot volume to complete, as
shown in this example:
# vxsnap -g mydg snapwait vol1 mirvol=prepsnap mirdg=mysnapvoldg
2
To create a linked break-off snapshot, use the following form of the vxsnap
make command.
# vxsnap [-g diskgroup] make source=volume/snapvol=snapvol\
[/snapdg=snapdiskgroup]
The snapdg attribute must be used to specify the snapshot volumes disk
group if this is different from that of the data volume.
For example, to use the prepared volume, prepsnap, as the snapshot for the
volume, vol1, in the disk group, mydg, use the following command:
# vxsnap -g mydg make source=vol1/snapvol=prepsnap/snapdg=mysnapdg
3
Use fsck (or some utility appropriate for the application running on the
volume) to clean the temporary volumes contents. For example, you can use
this command with a VxFS file system:
# fsck -F vxfs /dev/vx/rdsk/diskgroup/snapshot
The specified device must have a valid entry in the /etc/fstab file.
379Administering volume snapshots
Creating instant snapshots