Document ID: 45560
Contents
Introduction
Prerequisites
Requirements
Components Used
Conventions
Background Theory
Configure
Network Diagram
Configurations
Verify
Troubleshoot
Related Information
Introduction
Cisco's iSCSI drivers, which reside on the server, are a key component of the iSCSI solution. These iSCSI drivers intercept SCSI commands, encapsulate them into IP packets, and redirect them to the Cisco SN 5420, Cisco SN 5428, Cisco SN5428-2 or Cisco MDS/IPS-8. This document provides sample configurations for Solaris iSCSI host to SN 5428.
Prerequisites
Requirements
Before attempting this configuration, ensure that you meet these requirements:
-
Install the iSCSI driver that is compatible to your Linux version. The most current version of the driver can be found at the Cisco iSCSI Driver for Linux (registered customers only) page on Cisco.com. The README.txt file is included in the driver zip (tar) file. The README contains information about the license agreement, driver installation and configuration instructions, and a technical overview of the driver architecture.
-
The operating system requirements and patch requirements are described in the System Requirements section of the Cisco iSCSI Driver for Linux Release Notes.
Components Used
The information in this document is based on these software and hardware versions:
-
Linux Server
[root@sse-andres sbin]# uname -a Linux sse-andres 2.4.18-3smp #1 SMP Thu Apr 18 07:27:31 EDT 2002 i686 Cisco-iscsi-3.4.0.4 has been used. [root@sse-andres sbin]# iscsi-ls ******************************************************************************* Cisco iSCSI Driver Version ... 3.4.0.4 (27-Aug-2003 ) ******************************************************************************* -
Cisco SN 5428 with Software Version 3.3.2
[Rita]# show ver Cisco SN 5428-K9 Storage Router CLI Version: 2.1 iSCSI Version: 0/2 (Min/Max) System Bootstrap: 3.3.2-K9 Operating System: 3.3.2-K9 Switch Version: V1.4.0.43-0 Application: 3.3.2-K9 Web Server: R6_1_0 OpenSSH: 3.4p1 OpenSSL: 0.9.6e Zlib: 1.1.4 Copyright (c) 1986-2002 by Cisco Systems, Inc
The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.
Conventions
For more information on document conventions, refer to the Cisco Technical Tips Conventions.
Background Theory
SCSI routing provides IP hosts with access to Fibre Channel (FC) storage devices as if the storage devices were directly attached to the hosts. Access to devices is managed primarily in the SN 5428 storage router. An iSCSI target is an arbitrary name for a group of physical storage devices. The iSCSI targets are created and mapped to physical storage devices attached to the SN 5428. The storage router presents the iSCSI targets to IP hosts as if the physical storage devices were directly attached to the hosts. With SCSI routing, storage devices are not aware of each IP host; the storage devices are aware of the SN 5428 and respond to it as if it were one FC host. SCSI routing consists of routing SCSI requests and responses between hosts in an IP network and FC storage.
Each host that requires IP access to storage by way of an SN 5428 storage router needs to have a compatible iSCSI driver installed. With the iSCSI protocol, the iSCSI driver allows an IP host to transport SCSI requests and responses over an IP network. From the perspective of a host operating system, the iSCSI driver appears to be a SCSI or FC driver for a peripheral channel in the host. SCSI routing consists of these main actions:
-
Transporting SCSI requests and responses over an IP network between the hosts and the SN 5428 storage router.
-
Routing SCSI requests and responses between hosts on an IP network and FC storage.
-
Transporting SCSI requests and responses between the SN 5428 storage router and FC storage.
SCSI routing occurs in the SN 5428 storage router through the mapping of physical storage devices to iSCSI targets. You can map an iSCSI target to multiple physical devices. An iSCSI target always contains at least one Logical Unit Number (LUN). Each LUN on an iSCSI target is mapped to a single LUN on a physical storage target.
You can choose either of two types of storage mapping: target-and-LUN mapping or target-only mapping. Target-and-LUN mapping maps an iSCSI target and LUN combination to a physical storage target and LUN combination. Target-only mapping maps an iSCSI target to a physical storage target and its LUNs.
With target-and-LUN mapping, an iSCSI target name and iSCSI LUN number are specified and mapped to the physical storage address of one LUN; either a WWPN + LUN (World Wide Port Name + LUN) combination, a LUN ID (unique LUN identifier), or a LUN serial number.
If the LUN is available, it is made available as an iSCSI LUN and numbered with the iSCSI LUN number specified. For example, if an iSCSI target and iSCSI LUN specified as Database, LUN 9 were mapped to the physical storage address, WWPN 3100112233445566, LUN 12, LUN 12 would be available as one iSCSI LUN. An iSCSI driver would see the iSCSI target named Database, with one iSCSI LUN identified as LUN 9. The iSCSI LUN would appear as one storage device to a host.
With target-only mapping, an iSCSI target name is specified and mapped to the physical storage address of a storage controller only, a WWPN. Any LUNs that are available in the storage controller are made available as iSCSI LUNs and are numbered the same as the LUNs in the storage controller. For example, if an iSCSI target specified as Webserver2000 were mapped to the physical storage address WWPN 3100112233445577, and LUNs 0 through 2 were available in that controller, those LUNs would become available as three iSCSI LUNs. An iSCSI driver would see the iSCSI target named Webserver2000 as a controller with three iSCSI LUNs identified as LUN 0, LUN 1, and LUN 2. Each iSCSI LUN would appear as a separate storage device to a host.
Access for SCSI routing is controlled in the IP hosts and the storage router. In an IP host, the iSCSI driver is configured with the Gigabit Ethernet (GE) IP address of the SCSI routing instance in the storage router with which the host is to transport SCSI requests and responses. In a storage router, access is controlled through an access list and a VLAN Identifier (VID) number of the hosts. Additionally, access can be further controlled in the SN 5428 through authentication.
Configure
In this section, you are presented with the information to configure the features described in this document.
Note: To find additional information on the commands used in this document, use the Cisco SN 5428 Storage Router documentation and Command Line Interface Reference.
Network Diagram
This document uses this network setup:

