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

iSCSI Gateway Service Administrator’s Guide 23
53-1000603-01
Mapping FC targets to iSCSI VTs
3
To generate an iSCSI VT for a specific FC target
1. Connect and log in to the switch.
2. Enter the iscsiCfg
--easycreate tgt command with the -w <port WWN> option to create an
iSCSI VT that contains only the storage attached to the specified WWN: The default value of
iqn.2002-12.com.brocade, is used for the fixed prefix, and the port WWN is used as the
user-defined portion of the IQN.
The following is an example.
switch:admin> iscsicfg --easycreate tgt -w 21:00:00:04:cf:e7:74:cf
IndexFC WWN iSCSIName Status
121:00:00:04:cf:e7:74:cf qn.2002-10.com.brocade:21:00:00:04:cf:e7:74:cf
Operation Succeeded
3. Enter the iscsicfg --show tgt command to display the status of the created iSCSI VTs:
The following is an example.
switch:admin> iscsicfg --show tgt
Number of records found: 1
Name: iqn.2002-10.com.brocade:21:00:00:04:cf:e7:74:cf
State/Status:Online/Defined
Auth. Method:None
Creating iSCSI VTs manually
Create iSCSI VTs manually when there are FC targets on the fabric that should not be mapped to an
iSCSI VT and if you want to map more than one target to the same iSCSI VT or a LUN to an iSCSI VT.
To create an iSCSI VT manually, complete the following procedures:
“Creating an iSCSI VT”
“Listing all available LUNs” on page 24
Adding LUNs to the iSCSI VT” on page 25
Creating an iSCSI VT
This procedure creates an undefined iSCSI VT, that is, an iSCSI VT that contains no LUNs. An IQN is
defined to identify the iSCSI VT. The IQN has a fixed, predefined prefix, and a user-defined portion.
The default IQN prefix is
iqn.2002-12.com.brocade. Use an IQN for that is unique across the
fabric and IP network. See “Identifying iSCSI components” on page 5 for more information about
IQNs.