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

iSCSI Gateway Service Administrator’s Guide 27
53-1000603-01
Displaying the iSCSI VT
3
Deleting LUNs from an existing iSCSI VT
The iscsiCfg --delete lun command can be used to delete LUNs from an existing iSCSI VT. The
command can be used to delete individual LUNs, a list or range of LUNs, or all LUNs associated
with an iSCSI VT.
To delete LUNs from an iSCSI VT
1. Connect to the switch and log in.
2. Enter the iscsiCfg
--delete lun command with –t <target IQN>, –w <port WWN>, and –l <LUN
list> options to delete a LUN or LUNs.:
where:
-t <target IQN> Specifies the IQN name for the iSCSI VT in the format:
iqn.2002-12.com.brocade:<user_defined_name>, where
user_defined_name may be any unique string up to 12 alpha-numeric
characters long.
-w <port WWN> 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 <LUN list> 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.
The following is an example.
IscsiSaturn1:root>iscsicfg --delete lun -t iqn.2005-10.com.brocade.tgt1 -l
2-4,5
The operation completed successfully
3. Enter the iscsiCfg --commit all command to commit the changes to the database. If the LUN
deletion is one of several configuration changes, you may want to refer to “Committing the
iSCSI-related configuration” later in this chapter for extra detail on the commit process.
Displaying the iSCSI VT
Displaying LUN map configurations
This section shows how to display the iSCSI VT LUN maps.
To display the iSCSI VT LUN map
1. Connect and log in to the switch.
2. Enter the iscsiCfg
--show lun command as follows:
switch:admin> iscsicfg --show lun
Number of targets found: 2