17 Using Mysnapshot; Overview; About Mysnapshot; Setting Administrative Rights - HP 3PAR StoreServ 7200 2-node Administrator's Manual

Hp 3par command line interface administrator's manual: hp 3par os 3.1.2 (qr482-96525, september 2013)
Hide thumbs Also See for 3PAR StoreServ 7200 2-node:
Table of Contents

Advertisement

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)

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
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,
Virtual Volume Snapshots" (page
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
testuser1
testuser2

Replacing Virtual Volume Snapshots

A user with the appropriate rights set (see
updatevv command to replace a copy of a test database.
CAUTION:
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
"Learning About User Accounts" (page
170).
Operation Object_Names_or_Patterns
updatevv test.rw1, test.rw2
updatevv avvro*
It may be necessary to unmount the filesystems on the host before replacing snapshots
for more information about user roles and rights.
"Setting Administrative Rights" (page
16).
"Replacing
170)) can use the

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents