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

24 iSCSI Gateway Service Administrator’s Guide
53-1000603-01
Mapping FC targets to iSCSI VTs
3
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
Listing all available LUNs
The fcLunQuery command displays a list of connected FC targets and shows the LUN
configurations.
To display LUN information
1. Connect and log in to the switch.
2. Enter the fcLunQuery command.
The following is an example.
switch:admin> fclunquery
Target Index: 1
Target Node WWN: 20:00:00:04:cf:e7:74:cf
Target Port WWN: 21:00:00:04:cf:e7:74:cf
Target Pid: 120d6
Number of LUNs returned by query: 1
LUN ID: 0x00
Target Index: 2
Target Node WWN: 20:00:00:04:cf:e7:73:7e
Target Port WWN: 21:00:00:04:cf:e7:73:7e