Configurations
This document uses these configurations:
-
sse-andres (Linux version 2.4.18-3)
-
Rita (SN 5428 3.3.2)
|
sse-andres (Linux version 2.4.18-3) |
|---|
|
On the Linux host, iscsi.conf needs to be modified. [root@sse-andres etc]# more /etc/iscsi.conf # iSCSI configuration file - see iscsi.conf(5) # Authentication Settings # ----------------------- # You may configure a default Username and Password to use for CHAP # authentication by specifying the Global username and password parameters # in the format as mentioned below. These entries will need to precede any # "DiscoveryAddress" entries if authentication needs to be enabled for all the # iSCSI targets. # # Example: # #Username=alice #Password=nty57nbe # or #OutgoingUsername=alice #OutgoingPassword=nty57nbe # # The "OutgoingUsername" will specify the username to be sent to the target # for login authentication. The "OutgoingPassword" is the CHAP secret password # to be used when sending challenge responses to the target. # # You may configure CHAP authentication settings that will apply to every # target discovered at a particular address by adding "OutgoingUsername=u" # and "OutgoingPassword=p" entries indented below the "DiscoveryAddress" # entry they apply to. # # Example: # #DiscoveryAddress=192.168.10.94 DiscoveryAddress=10.48.69.206 Continuous=yes !--- Configure the IP address of the GE interface that will accept !--- iSCSI requests from your host. # LUN Settings # ------------ # The LUN settings can be specified per TargetName or for all the targets # whose TargetNames are mentioned in the configuration file. If no TargetName # is present in the configuration file, the lun(s) will be configured for # all the available iSCSI targets. # The LUN settings can be specified in the following 3 formats:- # LUN=<lun_number> # LUNs=<lun_range> # LUNs=<lun_list> # # The range of luns to be configured can be specified using a hyphen. A comma # separated list of luns can also be used. # Example: # #LUN=35 #LUNs=39-47 #LUNs=200,49,0,31 LUNs=0-255 # # LUNs can be configured per TargetName as mentioned in the format below. # #TargetName=iqn.1987-05.com.cisco:00.0d1d898e8d66.t0 # LUNs=39-47 # Continuous Discovery settings # ----------------------------- # You can configure discovery session to be kept open by setting # "Continuous" key to "yes" (default setting). Set Continuous=no to close # the discovery session, once the discovery is over. # #Continuous=yes #Continuous=no # # This parameter can be specified per DiscoveryAddress configuration. # #DiscoveryAddress=10.77.13.52 # Continuous=yes [root@sse-andres iscsi]# cat /var/lib/iscsi/bindings # iSCSI bindings, file format version 1.0. # NOTE: this file is automatically maintained by the iSCSI daemon. # You should not need to edit this file under most circumstances. # If iSCSI targets in this file have been permanently deleted, you # may wish to delete the bindings for the deleted targets. # # Format: # bus target iSCSI # id id TargetName # 0 0 iqn.1987-05.com.cisco:00.59870777d907.ibm-shark 0 1 iqn.1987-05.com.cisco:00.e80e5ee8680d.seagate 0 2 iqn.1987-05.com.cisco:00.9638ad30d4c1.shark-lun4-lun5 !--- The iSCSI driver discovery daemon process looks up each discovered target !--- in the /var/lib/iscsi/bindings file. If an entry exists in the file for the !--- target, the corresponding SCSI target ID is assigned to the target. If !--- no entry exists for the target, the smallest available SCSI target ID !--- is assigned, and an entry is written to the /var/lib/iscsi/bindings file for !--- this target. !--- Note that the /var/lib/iscsi/bindings file permanently contains entries !--- for all iSCSI targets logged into from this host. If a target is !--- no longer available to a host, you can manually edit the file and remove !--- entries so that the obsolete target no longer consumes a SCSI target ID. !--- If you know the iSCSI target name of a target in advance, and you want !--- it to be assigned a particular SCSI target ID, you can add an entry !--- manually. You should stop the iSCSI driver before you edit the !--- /var/lib/iscsi/bindings file. !--- To manually start the iSCSI driver, enter /etc/init.d/iscsi start !--- To manually stop the iSCSI driver, enter /etc/init.d/iscsi stop |
|
Rita (SN 5428 3.3.2) |
|---|
.... ! VLAN ! ! (no vlan(s) found) ! ! SCSIROUTER ! scsirouter linux !--- A SCSI routing instance linux has been created !--- for the Linux host test. scsirouter linux description "linux_server-sse-andres" scsirouter linux authentication "none" scsirouter linux username "none" scsirouter linux password "none" scsirouter linux primary "none" scsirouter linux reserveproxy disable scsirouter linux failover primary none scsirouter linux failover secondary none scsirouter linux lun reset no scsirouter linux serverIf ge1 10.48.69.206/255.255.255.192 !--- Interface (ge1) is assigned to SCSI instance linux. 10.48.69.206, and !--- will be used by IP hosts to access the SCSI routing instance. scsirouter linux target ibm-shark lun 0 lunid "db44f747a2cd81a35745889f81c47103" scsirouter linux target ibm-shark lun 1 lunid "55bcd149af855c7091df146880dd4043" scsirouter linux target ibm-shark description "ibm-shark" !--- Target ibm-shark is an example of target-and-LUN !--- mapping that uses LUN ID addressing. scsirouter linux target ibm-shark enable scsirouter linux target ibm-shark accesslist "any" rw scsirouter linux target ibm-shark accesslist "none" ro scsirouter linux target ibm-shark maxcmdqueuedepth "0" scsirouter linux target ibm-shark trespass scsirouter linux target seagate wwpn "210000203715dc02" scsirouter linux target seagate description "apcon_2" scsirouter linux target seagate enable scsirouter linux target seagate accesslist "any" rw scsirouter linux target seagate accesslist "none" ro scsirouter linux target seagate maxcmdqueuedepth "0" !--- Target seagate is an example of target-only mapping that uses WWPN addressing. no scsirouter linux target seagate trespass scsirouter linux target shark-lun4-lun5 lun 4 wwpn "5005076300c4944c" lun "4" scsirouter linux target shark-lun4-lun5 lun 5 wwpn "5005076300c4944c" lun "5" scsirouter linux target shark-lun4-lun5 description "ibm-shark" scsirouter linux target shark-lun4-lun5 enable !--- Target shark-lun4-lun5 is an example of target-and-LUN !--- mapping that uses WWPN addressing. scsirouter linux target shark-lun4-lun5 accesslist "any" rw scsirouter linux target shark-lun4-lun5 accesslist "none" ro scsirouter linux target shark-lun4-lun5 maxcmdqueuedepth "0" scsirouter linux target shark-lun4-lun5 trespass ! ! SYSTEM ! hostname Rita ! Mgmt Port ! interface mgmt ip-address 10.10.10.1/255.255.255.192 ! ! HA Port ! interface ha ip-address 10.1.1.148/255.255.255.0 ! ! GE ! interface ge1 no autonegotiation interface ge1 mtusize 1500 interface ge1 vlan enable ! ! GE ! interface ge2 autonegotiation autodetect interface ge2 mtusize 1500 interface ge2 vlan enable ! ! ROUTES ! ip default-gateway 10.48.69.129 ! RIP ! no ip rip enable ip rip timers invalid 180 ! ! ADMIN LOGIN ! admin password <password> ! ! MONITOR LOGIN ! monitor password <password> ! ! SNTP ! clock timezone GMT ! ! SNMP ! snmp-server community public ro snmp-server community private rw no snmp-server host all traps no snmp-server sendauthtraps snmp-server linkupdown mgmt snmp-server linkupdown ha snmp-server linkupdown ge1 snmp-server linkupdown ge2 snmp-server linkupdown fc1 snmp-server linkupdown fc2 snmp-server linkupdown fc3 snmp-server linkupdown fc4 snmp-server linkupdown fc5 snmp-server linkupdown fc6 snmp-server linkupdown fc7 snmp-server linkupdown fc8 ! ! DNS ! ip name-server 144.254.10.123 ip domain-name cisco.com ! ! TELNET ! no session-timeout ! FC SWITCH ! fcswitch ratov 10000 fcswitch edtov 2000 fcswitch dstov 5000 fcswitch fstov 1000 fcswitch zoning default All no fcswitch zoning autosave enable fcswitch zoning merge SW2 fcswitch domainid 104 force no fcswitch domainid lock enable fcswitch interop-credit 12 ! ! FC ZONE ALIAS ! fcalias iscsi fcalias iscsi member wwpn 280000059ba695e0 !--- Initiator WWPN1. fcalias iscsi member wwpn 290000059ba695e0 !--- Initiator WWPN2. !--- The LUN mapping and LUN masking on the storage device !--- have to be done with WWPN1 and WWWPN2. ! ! FC PORTS ! interface fc1 enable interface fc1 ms-enable enable no interface fc1 al-fairness enable interface fc1 fan-enable enable interface fc1 ext-credit 0 interface fc1 mfs-bundle enable timeout 10 interface fc1 linkspeed auto interface fc1 type g-port ! interface fc2 enable interface fc2 ms-enable enable no interface fc2 al-fairness enable interface fc2 fan-enable enable interface fc2 ext-credit 0 interface fc2 mfs-bundle enable timeout 10 interface fc2 linkspeed auto interface fc2 type g-port ! interface fc3 enable interface fc3 ms-enable enable no interface fc3 al-fairness enable interface fc3 fan-enable enable interface fc3 ext-credit 0 interface fc3 mfs-bundle enable timeout 10 interface fc3 linkspeed auto interface fc3 type gl-port ! ! interface fc7 enable interface fc7 ms-enable enable no interface fc7 al-fairness enable interface fc7 fan-enable enable interface fc7 ext-credit 0 interface fc7 mfs-bundle enable timeout 10 interface fc7 linkspeed auto interface fc7 type gl-port ! interface fc8 enable interface fc8 ms-enable enable no interface fc8 al-fairness enable interface fc8 fan-enable enable interface fc8 ext-credit 0 interface fc8 mfs-bundle enable timeout 10 interface fc8 linkspeed auto interface fc8 type gl-port ! ! AAA ! aaa new-model |
Verify
This section provides information you can use to confirm your configuration is working properly.
Certain show commands are supported by the Output Interpreter Tool (registered customers only) , which allows you to view an analysis of show command output.
-
netstat -n—verifies the TCP connections on the Linux host.
-
iscsi-ls—shows the devices currently available; use the iscsi-ls command utility on the Linux host.
-
cat /proc/scsi/iscsi/1—views the valid LUNs on the Linux host.
-
show system—displays the system information, serial number, MAC addresses, interfaces, and software version.
-
show fcswitch—displays global configuration information for SN 5428 storage router FC interfaces.
-
show fcswitch nameserver brief—displays brief global configuration information for storage router FC interfaces.
-
show fcswitch nameserver all—displays global configuration information for storage router FC interfaces.
-
show devices—displays all SCSI devices.
-
show scsirouter linux—displays all configuration information for the specified SCSI routing instance.
-
show scsirouter linux connection—displays iSCSI initiator information for the Windows 2000 iSCSI session.
-
show scsirouter linux host—displays host information.
-
show scsirouter linux stats—displays access and connection information.
-
show scsirouter linux host stats—displays host statistic information.
-
show scsirouter linux target all stats—displays statistic informations about all targets.
-
show fcswitch linkstate database—displays current link information for all FC ports.
-
show int ge1—displays GE interface.
-
show ip route— displays IP route information.
Troubleshoot
This section provides information you can use to troubleshoot your configuration.
Here is relevant troubleshooting information for this configuration:
-
Displays from sse-andres
-
Displays from Rita (SN 5428)
|
Displays from sse-andres |
|---|
!--- To see the current TCP connections on the Linux host, issue the
!--- netstat -n command.
[root@sse-andres sbin]# netstat -n
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 10.48.69.154:40568 10.48.69.206:3260 ESTABLISHED
tcp 0 0 10.48.69.154:40566 10.48.69.206:3260 ESTABLISHED
tcp 0 0 10.48.69.154:40567 10.48.69.206:3260 ESTABLISHED
tcp 0 0 10.48.69.154:40565 10.48.69.206:3260 ESTABLISHED
tcp 0 200 10.48.69.154:22 144.254.7.91:1280 ESTABLISHED
tcp 0 0 10.48.69.154:23 144.254.8.32:40563 ESTABLISHED
!--- To see the devices currently available, issue the command
!--- utility iscsi-ls.
[root@sse-andres sbin]# iscsi-ls
*******************************************************************************
Cisco iSCSI Driver Version ... 3.4.0.4 (27-Aug-2003 )
*******************************************************************************
TARGET NAME : iqn.1987-05.com.cisco:00.59870777d907.ibm-shark
TARGET ALIAS : ibm-shark
HOST NO : 1
BUS NO : 0
TARGET ID : 0
DISCOVERY ADDRESS : 10.48.69.206:3260
SESSION ESTABLISHED AT : Fri Sep 19 12:26:50 2003
NO. OF PORTALS : 1
TARGET ADDRESS 1 : 10.48.69.206:3260,1
SESSION ID : ISID 00023d000001 TSID 02
*******************************************************************************
TARGET NAME : iqn.1987-05.com.cisco:00.e80e5ee8680d.seagate
TARGET ALIAS : seagate
HOST NO : 1
BUS NO : 0
TARGET ID : 1
DISCOVERY ADDRESS : 10.48.69.206:3260
SESSION ESTABLISHED AT : Fri Sep 19 12:26:52 2003
NO. OF PORTALS : 1
TARGET ADDRESS 1 : 10.48.69.206:3260,1
SESSION ID : ISID 00023d000001 TSID 03
*******************************************************************************
TARGET NAME : iqn.1987-05.com.cisco:00.9638ad30d4c1.shark-lun4-lun5
TARGET ALIAS : shark-lun4-lun5
HOST NO : 1
BUS NO : 0
TARGET ID : 2
DISCOVERY ADDRESS : 10.48.69.206:3260
SESSION ESTABLISHED AT : Fri Sep 19 12:26:52 2003
NO. OF PORTALS : 1
TARGET ADDRESS 1 : 10.48.69.206:3260,1
SESSION ID : ISID 00023d000001 TSID 04
*******************************************************************************
[root@sse-andres sbin]# iscsi-ls -t shark-lun4-lun5
*******************************************************************************
Cisco iSCSI Driver Version ... 3.4.0.4 (27-Aug-2003 )
*******************************************************************************
TARGET NAME : iqn.1987-05.com.cisco:00.59870777d907.ibm-shark
TARGET ALIAS : ibm-shark
HOST NO : 1
BUS NO : 0
TARGET ID : 0
DISCOVERY ADDRESS : 10.48.69.206:3260
SESSION ESTABLISHED AT : Fri Sep 19 12:26:50 2003
NO. OF PORTALS : 1
TARGET ADDRESS 1 : 10.48.69.206:3260,1
SESSION ID : ISID 00023d000001 TSID 02
*******************************************************************************
[root@sse-andres sbin]# fdisk -l
Disk /dev/sda: 255 heads, 63 sectors, 4420 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 267 2040255 82 Linux swap
/dev/sda3 268 4420 33358972+ 83 Linux
Disk /dev/sdb (Sun disk label): 30 heads, 64 sectors, 2948 cylinders
Units = cylinders of 1920 * 512 bytes
Device Flag Start End Blocks Id System
/dev/sdb3 u 0 2948 2830080 5 Whole disk
/dev/sdb8 u 0 2948 2830080 f Unknown
Disk /dev/sdc (Sun disk label): 30 heads, 64 sectors, 2032 cylinders
Units = cylinders of 1920 * 512 bytes
Device Flag Start End Blocks Id System
/dev/sdc3 u 0 2032 1950720 5 Whole disk
/dev/sdc8 u 0 2032 1950720 f Unknown
Disk /dev/sdd (Sun disk label): 4 heads, 573 sectors, 31275 cylinders
Units = cylinders of 2292 * 512 bytes
Device Flag Start End Blocks Id System
/dev/sdd1 0 115 131790 2 SunOS root
/dev/sdd2 u 115 230 131790 3 SunOS swap
/dev/sdd3 u 0 31275 35841150 5 Whole disk
/dev/sdd7 230 31275 35577570 4 SunOS usr
Disk /dev/sde (Sun disk label): 30 heads, 64 sectors, 1015 cylinders
Units = cylinders of 1920 * 512 bytes
Device Flag Start End Blocks Id System
/dev/sde1 0 35 33600 2 SunOS root
/dev/sde2 u 35 104 66240 3 SunOS swap
/dev/sde3 u 0 1015 974400 5 Whole disk
/dev/sde7 104 1015 874560 4 SunOS usr
Disk /dev/sdf (Sun disk label): 30 heads, 64 sectors, 2948 cylinders
Units = cylinders of 1920 * 512 bytes
Device Flag Start End Blocks Id System
/dev/sdf3 u 0 2948 2830080 5 Whole disk
/dev/sdf8 u 0 2948 2830080 f Unknown
!--- To look for the valid LUNs, check /proc/scsi/iscsi/.
[root@sse-andres root]# cat /proc/scsi/iscsi/1
# iSCSI driver version: 3.4.0.4 (27-Aug-2003)
#
# SCSI: iSCSI:
# Bus Tgt LUN IP address Port TargetName
0 0 1 10.48.69.206 3260 iqn.1987-05.com.cisco:00.59870777d907.ibm-shark
0 1 0 10.48.69.206 3260 iqn.1987-05.com.cisco:00.e80e5ee8680d.seagate
0 2 4 10.48.69.206 3260 iqn.1987-05.com.cisco:00.9638ad30d4c1.shark-lun4-lun5
0 2 5 10.48.69.206 3260 iqn.1987-05.com.cisco:00.9638ad30d4c1.shark-lun4-lun5
********
!--- To list the sizes of all disks, issue the sfdisk -s command.
[root@sse-andres root]# sfdisk -s
/dev/sda: 35510272
/dev/sdb: 17783240
/dev/sdc: 1953152
/dev/sdd: 35843686
/dev/sde: 976576
total: 92066926 blocks
[root@sse-andres root]#
[root@sse-andres init.d]# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: LSILOGIC Model: 1030 IM Rev: 1000
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 08 Lun: 00
Vendor: IBM Model: 25P3495a S320 1 Rev: 1
Type: Processor ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: SEAGATE Model: ST318203FC Rev: 0004
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 01
Vendor: IBM Model: 2105F20 Rev:
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi1 Channel: 00 Id: 01 Lun: 00
Vendor: SEAGATE Model: ST336753FC Rev: 0005
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi1 Channel: 00 Id: 02 Lun: 04
Vendor: IBM Model: 2105F20 Rev:
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi1 Channel: 00 Id: 02 Lun: 05
Vendor: IBM Model: 2105F20 Rev:
Type: Direct-Access ANSI SCSI revision: 03
[root@sse-andres init.d]#
!--- When the iSCSI is stopped on the Linux host, all the disks reached
!--- by iSCSI will disappear.
[root@sse-andres lun0]# cd /etc/init.d
[root@sse-andres init.d]# ./iscsi stop
Stopping iSCSI: sync umount sync iscsid iscsi
[root@sse-andres init.d]# sfdisk -s
/dev/sda: 35510272
/dev/sdb: 17783240
total: 53293512 blocks
[root@sse-andres init.d]# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: LSILOGIC Model: 1030 IM Rev: 1000
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 08 Lun: 00
Vendor: IBM Model: 25P3495a S320 1 Rev: 1
Type: Processor ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: SEAGATE Model: ST318203FC Rev: 0004
Type: Direct-Access ANSI SCSI revision: 02
[root@sse-andres init.d]#
!--- In the /var/log/messages, you can see
!--- these iSCSI connections:
[root@sse-andres sbin]# cat /var/log/messages
Sep 19 12:26:56 sse-andres kernel: scsi singledevice 1 0 2 4
Sep 19 12:26:56 sse-andres kernel: Vendor: IBM Model: 2105F20 Rev:
Sep 19 12:26:56 sse-andres kernel: Type: Direct-Access ANSI SCSI revision: 03
Sep 19 12:26:56 sse-andres kernel: Attached scsi disk sde at scsi1, channel 0, id 2, lun 4
Sep 19 12:26:56 sse-andres kernel: iSCSI: session eb790000 recv_cmd ea3a4200, cdb 0x0, status 0x2,
response 0x0, senselen 26, key 06, ASC/ASCQ 29/00, itt 5 task f64b54a8 to (1 0 2 4),
shark-lun4-lun5
Sep 19 12:26:56 sse-andres kernel: iSCSI:
Sense 70000600 00000012 00000000 29000000 0000fe02 18000000 0204
Sep 19 12:26:56 sse-andres kernel: SCSI device sde: 1953152 512-byte hdwr sectors (1000 MB)
Sep 19 12:26:56 sse-andres kernel: sde: sde1 sde2 sde3 sde7
Sep 19 12:26:56 sse-andres kernel: scsi singledevice 1 0 2 5
Sep 19 12:26:56 sse-andres kernel: Vendor: IBM Model: 2105F20 Rev:
Sep 19 12:26:56 sse-andres kernel: Type: Direct-Access ANSI SCSI revision: 03
Sep 19 12:26:56 sse-andres kernel: Attached scsi disk sdf at scsi1, channel 0, id 2, lun 5
Sep 19 12:26:56 sse-andres kernel: iSCSI: session eb790000 recv_cmd eb5c6c00, cdb 0x0, status 0x2,
response 0x0, senselen 26, key 06, ASC/ASCQ 29/00, itt 13 task f5bdb190 to (1 0 2 5),
shark-lun4-lun5
|
|
Displays from Rita (SN 5428) |
|---|
[Rita]# show system
System Name: Rita
System Deployed For: SCSI routing
Software Capacity: 59392.0 KB
Free Software Space: 30705.0 KB
Configuration Capacity: 14464.0 KB
Free Configuration Space: 13816.0 KB
Log Capacity: 29056.0 KB
Free Log Space: 28865.0 KB
Software Version: 3.3.2-K9
Last Reset: Mon Sep 15 15:11:32 GMT 2003
Current Time: Mon Sep 15 15:38:05 GMT 2003
Time Zone: GMT
NTP Server: none
Name Servers: 144.254.10.123(Pri) (Sec)
Domain: cisco.com
Telnet session timeout: none
Model Number Rev Serial Number Part Number
System SN 5428-K9 00 Unit SN 800part_number
Processor Rainmaker 02 SAD061200UJ 73-7996-03
Device IP/Netmask MAC
lo0 127.0.0.1/8
mgmt 10.10.10.1/26 00:05:9b:a6:95:e0
ha 10.1.1.148/24 00:05:9b:a6:95:e1
ge1 10.48.69.206/26 02:02:3d:30:45:ce
ge2
[Rita]# show fcswitch
Global attributes Value
------------------------------------ -----
Domain ID 104
Domain ID lock disabled
Active Zoneset None
Zoning Merge SW2
Zoning Default All
Zoning Autosave disabled
Distributed Services timeout (dstov) 5000
Fabric Services timeout (fstov) 1000
Error Detect timeout (edtov) 2000
Resource Allocation timeout (ratov) 10000
Buffer to Buffer Credit (interop) 12
Initiator WWPN1 280000059ba695e0
Initiator WWPN2 290000059ba695e0
[Rita]# show int brief XX
Interface Stat IP/Netmask MAC Options
--------- ---- ------------------------ ------------ -------
lo0 up 127.0.0.1/ff000000
mgmt up 10.10.10.1/ffffffc0 00059ba695e0
ha up 10.1.1.148/ffffff00 00059ba695e1
fei2 up 2.0.0.1/ffffff00 00059ba695e2
fc0 up
fc1 down
fc2 down
fc3 up
fc4 down
fc5 down
fc6 down
fc7 up
fc8 down
fc15 up
fci1 up
fci2 up
ge1 up 10.48.69.206/ffffffc0 02023d3045ce
ge2 down
[Rita]# show fcswitch nameserver brief
Port Id Port Type Port Number Port WWN Port IP Address
------- ------- --------------- ----------------- -----------------
680000 N 0 280000059ba695e0 00000000
680300 N 3 5005076300c4944c 00000000
680723 NL 7 210000203715dc02 00000000
680f00 N 15 290000059ba695e0 00000000
4 entries found
[Rita]# show fcswitch nameserver all
Port Id 680000
Port Type N
Port Number 0
Port WWN 280000059ba695e0
Port IP Address 00000000
Sym Port Name
Sym Node Name
Node WWN 100000059ba695e0
Node IP Address 00000000
Fabric Port Name 200000059ba695e1
Class of Service 3
FC-4 Types FCP
FC-4 Description (NULL)
Port Id 680300
Port Type N
Port Number 3
Port WWN 5005076300c4944c
Port IP Address 00000000
Sym Port Name
Sym Node Name
Node WWN 5005076300c0944c
Node IP Address 00000000
Fabric Port Name 200300059ba695e1
Class of Service 2,3
FC-4 Types FCP,FC-SB2 Channel to Control,
FC-4 Description IBM 2105F20 (Rev. .114)
Port Id 680723
Port Type NL
Port Number 7
Port WWN 210000203715dc02
Port IP Address 00000000
Sym Port Name
Sym Node Name
Node WWN 200000203715dc02
Node IP Address 00000000
Fabric Port Name 200700059ba695e1
Class of Service 3
FC-4 Types FCP
FC-4 Description SEAGATE ST336753FC (Rev. 0005)
Port Id 680f00
Port Type N
Port Number 15
Port WWN 290000059ba695e0
Port IP Address 00000000
Sym Port Name
Sym Node Name
Node WWN 100000059ba695e0
Node IP Address 00000000
Fabric Port Name 200f00059ba695e1
Class of Service 3
FC-4 Types FCP
FC-4 Description (NULL)
4 entries found
[Rita]# show devices
Fabric Attached Devices detected
Interface WWPN PortId Device Type Lun Lunid Type Lunid
--------- ---------------- -------- --------------- ----- ----------------- -----
fc7 210000203715dc02 0x680723 Disk 0 IEEE Extended 200000203715dc02
fc3 5005076300c4944c 0x680300 Disk 0 MD5 db44f747a2cd81a35745889f81c47103
fc3 5005076300c4944c 0x680300 Disk 1 MD5 55bcd149af855c7091df146880dd4043
fc3 5005076300c4944c 0x680300 Disk 3 MD5 81574f330626c402176b23645f99bfe9
fc3 5005076300c4944c 0x680300 Disk 4 MD5 c51f6656b8a5c4788792df27b0e5372a
fc3 5005076300c4944c 0x680300 Disk 5 MD5 a9cdfdb04d88ad48ef0a8bc043a5d8ad
fc3 5005076300c4944c 0x680300 Disk 6 MD5 198f1b0a2bbad5642dca2be1729d8496
fc3 5005076300c4944c 0x680300 Disk 7 MD5 7f73aa862b5660bd84077c938e514240
fc3 5005076300c4944c 0x680300 Disk 8 MD5 6f0f630181fe99e4d29cf9e23af275f5
fc3 5005076300c4944c 0x680300 Disk 9 MD5 d05849e3d6d9bfa7eba414198e064456
fc3 5005076300c4944c 0x680300 Disk 10 MD5 62d9cf9ed7176332f76cf7126501739b
Lun Description Table
Interface WWPN Lun Capacity Vendor Product Serial
--------- ---------------- ----- -------- ------------ ------------ ------
fc7 210000203715dc02 0 34GB SEAGATE ST336753FC 3HX0H0MV000083394XG6
fc3 5005076300c4944c 0 2GB IBM 2105F20 11A22196
fc3 5005076300c4944c 1 1GB IBM 2105F20 10222196
fc3 5005076300c4944c 3 953MB IBM 2105F20 00122196
fc3 5005076300c4944c 4 953MB IBM 2105F20 00722196
fc3 5005076300c4944c 5 2GB IBM 2105F20 11B22196
fc3 5005076300c4944c 6 3GB IBM 2105F20 10022196
fc3 5005076300c4944c 7 2GB IBM 2105F20 11F22196
fc3 5005076300c4944c 8 953MB IBM 2105F20 00322196
fc3 5005076300c4944c 9 2GB IBM 2105F20 12022196
fc3 5005076300c4944c 10 2GB IBM 2105F20 40022196
[Rita]# show scsirouter linux
SCSI Router Information
Status Codes: A=active, I=inactive, C=create failed, D=not enabled, S=slave
CDB Reserve Pass Lun
Router Stat Retry Proxy Thru Reset Description
-------------------- ---- ----- -------- ---- ----- -----------
linux A 6 disabled no no linux-server-sse-andres
SCSI Router Authentication Information
Router Authentication Username Password
-------------------- --------------- --------------- --------
linux none none none
Router ServerIf Vlan Vid IP/Netmask Secondary TCP Port SLP
---------- ---------- -------- -------------------------------- ---------- -------- ---
linux ge1 10.48.69.206/26 none 3260 ON
Target Attribute Information
Accesslist Accesslist
Router Target Status Read-Write Read-Only Profile CRC Description
---------- ---------------- -------- ---------- ---------- ------- ---------- -----------
linux ibm-shark enabled any none High prefer-off ibm-shark
linux seagate enabled any none High prefer-off apcon_2
linux shark-lun4-lun5 enabled any none High prefer-off ibm-shark
Target Mapping Information
Router Target Mapping iSCSI Name
---------- ---------------- ---------- -----------
linux ibm-shark Lun-lunid iqn.1987-05.com.cisco:00.59870777d907.ibm-shark
linux seagate Tgt iqn.1987-05.com.cisco:00.e80e5ee8680d.seagate
linux shark-lun4-lun5 Lun-wwpn iqn.1987-05.com.cisco:00.9638ad30d4c1.shark-lun4-lun5
Targets - Target Mapped
Router Target WWPN Primary WWPN Secondary
---------- ---------------- ---------------- ----------------
linux seagate 210000203715dc02
Targets - Lun Mapped via Lunid
Router Target Lun Lunid
---------- ---------------- ----- ----------------
linux ibm-shark 0 db44f747a2cd81a35745889f81c47103
linux ibm-shark 1 55bcd149af855c7091df146880dd4043
Targets - Lun Mapped via WWPN
Router Target Lun WWPN Primary Lun WWPN Secondary Lun
---------- ---------------- ----- ---------------- ----- ---------------- -----
linux shark-lun4-lun5 4 5005076300c4944c 4
linux shark-lun4-lun5 5 5005076300c4944c 5
*[Rita]# show scsirouter "linux" connection
CRC values (Header / Data)
N = No CRC negotiated
H = Hardware CRC
S = Software CRC
router sid cid host:port login ver crc rtt target acs
linux 5 36 10.48.69.154:40641 Sep 19 15:42:53 0 N/N on
linux 6 37 10.48.69.154:40642 Sep 19 15:42:53 0 N/N off ibm-shark W
linux 7 38 10.48.69.154:40643 Sep 19 15:42:53 0 N/N off seagate W
linux 8 39 10.48.69.154:40644 Sep 19 15:42:53 0 N/N off shark-lun4W
4 connections listed
*[Rita]# show scsirouter "linux" connection tcp
TCP window sizes
current maximum
router sid cid host:port rcv snd rcv snd
linux 5 36 10.48.69.154:40641 262140 2920 262140 7504
linux 6 37 10.48.69.154:40642 524280 4380 524280 26800
linux 7 38 10.48.69.154:40643 524280 4380 524280 16080
linux 8 39 10.48.69.154:40644 524280 4380 524280 26800
4 connections listed
*[Rita]#
[Rita]# show scsirouter "linux" stats
router host name logins active last login last discont
linux 10.48.69.154 sse-andres 16 4 Sep 19 08:23:42 Sep 19 08:14
1 host listed
[Rita]# show scsirouter linux host stats
Linux host 10.48.69.154 alias "sse-andres"
Login info:
loginsActive = 4
lastLoginTime: Fri Sep 19 08:23:42 GMT 2003
loginsTerminated = 12
lastLoginTerminatedTime: Fri Sep 19 08:15:34 GMT 2003
loginsFailed = 0
lastLoginFailedTime:
loginsDiscovery = 4
loginsNormal = 12
stats:
RECEIVE SEND
OK ERROR
0000009459 0000009609 total msgs
0000005260 0000005260 no-op msgs
0000003979 0000003979 ping msgs/rsps
0000000192 0000000000 0000000192 SCSI cmd msgs/rsps
0000000004 0000000000 0000000154 SCSI data msgs
0000000000 0000000000 0000000000 task mgt msgs/rsps
0000000020 0000000000 0000000020 login msgs/rsps
0000000004 0000000000 0000000004 text msgs/rsps
0000000000 0000000000 invalid msgs/rsps
0000000000 RTT msgs
0000000000 async msgs
bytes rcvd 0000000000005000
discarded 00000000
bytes sent 000000000001eb70
1 host listed
[Rita]# show scsirouter "linux" target all stats
linux target ibm-shark:
RECEIVED TRANSMITTED
count error count error
0000000023 0000000023 Messages
0000000023 0000000000 0000000023 0000000003 SCSI cmd/resp
0000000000 0000000000 0000000000 task mgt
0000000001 0000000000 0000000000 login cmd
0000000000 logout
0000000000 async event
0000000000 0000000018 data msg
0000000000000000 bytes received
00000000 discarded
0000000000000416 bytes transmitted
target seagate:
RECEIVED TRANSMITTED
count error count error
0000000020 0000000020 Messages
0000000020 0000000000 0000000020 0000000002 SCSI cmd/resp
0000000000 0000000000 0000000000 task mgt
0000000001 0000000000 0000000000 login cmd
0000000000 logout
0000000000 async event
0000000000 0000000017 data msg
0000000000000000 bytes received
00000000 discarded
0000000000000414 bytes transmitted
target shark-lun4-lun5:
RECEIVED TRANSMITTED
count error count error
0000000043 0000000043 Messages
0000000043 0000000000 0000000043 0000000004 SCSI cmd/resp
0000000000 0000000000 0000000000 task mgt
0000000001 0000000000 0000000000 login cmd
0000000000 logout
0000000000 async event
0000000000 0000000035 data msg
0000000000000000 bytes received
00000000 discarded
0000000000000828 bytes transmitted
totals for all targets:
RECEIVED TRANSMITTED
count error count error
0000000086 0000000086 Messages
0000000086 0000000000 0000000086 0000000009 SCSI cmd/resp
0000000000 0000000000 0000000000 task mgt
0000000003 0000000000 0000000000 login cmd
0000000000 logout
0000000000 async event
0000000000 0000000070 data msg
0000000000000000 bytes received
00000000 discarded
0000000000001052 bytes transmitted
[Rita]# show fcswitch linkstate database
Local Node WWN 100000059ba695e1
Local Port 3
Local Port WWN 200300059ba695e1
Remote Node WWN 5005076300c0944c
Remote Port ffffffff
Remote Port WWN 5005076300c4944c
Remote Agent Address 00000000
Remote Agent Type 0
Remote Agent Port 0
Remote Unit Type Unknown
Remote Connection Id 680300
Local Node WWN 100000059ba695e1
Local Port 7
Local Port WWN 200700059ba695e1
Remote Node WWN 200000203715dc02
Remote Port ffffffff
Remote Port WWN 210000203715dc02
Remote Agent Address 00000000
Remote Agent Type 0
Remote Agent Port 0
Remote Unit Type Unknown
Remote Connection Id 000023
Local Node WWN 100000059ba695e1
Local Port 0
Local Port WWN 200000059ba695e1
Remote Node WWN 100000059ba695e0
Remote Port ffffffff
Remote Port WWN 280000059ba695e0
Remote Agent Address 00000000
Remote Agent Type 0
Remote Agent Port 0
Remote Unit Type Unknown
Remote Connection Id 680000
Local Node WWN 100000059ba695e1
Local Port 15
Local Port WWN 200f00059ba695e1
Remote Node WWN 100000059ba695e0
Remote Port ffffffff
Remote Port WWN 290000059ba695e0
Remote Agent Address 00000000
Remote Agent Type 0
Remote Agent Port 0
Remote Unit Type Unknown
Remote Connection Id 680f00
4 entries found
[Rita]# show int ge1
Operational Data
Interface Stat IP/Netmask MAC Options
--------- ---- ------------------------ ------------ -------
ge1 up 10.48.69.206/ffffffc0 02023d3045ce type Gigabit Ethernet
mtusize 1500
speed 1000000000
flags UP BRDCST RUNNING MLTCST
signal signal detect
duplex full
auto-negotiate complete
flow control rx pause
SFPVendor CISCO-AGILENT
SFPVendorID A00258957
SFPPartNumber QFBR-5790L
SFPRev -5790L
Configuration Data
Interface MTU Size AutoNegotiation Vlan IP/Netmask Secondary
--------- ---------- ---------------- -------- ------------------------ ---------
ge1 1500 enabled enabled None
[Rita]# show ip route
Codes: C - connected, S - static, R - RIP
C 10.1.1.0/24 is directly connected, ha
C 10.10.10.0/26 is directly connected, mgmt
S 10.48.69.154/32 [1/0] via 10.48.69.200, ge1
C 10.48.69.192/26 is directly connected, ge1
C 127.0.0.1/8 is directly connected, lo0
*[Rita]#
[Rita]# show zone brief
No zones.
|
Related Information
- iSCSI Driver for Linux Frequently Asked Questions
- Cisco iSCSI Software Downloads (registered customers only)
- Release Notes for Cisco iSCSI Driver Version 3.2.1 for Linux
- Technical Support - Cisco Systems
| Updated: Nov 29, 2005 | Document ID: 45560 |
