Brocade iSCSI Gateway Service Administrator's Guide - Supporting Fabric OS v5.3.0 (53-1000440-01, June 2007)
22 iSCSI Gateway Service Administrator’s Guide
Publication Number: 53-1000440-01
Mapping FC targets to iSCSI VTs
3
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.
The following is an example.
switch:admin> iscsicfg --show lun -t iqn.2006-10.com.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
The iscsiCfg --add lun command can be used to map LUNs attached to a specific port to an iSCSI
VT.
To map 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 an 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