HP 3PAR StoreServ 7400 2-node HP 3PAR Command Line Interface Administrator& - Page 170

Using mySnapshot, Overview, About mySnapshot, Setting Administrative Rights

Page 170 highlights

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204

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