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

110 Administering instant snapshots
Creating instant snapshots
Creating multiple instant snapshots
Note: In these examples, all snapshot volumes and any cache volumes must be
prepared in advance.
See “Creating a volume for use as a full-sized instant or linked break-off
snapshot” on page 96.
See “Creating a shared cache volume and preparing space-optimized snapshots
on page 97.
To make it easier to create snapshots of several volumes at the same time, the
vxsnap make command accepts multiple tuples that define the source and
snapshot volumes names as their arguments. For example, to create three
instant snapshots, each with the same redundancy, the following form of the
command can be used:
# vxsnap [-g
diskgroup
] make \
source=
vol1
/snapvol=
snapvol1
\
source=
vol2
/snapvol=
snapvol2
\
source=
vol3
/snapvol=
snapvol3
The specified source volumes (
vol1
,
vol2
and so on) may be the same volume
or different volumes.
The vxsnap make command allows the snapshots to be of different types as
shown here:
# vxsnap [-g
diskgroup
] make \
source=
vol1
/snapvol=
snapvol1
\
source=
vol2
/snapvol=
snapvol2
In this example, snapvol1 is a full-sized snapshot, and snapvol2 is a space-
optimized snapshot.
Removing a linked break-off snapshot volume
To remove a linked break-off snapshot volume from a volume, use this
command:
# vxsnap [-g
diskgroup
] rmmir
volume
|
volume_set
mirvol=
snapvol
\
[mirdg=
snapdiskgroup
]
The mirvol and optional mirdg attributes specify the snapshot volume, snapvol,
and its disk group, snapdiskgroup. For example, the following command
removes a linked snapshot volume, prepsnap, from the volume, vol1:
# vxsnap -g mydg rmmir vol1 mirvol=prepsnap mirdg=mysnapdg