HP 3PAR Command Line Interface Administrator's Manual: HP 3PAR OS 3.1.2 (QR482-96525, September 2013)

17 Using mySnapshot
Overview
This chapter describes how to use the mySnapshot utility. The mySnapshot utility enables safe and
easy copy and provisioning access to non-storage professionals such as DBAs, software developers,
and test engineers working with systems. Users can safely and easily restore their own copies of
test data in seconds, without relying on the storage administrator.
About mySnapshot
mySnapshot is a copy utility that uses an access control list to associate a user with certain
administrative rights and specified storage resources. Once these administrative rights are granted
for the specified resources, the user can easily replace and restore copies of their own test database
with the HP 3PAR CLI updatevv command. This enables users who normally only have Browse
rights on the system to be able to update specific snapshots with more recent snapshots, a right
usually only permitted for users with less restrictive roles. This enables faster results for developers
who need to have their snapshots refreshed and reduces the workload for storage administrators.
See “Learning About User Accounts” (page 16) for more information about user roles and rights.
Setting Administrative Rights
To enable a user to easily replace and restore copies of a test database using mySnapshot, it is
necessary to set administrative rights for that user. Administrative rights are set with the HP 3PAR
CLI setuseracl command. In order to use this command, you must have at least an Edit rights.
For additional details, see “Learning About User Accounts” (page 16).
The following example shows how to set administrative rights for user testuser1 to allow
testuser1 to update copies of virtual volumes test.rw1 and test.rw2:
cli% setuseracl testuser1 updatevv test.rw1 test.rw2
This command sets the access control list (ACL) for user testuser1, therefore enabling this user
access to the updatevv command for the specified volumes only (in this example, test.rw1
and test.rw2). The updatevv command is described further in the following section, “Replacing
Virtual Volume Snapshots” (page 170).
NOTE: In place of the specific virtual volume names used in the above example, it is also possible
to specify a pattern. See the HP 3PAR Command Line Interface Reference for additional details.
You can view current administrative rights for all users with the showuseracl command as follows:
cli% showuseracl
User Operation Object_Names_or_Patterns
testuser1 updatevv test.rw1, test.rw2
testuser2 updatevv avvro*
Replacing Virtual Volume Snapshots
A user with the appropriate rights set (see “Setting Administrative Rights” (page 170)) can use the
updatevv command to replace a copy of a test database.
CAUTION: It may be necessary to unmount the filesystems on the host before replacing snapshots
with mySnapshot. When replacing snapshots, the system automatically removes volume exports.
Some hosts may not react gracefully when volume exports are unexpectedly removed.
170 Using mySnapshot