HP 3PAR InForm OS 3.1.1 CLI Administrator's Manual
Replacing Virtual Volume Snapshots
A user with the appropriate rights set (see “Setting Administrative Rights” (page 141)) can use the
updatevv command to replace a copy of a test database.
CAUTION: It may be necessary to unmount the filesystem(s) on the host before replacing snapshots
with mySnapshot. In replacing snapshots, the system automatically removes volume exports. Some
hosts may not react gracefully when volume exports are unexpectedly removed.
NOTE: The updatevv command can also update sets of virtual volumes. For a complete list of
options available for the updatevv command, see the HP 3PAR InForm OS Command Line
Interface Reference and InForm OS CLI Help.
Replacing a Read-Only Snapshot
The following example shows how to replace a read-only snapshot volume with a new read-only
snapshot volume.
In this example:
• test is a base volume (or a read-write snapshot). This volume holds the database.
• test.ro is a read-only snapshot of test. This snapshot is a read-only copy of the database.
• testuser1 is a user with updatevv rights for volume test.ro See “Setting Administrative
Rights” (page 141) for instructions on setting rights for replacing a read-only snapshots.
• When test.ro needs to be updated, testuser1 unmounts the filesystem on the host and
then issues the following InForm OS CLI command to replace test.ro with a new read-only
copy:
cli% updatevv test.ro
This command removes test.ro and replaces it with a new read-only snapshot of test.
This new volume is also called test.ro.
NOTE: In this example, test.ro can have a VLUN associated with it. The command will
remember the VLUN, remove the snapshot, create the new snapshot, and recreate the VLUN with
the new snapshot.
After the snapshot is replaced, testuser1 must remount the filesystem on the host.
Replacing a Read-Write Snapshot
The following example shows how to replace a read-write snapshot volume with a new read-write
snapshot volume.
In this example:
• test is a base volume (or a read-write snapshot).This volume holds the database.
• test.ro1 is a read-only snapshot of test. This snapshot is the reference copy of the
database.
• test.rw1 is a read-write snapshot of test.ro1. This is a snapshot of the reference copy
of the database, created for development purposes.
142 Using mySnapshot