HP StorageWorks SAN Director Installation Guide (A7393-90009, May 2007)
Installing the optional B-Series iSCSI Director Blade152
(IQN) is an iSCSI node name in readable notation. The name always starts with “iqn” and includes
the uses Internet domain and the year and month on which the Internet domain was assigned:
iqn.yyyy-mm.<reverse of DNS>:<optional unique SCSI string>
Below is an example of a virtual target node name which follows the above naming convention, not
including the optional SCSI string):
Example: iqn.2005-10.com.company:tgt1
iscsicfg [--create | --modify | --delete | --clear | --show | --commit] tgt
args
To create a virtual target, use the iscsicfg --create command with the -tgt and -t operands:
After creating the iSCSI target, add the FC devices and the corresponding LUNs to it as follows:
iscsicfg [--add] lun -t target_name -w fc_wwn -l LUN_map args
Then verify the addition of devices and LUNs:
iscsicfg [--show] lun -t target_name
Use the fcLunQuery command to find out which LUNs are available to add to the iSCSI target:
The list of available FC targets in the fabric with the LUN configuration can be displayed using the
fcLunQuery command, which lists the LUN IDs of the LUN(s) that are exposed. The WWN
argument is optional. If no argument is specified, LUNs for all accessible targets in the fabric are
displayed. You can specify either port or node WWNs.
fclunquery [-w wwn]
To view the available LUNs, use the fcLunQuery command:
Once you have the port WWN of the LUN you want to add to the iSCSI target, you can add the
LUN map to the target with the specified target name. FC WWN provides the port WWN of the
physical FC target and the LUN map maps the physical FC LUNs to virtual iSCSI LUNs. The LUN
mapping is specified as a pair: virtual LUNs:physical LUNs
switch:admin> iscsicfg –-create tgt –t iqn.2005-10.com.company:tgt1
Operation Succeeded
switch:admin> fclunquery
Target Index: 1
Target Node WWN: 50:05:07:65:05:03:f9:39
Target Port WWN: 50:05:07:65:05:83:f9:39
Target Pid: 144e8
Number of LUNs returned by query: 1
LUN ID: 0x00