Brocade iSCSI Gateway Service Administrator's Guide - Supporting Fabric OS v5.3.0 (53-1000440-01, June 2007)
20 iSCSI Gateway Service Administrator’s Guide
Publication Number: 53-1000440-01
Mapping FC targets to iSCSI VTs
3
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” on page 20
• “Listing all available LUNs” on page 21
• “Adding LUNs to the iSCSI VT” on page 22
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 4 for more information about
IQNs.
To create an iSCSI VT
1. Connect and log in to the switch.
2. Enter the iscsiCfg
--create tgt command with the -t <IQN> option. The <IQN> value is an iSCSI
Qualified Name entered in the form
type.date.naming authority:<user_defined>. The
following is an example, using the Brocade default for the
type.date.naming authority:
prefix portion of the IQN, followed by a WWN as the user defined portion.
Type Date Auth User defined
+--++------++----------++-----------------------+
iqn.2002-12.com.brocade:10:00:00:05:1e:aa:bb:cc
Every iSCSI initiator and iSCSI VT on the same IP network and SAN must have a unique IQN.
The default for the
type.date.naming authority: prefix portion may be changed using the
iscsiswcfg
--modifygw -t <tgtname> command. Your organization may suggest or require a
specific format for the prefix portion of the IQN. The user defined portion may take any form.
The following is an example.
switch:admin> iscsicfg --create tgt -t iqn:2002-12.com.brocade.example:disk001
The operation completed successfully.
3. To verify the iSCSI VTs, enter the iscsiCfg --show tgt command with the -t <IQN> and -v
options:
The following is an example.
switch:admin> iscsicfg --show tgt -t iqn:2002-12.com.brocade.example:disk001
-v
Number of records found: 1
Name: iqn.2002-10.com.brocade.example:disk001
State/Status: Offline/Defined
Auth. Method: None