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

Waiting for a Task

Page 129 highlights

For a complete list of options available for the settask command, see the HP 3PAR Command Line Interface Reference and the HP 3PAR CLI Help. Waiting for a Task You can use the task ID and the waittask command to ask the system to wait for a task to complete before returning a command prompt. This prevents you from running too many tasks at once. If you use the waittask -v option, the command displays detailed task status and progress messages as the task executes. For example: cli% waittask -v 454 Id Type Name 454 tune_vv testvol Active Status Phase Step -----StartTime---- -----FinishTime-2/3 0/4 Fri Apr 29 11:42:06 PDT 2005 Detailed status: {Fri Apr 29 11:42:06 PDT 2005} Created task. {Fri Apr 29 11:42:06 PDT 2005} Tuning VV 'testvol'. {Fri Apr 29 11:42:06 PDT 2005} Scheduled region move of 256MB from (testvol.usr.1:0MB) to (testvol.usr.2:0MB). {Fri Apr 29 11:42:06 PDT 2005} Scheduled region move of 256MB from (testvol.usr.0:0MB) to (testvol.usr.3:0MB). {Fri Apr 29 11:42:06 PDT 2005} Scheduled region move of 256MB from (testvol.usr.1:256MB) to (testvol.usr.2:256MB). {Fri Apr 29 11:42:06 PDT 2005} Scheduled region move of 256MB from (testvol.usr.0:256MB) to (testvol.usr.3:256MB). {Fri Apr 29 11:42:06 PDT 2005} Storing task data for later restarts. {Fri Apr 29 11:42:06 PDT 2005} Started region move of 256MB from (testvol.usr.1:0MB) to (testvol.usr.2:0MB). {Fri Apr 29 11:42:06 PDT 2005} Started region move of 256MB from (testvol.usr.0:0MB) to (testvol.usr.3:0MB). {Fri Apr 29 11:42:06 PDT 2005} Started region move of 256MB from (testvol.usr.1:256MB) to (testvol.usr.2:256MB). {Fri Apr 29 11:42:06 PDT 2005} Started region move of 256MB from (testvol.usr.0:256MB) to (testvol.usr.3:256MB). {Fri Apr 29 11:42:19 PDT 2005} Completed region move of 256MB from (testvol.usr.1:256MB) to (testvol.usr.2:256MB) in 13 seconds. {Fri Apr 29 11:42:19 PDT 2005} Completed region move of 256MB from (testvol.usr.1:0MB) to (testvol.usr.2:0MB) in 13 seconds. {Fri Apr 29 11:42:19 PDT 2005} Completed region move of 256MB from (testvol.usr.0:0MB) to (testvol.usr.3:0MB) in 13 seconds. {Fri Apr 29 11:42:19 PDT 2005} Completed region move of 256MB from (testvol.usr.0:256MB) to (testvol.usr.3:256MB) in 13 seconds. {Fri Apr 29 11:42:19 PDT 2005} Waiting to switch regions to their new locations. {Fri Apr 29 11:42:19 PDT 2005} Switching regions to their new locations. {Fri Apr 29 11:42:19 PDT 2005} Reclaiming unused LD space. {Fri Apr 29 11:42:19 PDT 2005} Deleted LD testvol.usr.1. {Fri Apr 29 11:42:19 PDT 2005} Deleted LD testvol.usr.0. {Fri Apr 29 11:42:19 PDT 2005} Cleaning up task data for later restarts. {Fri Apr 29 11:42:19 PDT 2005} Completed region moves. Moved 4 regions for a total of 1024 MB in 13 seconds. NOTE: To cancel the waittask command, use CTRL-C. This stops the waittask command and returns a command prompt, but does not affect the task that is running in the background. Task Manager 129

  • 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

For a complete list of options available for the
settask
command, see the
HP 3PAR Command
Line Interface Reference
and the HP 3PAR CLI Help.
Waiting for a Task
You can use the task ID and the
waittask
command to ask the system to wait for a task to
complete before returning a command prompt. This prevents you from running too many tasks at
once. If you use the
waittask -v
option, the command displays detailed task status and progress
messages as the task executes.
For example:
cli% waittask -v 454
Id
Type
Name
Status Phase Step -----StartTime---- -----FinishTime--
454 tune_vv testvol Active
2/3
0/4 Fri Apr 29 11:42:06 PDT 2005
Detailed status:
{Fri Apr 29 11:42:06 PDT 2005} Created
task.
{Fri Apr 29 11:42:06 PDT 2005} Tuning
VV 'testvol'.
{Fri Apr 29 11:42:06 PDT 2005} Scheduled
region move of 256MB from (testvol.usr.1:0MB)
to (testvol.usr.2:0MB).
{Fri Apr 29 11:42:06 PDT 2005} Scheduled
region move of 256MB from (testvol.usr.0:0MB)
to (testvol.usr.3:0MB).
{Fri Apr 29 11:42:06 PDT 2005} Scheduled
region move of 256MB from
(testvol.usr.1:256MB) to (testvol.usr.2:256MB).
{Fri Apr 29 11:42:06 PDT 2005} Scheduled
region move of 256MB from
(testvol.usr.0:256MB) to (testvol.usr.3:256MB).
{Fri Apr 29 11:42:06 PDT 2005} Storing
task data for later restarts.
{Fri Apr 29 11:42:06 PDT 2005} Started
region move of 256MB from (testvol.usr.1:0MB)
to (testvol.usr.2:0MB).
{Fri Apr 29 11:42:06 PDT 2005} Started
region move of 256MB from (testvol.usr.0:0MB)
to (testvol.usr.3:0MB).
{Fri Apr 29 11:42:06 PDT 2005} Started
region move of 256MB from
(testvol.usr.1:256MB) to (testvol.usr.2:256MB).
{Fri Apr 29 11:42:06 PDT 2005} Started
region move of 256MB from
(testvol.usr.0:256MB) to (testvol.usr.3:256MB).
{Fri Apr 29 11:42:19 PDT 2005} Completed
region move of 256MB from
(testvol.usr.1:256MB) to (testvol.usr.2:256MB) in 13 seconds.
{Fri Apr 29 11:42:19 PDT 2005} Completed
region move of 256MB from (testvol.usr.1:0MB)
to (testvol.usr.2:0MB) in 13 seconds.
{Fri Apr 29 11:42:19 PDT 2005} Completed
region move of 256MB from (testvol.usr.0:0MB)
to (testvol.usr.3:0MB) in 13 seconds.
{Fri Apr 29 11:42:19 PDT 2005} Completed
region move of 256MB from
(testvol.usr.0:256MB) to (testvol.usr.3:256MB) in 13 seconds.
{Fri Apr 29 11:42:19 PDT 2005} Waiting to
switch regions to their new locations.
{Fri Apr 29 11:42:19 PDT 2005} Switching
regions to their new locations.
{Fri Apr 29 11:42:19 PDT 2005} Reclaiming
unused LD space.
{Fri Apr 29 11:42:19 PDT 2005} Deleted
LD testvol.usr.1.
{Fri Apr 29 11:42:19 PDT 2005} Deleted
LD testvol.usr.0.
{Fri Apr 29 11:42:19 PDT 2005} Cleaning up task data for later restarts.
{Fri Apr 29 11:42:19 PDT 2005} Completed
region moves. Moved 4 regions for a total
of 1024 MB in 13 seconds.
NOTE:
To cancel the
waittask
command, use
CTRL-C
. This stops the
waittask
command
and returns a command prompt, but does not affect the task that is running in the background.
Task Manager
129