Brocade iSCSI Gateway Service Administrator's Guide (53-1000603-01, October 2007)

iSCSI Gateway Service Administrator’s Guide 25
53-1000603-01
Mapping FC targets to iSCSI VTs
3
Target Pid: 120d9
Number of LUNs returned by query: 1
LUN ID: 0x00
Target Index: 3
Target Node WWN: 2f:ff:00:06:2b:0d:12:99
Target Port WWN: 2f:ff:00:06:2b:0d:12:99
Target Pid: 12300
Number of LUNs returned by query: 16
LUN ID: 0x00
LUN ID: 0x01
LUN ID: 0x02
LUN ID: 0x03
LUN ID: 0x04
LUN ID: 0x05
LUN ID: 0x06
LUN ID: 0x07
LUN ID: 0x08
LUN ID: 0x09
LUN ID: 0x0a
LUN ID: 0x0b
LUN ID: 0x0c
LUN ID: 0x0d
LUN ID: 0x0e
LUN ID: 0x0f
Adding LUNs to the iSCSI VT
The iscsiCfg --add lun command can be used to add the port WWN of the LUN to the iSCSI VT. Up
to 256 LUNs can be mapped to an iSCSI VT.
To add LUNs 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 an FC device to an existing 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 is an example.
switch:admin> iscsicfg --add lun -t iqn.2006-10.com.example:disk001 \
-w 21:00:00:04:cf:e7:73:7e -l 0:0
The operation completed successfully.
3. 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.