HP A7533A HP StorageWorks Fabric OS 6.1.1 administrator guide (5697-0235, Dece - Page 270
Mapping LUNs on a specific port to an iSCSI VT
![]() |
UPC - 829160830858
View all HP A7533A manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 270 highlights
6. Issue the iscsiCfg --show lun command with -t options to verify that the LUN has been added to the iSCSI VT, where -t is the IQN that identifies the iSCSI VT. For example. switch:admin> iscsicfg --show lun -t iqn.2002-12.com.brocade:example-disk001 Number of targets found: 1 Target: iqn.2006-10.com.example:disk001 Number of LUN Maps: 1 FC WWN Virtual LUN(s) 21:00:00:04:cf:e7:73:7e 0 Mapping LUNs on a specific port to an iSCSI VT Physical LUN(s) 0 1. Connect to the switch and log in. 2. Issue the iscsiCfg --add lun command with -t , -w , and -l options to add LUNs attached to a specific port device to an iSCSI VT where: • -t specifies the unique IQN name for the iSCSI VT in the format: iqn.2002-12.com.brocade:. • -w specifies the port WWN of the physical FC target. • -l maps the physical FC LUNs to virtual iSCSI LUNs and is specified as a pair: LUNs:physical LUNs The following example maps two LUNs attached to port 2f:ff:00:06:2b:0d:12:99 to an iSCSI VT named iqn.2002-12.com.brocade:example-disk001: switch:admin> iscsicfg --add lun -t iqn.2002-12.com.brocade:example-disk001 \ -w 2f:ff:00:06:2b:0d:12:99 -l 1-2:0-1 The operation completed successfully. switch:admin> iscsicfg --show lun -t iqn.2002-12.com.brocade:example-disk001 Number of targets found: 1 Target: iqn.2002-12.com.brocade:example-disk001 Number of LUN Maps: 2 FC WWN Virtual LUN(s) 21:00:00:04:cf:e7:73:7e 0 2f:ff:00:06:2b:0d:12:99 1-2 Deleting LUNs from an iSCSI VT Physical LUN(s) 0 0-1 You can delete individual LUNs, a list or range of LUNs, or all LUNs associated with an iSCSI VT. 1. Connect to the switch and log in. 2. Issue the iscsiCfg --delete lun command with -t , -w , and -l options to delete a LUN or LUNs where, -t Specifies the IQN name for the iSCSI VT in the format: iqn.2002-12.com.brocade:, where user_defined_name may be any unique string up to 12 alpha-numeric characters long. -w Specifies the port WWN of the physical FC target. If this parameter is used without using -l to identify LUNs for deletion, all LUNs for the specified iSCSI VT are deleted, and the FC target is removed from the iSCSI VT mapping. -l Specifies the LUN or LUNs that you want to delete. This can be an individual number, and mix of numbers, or a range. The LUNs must be in the existing target data base. For example: switch:admin>iscsicfg --delete lun -t iqn.2005-10.com.brocade:tgt1 -l 2-4,5 The operation completed successfully 270 iSCSI Gateway services
![](/manual_guide/products/hewlettpackard-ae370a-hp-storageworks-fabric-os-611-administrator-guide-56970235-2009-a28315e/270.png)