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

20 iSCSI Gateway Service Administrator’s Guide
53-1000603-01
Mapping FC targets to iSCSI VTs
3
To display the IQN prefix
1. Connect and log in to the switch.
2. Enter the iscsiswCfg - -showgw command.
The following is an example.
iscsiSaturn1:root> iscsiswcfg --showgw
Target name is: iqn.2007-12.com.brocade
The operation completed successfully
Mapping FC targets to iSCSI VTs
You create iSCSI VTs using the LUN values of FC targets. The FC target must be accessible from the
iSCSI gateway.
Use one of the following methods to create iSCSI VTs:
Automatically creating iSCSI Virtual targets”
“Creating iSCSI VTs manually” on page 23
Automatically creating iSCSI Virtual targets
An iSCSI VT is created using target LUNs from the attached FC network. LUNs are mapped to iSCSI
VTs by creating unique iSCSI Qualified Names (IQNs) for each target.
You can create iSCSI VTs by using the iscsiCfg
--easycreate tgt command. There are two options.
An iSCSI VT may be created for every FC target. IQNs are created automatically, using the port
WWNs as the user defined portion of the IQN.
A port WWN may be specified to create one ISCSI VT with all LUNs for that FC target. The WWN
of the FC target is used as the user defined portion of the IQN.
To generate iSCSI VTs for every FC target
1. Connect and log in to the switch.
2. Enter the iscsiCfg
--easycreate tgt command with no options.
The command returns a prompt indicating that this could be a long running operation.
3. Enter y or yes to continue. IQNs are created. The default value of
iqn.2002-12.com.brocade,
is used for the prefix unless it has been changed by using the iscsiswcfg - -modifygw -t
<tgtname> command. The port WWN is used as the user-defined portion of the IQN.
After mapping iSCSI targets do not move the targets out of Administrative Domain 0 (AD0), unless
you then explicitly add them back to AD0.