HP StorageWorks 8/80 HP StorageWorks Fabric OS 6.1.x administrator guide (5697 - Page 265

Mapping LUNs on a specific port to an iSCSI VT

Page 265 highlights

6. Enter the iscsiCfg --show lun command with -t options to verify that the LUN has been added to the iSCSI VT, where -t is the IQN that identifies the iSCSI VT. The following is an example. switch:admin> iscsicfg --show lun -t iqn.2002-12.com.brocade:example-disk001 Number of targets found: 1 Target: iqn.2006-10.com.example:disk001 Number of LUN Maps: 1 FC WWN Virtual LUN(s) 21:00:00:04:cf:e7:73:7e 0 Mapping LUNs on a specific port to an iSCSI VT Physical LUN(s) 0 1. Connect to the switch and log in. 2. Enter the iscsiCfg --add lun command with -t , -w , and -l options to add LUNs attached to a specific port device to an iSCSI VT where: • -t specifies the unique IQN name for the iSCSI VT in the format: iqn.2002-12.com.brocade:. • -w specifies the port WWN of the physical FC target. • -l maps the physical FC LUNs to virtual iSCSI LUNs and is specified as a pair: LUNs:physical LUNs The following example maps two LUNs attached to port 2f:ff:00:06:2b:0d:12:99 to an iSCSI VT named iqn.2002-12.com.brocade:example-disk001. switch:admin> iscsicfg --add lun -t iqn.2002-12.com.brocade:example-disk001 \ -w 2f:ff:00:06:2b:0d:12:99 -l 1-2:0-1 The operation completed successfully. switch:admin> iscsicfg --show lun -t iqn.2002-12.com.brocade:example-disk001 Number of targets found: 1 Target: iqn.2002-12.com.brocade:example-disk001 Number of LUN Maps: 2 FC WWN Virtual LUN(s) 21:00:00:04:cf:e7:73:7e 0 2f:ff:00:06:2b:0d:12:99 1-2 Deleting LUNs from an iSCSI VT Physical LUN(s) 0 0-1 You can delete individual LUNs, a list or range of LUNs, or all LUNs associated with an iSCSI VT. 1. Connect to the switch and log in. 2. Enter the iscsiCfg --delete lun command with -t , -w , and -l options to delete a LUN or LUNs where, -t Specifies the IQN name for the iSCSI VT in the format: iqn.2002-12.com.brocade:, where user_defined_name may be any unique string up to 12 alpha-numeric characters long. -w Specifies the port WWN of the physical FC target. If this parameter is used without using -l to identify LUNs for deletion, all LUNs for the specified iSCSI VT are deleted, and the FC target is removed from the iSCSI VT mapping. -l Specifies the LUN or LUNs that you want to delete. This can be an individual number, and mix of numbers, or a range. The LUNs must be in the existing target data base. The following is an example. switch:admin>iscsicfg --delete lun -t iqn.2005-10.com.brocade:tgt1 -l 2-4,5 The operation completed successfully 3. Enter the iscsiCfg --commit all command to commit the changes to the database. If the LUN deletion is one of several configuration changes, you may want to refer to "Committing the iSCSI-related configuration" on page 269 for extra detail on the commit process. Fabric OS 6.1.x administrator guide 265

  • 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
  • 280
  • 281
  • 282
  • 283
  • 284
  • 285
  • 286
  • 287
  • 288
  • 289
  • 290
  • 291
  • 292
  • 293
  • 294
  • 295
  • 296
  • 297
  • 298
  • 299
  • 300
  • 301
  • 302
  • 303
  • 304
  • 305
  • 306
  • 307
  • 308
  • 309
  • 310
  • 311
  • 312
  • 313
  • 314
  • 315
  • 316
  • 317
  • 318
  • 319
  • 320
  • 321
  • 322
  • 323
  • 324
  • 325
  • 326
  • 327
  • 328
  • 329
  • 330
  • 331
  • 332
  • 333
  • 334
  • 335
  • 336
  • 337
  • 338
  • 339
  • 340
  • 341
  • 342
  • 343
  • 344
  • 345
  • 346
  • 347
  • 348
  • 349
  • 350
  • 351
  • 352
  • 353
  • 354
  • 355
  • 356
  • 357
  • 358
  • 359
  • 360
  • 361
  • 362
  • 363
  • 364
  • 365
  • 366
  • 367
  • 368
  • 369
  • 370
  • 371
  • 372
  • 373
  • 374
  • 375
  • 376
  • 377
  • 378
  • 379
  • 380
  • 381
  • 382
  • 383
  • 384
  • 385
  • 386
  • 387
  • 388
  • 389
  • 390
  • 391
  • 392
  • 393
  • 394
  • 395
  • 396
  • 397
  • 398
  • 399
  • 400
  • 401
  • 402
  • 403
  • 404
  • 405
  • 406
  • 407
  • 408
  • 409
  • 410
  • 411
  • 412
  • 413
  • 414
  • 415
  • 416
  • 417
  • 418
  • 419
  • 420
  • 421
  • 422
  • 423
  • 424
  • 425
  • 426
  • 427
  • 428
  • 429
  • 430
  • 431
  • 432
  • 433
  • 434
  • 435
  • 436
  • 437
  • 438
  • 439
  • 440
  • 441
  • 442
  • 443
  • 444
  • 445
  • 446
  • 447
  • 448
  • 449
  • 450
  • 451
  • 452
  • 453
  • 454
  • 455
  • 456
  • 457
  • 458
  • 459
  • 460
  • 461
  • 462
  • 463
  • 464
  • 465
  • 466
  • 467
  • 468
  • 469
  • 470
  • 471
  • 472
  • 473
  • 474
  • 475
  • 476
  • 477
  • 478
  • 479
  • 480
  • 481
  • 482
  • 483
  • 484
  • 485
  • 486
  • 487
  • 488
  • 489
  • 490
  • 491
  • 492

Fabric OS 6.1.x administrator guide
265
6.
Enter the
iscsiCfg
--
show
lun
command with
–t
<
IQN
>
options to verify that the LUN has been
added to the iSCSI VT, where -t is the IQN that identifies the iSCSI VT.
The following is an example.
switch:admin>
iscsicfg --show lun -t iqn.2002-12.com.brocade:example-disk001
Number of targets found: 1
Target: iqn.2006-10.com.example:disk001
Number of LUN Maps: 1
FC WWN
Virtual LUN(s)
Physical LUN(s)
21:00:00:04:cf:e7:73:7e
0
0
Mapping LUNs on a specific port to an iSCSI VT
1.
Connect to the switch and log in.
2.
Enter the
iscsiCfg
--
add
lun
command with
–t <IQN>
,
–w <port WWN>
,
and
–l <n:n>
options to add LUNs attached to a specific port device to an iSCSI VT where:
-t
specifies the unique IQN name for the iSCSI VT in the format:
iqn.2002-12.com.brocade
:<user_defined_name>
.
-w
specifies the port WWN of the physical FC target.
-l
maps the physical FC LUNs to virtual iSCSI LUNs and is specified as a pair:
LUNs:physical LUNs
The following example maps two LUNs attached to port 2f:ff:00:06:2b:0d:12:99 to an iSCSI VT
named iqn.2002-12.com.brocade:example-disk001.
switch:admin>
iscsicfg --add lun -t iqn.2002-12.com.brocade:example-disk001 \
-w 2f:ff:00:06:2b:0d:12:99 -l 1-2:0-1
The operation completed successfully.
switch:admin>
iscsicfg --show
lun -t
iqn.2002-12.com.brocade:example-disk001
Number of targets found: 1
Target:
iqn.2002-12.com.brocade:example-disk001
Number of LUN Maps: 2
FC WWN
Virtual LUN(s)
Physical LUN(s)
21:00:00:04:cf:e7:73:7e
0
0
2f:ff:00:06:2b:0d:12:99
1-2
0-1
Deleting LUNs from an iSCSI VT
You can delete individual LUNs, a list or range of LUNs, or all LUNs associated with an iSCSI VT.
1.
Connect to the switch and log in.
2.
Enter the
iscsiCfg
--
delete
lun
command with
–t
<
target
IQN
>,
–w
<
port WWN
>,
and
–l
<
LUN list
>
options to delete a LUN or LUNs where,
-t <t
arget IQN
>Specifies the IQN name for the iSCSI VT in the format:
iqn.2002-12.com.brocade
:<user_defined_name>
, where user_defined_name may be
any unique string up to 12 alpha-numeric characters long.
-w <
port WWN
>Specifies the port WWN of the physical FC target. If this parameter is used without
using -l to identify LUNs for deletion, all LUNs for the specified iSCSI VT are deleted,
and the FC target is removed from the iSCSI VT mapping.
-l <
LUN list
>
Specifies the LUN or LUNs that you want to delete. This can be an individual number,
and mix of numbers, or a range. The LUNs must be in the existing target data base.
The following is an example.
switch:admin>
iscsicfg --delete lun -t iqn.2005-10.com.brocade:tgt1 -l 2-4,5
The operation completed successfully
3.
Enter the
iscsiCfg
--
commit all
command to commit the changes to the database. If the LUN
deletion is one of several configuration changes, you may want to refer to ”
Committing the
iSCSI-related configuration
” on page 269 for extra detail on the commit process.