Dell PowerVault MD3200 CLI Guide - Page 265

Create, show string, Create RAID 5 Virtual Disk 7 on existing, Disk Group 1, create virtualDisk

Page 265 highlights

//Note: For disk groups that use all available capacity, the last virtual disk on the disk group is created using all remaining capacity by omitting the capacity=virtualDiskCapacity parameter create virtualDisk diskGroup=1 raidLevel=5 userLabel="7" owner=0 segmentSize=16 capacity=2GB; show "Setting additional attributes for virtualDisk 7"; //Configuration settings that cannot be set during virtualDisk creation set virtualDisk["7"] mediaScanEnabled=false; set virtualDisk["7"] consistencyCheckEnabled= false; set virtualDisk["7"] modificationPriority=high; This example shows blank lines between the lines beginning with Show, Create, //Note, and create. The blank lines are included in this example only for clarity. Each command is actually written on one line in the script file; however, the size of this page causes the command text to wrap. You might want to include blank lines in your script files to separate blocks of commands or make a comment more outstanding. You can do this by entering two forward slashes (//), which causes the script engine to treat the line as a comment. The first line of text is the show string command. This command displays text bounded by quotation marks (" ") on a monitor screen when the script file runs. In this example, the text Create RAID 5 Virtual Disk 7 on existing Disk Group 1 serves as a title describing the expected results of running this script file. The line beginning //Create is a comment explaining that the purpose of this script file is to create a new virtual disk by using the create virtualDisk command on an existing disk group. The line beginning //Note: is a comment in the script file explaining that the size of the last virtual disk created uses all of the available capacity because the capacity parameter is not used. 264 Sample Script Files

  • 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
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245
  • 246
  • 247
  • 248
  • 249
  • 250
  • 251
  • 252
  • 253
  • 254
  • 255
  • 256
  • 257
  • 258
  • 259
  • 260
  • 261
  • 262
  • 263
  • 264
  • 265
  • 266
  • 267
  • 268
  • 269
  • 270
  • 271
  • 272
  • 273
  • 274
  • 275
  • 276
  • 277
  • 278
  • 279

264
Sample Script Files
//Note: For disk groups that use all available
capacity, the last virtual disk on the disk group
is created using all remaining capacity by
omitting the capacity=virtualDiskCapacity
parameter
create virtualDisk diskGroup=1 raidLevel=5
userLabel="7" owner=0 segmentSize=16 capacity=2GB;
show "Setting additional attributes for
virtualDisk 7";
//Configuration settings that cannot be set during
virtualDisk creation
set virtualDisk["7"] mediaScanEnabled=false;
set virtualDisk["7"] consistencyCheckEnabled=
false;
set virtualDisk["7"] modificationPriority=high;
This example shows blank lines between the lines beginning with
Show
,
Create
,
//Note
, and
create
. The blank lines are included in this example only
for clarity. Each command is actually written on one line in the script file;
however, the size of this page causes the command text to wrap. You might
want to include blank lines in your script files to separate blocks of commands
or make a comment more outstanding. You can do this by entering two
forward slashes (
//
), which causes the script engine to treat the line as a
comment.
The first line of text is the
show string
command. This command displays
text bounded by quotation marks (" ") on a monitor screen when the script
file runs. In this example, the text
Create RAID 5 Virtual Disk 7 on existing
Disk Group 1
serves as a title describing the expected results of running this
script file.
The line beginning
//Create
is a comment explaining that the purpose of this
script file is to create a new virtual disk by using the
create virtualDisk
command on an existing disk group.
The line beginning
//Note:
is a comment in the script file explaining that the
size of the last virtual disk created uses all of the available capacity because
the
capacity
parameter is not used.