[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 ) *******************************************************************************
vatican# sh module Mod Ports Module-Type Model Status --- ----- ------------------------------- ------------------ ------------ 1 16 1/2 Gbps FC/Supervisor DS-X9216-K9-SUP active * 2 8 IP Storage Module DS-X9308-SMIP ok Mod Sw Hw World-Wide-Name(s) (WWN) --- ----------- ------ -------------------------------------------------- 1 1.1(1a) 1.0 20:01:00:0c:30:57:5e:c0 to 20:10:00:0c:30:57:5e:c0 2 1.1(1a) 0.2 20:41:00:0c:30:57:5e:c0 to 20:48:00:0c:30:57:5e:c0 Mod MAC-Address(es) Serial-Num --- -------------------------------------- ---------- 1 00-0b-be-f8-7f-00 to 00-0b-be-f8-7f-04 JAB070804Q3 2 00-05-30-00-a8-56 to 00-05-30-00-a8-62 JAB070205AM * this terminal session Vatican# sh ver Cisco Storage Area Networking Operating System (SAN-OS) Software TAC support: http://www.cisco.com/tac Copyright (c) 2002-2003 by Cisco Systems, Inc. All rights reserved. The copyright for certain works contained herein are owned by Andiamo Systems, Inc. and/or other third parties and are used and distributed under license. Software BIOS: version 1.0.7 loader: version 1.0(3a) [last : 1.1(0.133c)] kickstart: version 1.1(1a) system: version 1.1(1a) BIOS compile time: 03/20/03 kickstart image file is: bootflash:/k111a kickstart compile time: 6/12/2003 14:00:00 system image file is: bootflash:/s111a system compile time: 6/12/2003 14:00:00 Hardware RAM 963108 kB bootflash: 500736 blocks (block size 512b) slot0: 0 blocks (block size 512b) vatican uptime is 7 days 1 hours 18 minute(s) 42 second(s) Last reset at 955065 usecs after Wed Sep 10 08:13:50 2003 Reason: Reset Requested by CLI command reload System version: 1.1(2)
本文档中的信息都是基于特定实验室环境中的设备创建的。本文档中使用的所有设备最初均采用原始(默认)配置。如果您是在真实网络上操作,请确保您在使用任何命令前已经了解其潜在影响。
IPS模块提供对FC存储设备的IP主机访问。IPS模块是DS-X9308-SMIP。它提供透明SCSI路由。使用iSCSI协议的IP主机可以透明地访问FC网络上的iSCSI目标IP主机通过TCP/IP连接将封装在iSCSI协议数据单元(PDU)中的SCSI命令发送到MDS 9000 IPS端口。在IPS模块上,以正确配置的千兆以太网接口形式提供连接。IPS模块使您创建虚拟iSCSI目标并且映射他们到在FC SAN上可用的物理FC目标。它将FC目标呈现给IP主机,就像物理目标连接到IP网络一样。
需要通过IPS模块访问存储的每台iSCSI主机都需要安装兼容的iSCSI驱动程序。使用iSCSI协议, iSCSI驱动程序允许iSCSI主机通过IP网络传输SCSI请求和响应。从主机操作系统的角度, iSCSI驱动看来是SCSI运输驱动程序,与主机中一条外围通道的FC驱动程序相似。从存储设备的角度,每台IP主机出现为一台FC主机。
将SCSI从IP主机路由到FC存储设备包括以下主要操作:
默认情况下,IPS模块不将FC目标导入iSCSI。在IPS模块使FC目标可用于iSCSI启动器之前,必须配置动态或静态映射。当两个都被配置后,静态被映射的FC目标有一个配置的名称。在此配置中,您将看到静态映射的示例。使用动态映射时,每次iSCSI主机连接到IPS模块时都会创建新的FC N端口,为此N端口分配的nWWN和pWWN可能不同。请使用静态映射方法,如果您需要iSCSI主机每次获得同样nWWN和pWWN,它接到IPS模块。静态映射可用于IPS模块,以访问具有基于启动器的pWWN和/或nWWN的访问控制和LUN映射/掩码配置的智能FC存储阵列。
您可以通过指定将通告每个静态映射的iSCSI目标的IPS端口列表并指定允许访问该目标的iSCSI启动器节点名称列表来控制对每个静态映射的iSCSI目标的访问。FC基于分区的访问控制和基于ISCSI的访问控制是访问控制可以为iSCSI提供的二个机制。可以同时使用两个方法。在此配置中,已允许特定VSAN使用默认分区。IPS模块使用基于iSCSI节点名称的访问控制列表和基于FC分区的访问控制列表,以在iSCSI发现和iSCSI会话创建期间实施访问控制。
然后,IPS模块为此IP主机创建FC虚拟N端口(N端口可能已存在),并对IP主机正在访问的FC目标pWWN的FCID执行FC名称服务器查询。它使用IP主机虚拟N端口的pwwn作为名称服务器查询的请求方。因此,名称服务器执行的一次强制的pwwn区域查询并且回应查询。如果名称服务器返回FCID,则接受iSCSI会话。否则,登录请求被拒绝。
在本节中,您将获得配置MDS 9216和Cisco iSCSI Driver for Linux的信息。
注意:要查找有关本文档中使用的命令的其他信息,请使用《Cisco MDS 9000系列命令参考》和《Cisco MDS 9000系列软件配置指南》。
本文档使用下图所示的网络设置。
本文档使用如下所示的配置。
sse-andres(Linux版本2.4.18-3) |
---|
在Linux主机上,iscsi.conf需要修改。 [root@sse-andres etc]# cat /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.242 Continuous=yes !--- Configure the IP address of the GE interface that accepts iSCSI request 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= !--- 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 will permanently contain entries !--- for all iSCSI targets ever 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 editing 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 |
梵蒂冈(思科MDS 9216) |
---|
.... vsan database vsan 555 !--- Vsan 555 has been used for iSCSI targets. .... vsan database vsan 555 interface fc1/3 vsan 555 interface fc1/7 .... boot system bootflash:/s111a boot kickstart bootflash:/k111a ip domain-name cisco.com ip name-server 144.254.10.123 ip default-gateway 10.48.69.129 ip route 10.48.69.154 255.255.255.255 10.48.69.200 iscsi authentication none ip routing iscsi initiator ip-address 10.48.69.154 vsan 555 !--- Identifies the iSCSI initiator based on the IP address ande. !--- Virtual N port is created for each NIC or network interface. !--- Vsan 555 has been used for iSCSI targets, configure initiator IP address. !--- Targets via Vsan 555 are accesible by iSCSI initiators. iscsi virtual-target name seagate pWWN 21:00:00:20:37:67:f7:a2 fc-lun 0000 iscsi-lun 0000 initiator ip address 10.48.69.154 permit !--- Create a static iSCSI virtual target for LUN 3, 4, 5 of Clariion. iscsi virtual-target name clariion-lun-3-4-5 pWWN 50:06:01:60:88:02:a8:2b fc-lun 0003 iscsi-lun 0003 pWWN 50:06:01:60:88:02:a8:2b fc-lun 0004 iscsi-lun 0004 pWWN 50:06:01:60:88:02:a8:2b fc-lun 0005 iscsi-lun 0005 advertise interface GigabitEthernet2/1 initiator ip address 10.48.69.154 permit ... switchname vatican .... zone default-zone permit vsan 555 .... interface GigabitEthernet2/1 ip address 10.48.69.242 255.255.255.192 iscsi authentication none no shutdown .... interface fc1/3 switchport mode FL switchport trunk mode off no shutdown .... interface fc1/7 switchport mode F switchport trunk mode off no shutdown interface mgmt0 ip address 10.48.69.157 255.255.255.192 interface iscsi2/1 no shutdown |
显示自sse-andres |
---|
[root@sse-andres init.d]# ./iscsi stop Stopping iSCSI: sync umount sync iscsi [root@sse-andres sbin]# pwd /usr/local/sbin [root@sse-andres sbin]# iscsi-ls ******************************************************************************* Cisco iSCSI Driver Version ... 3.4.0.4 (27-Aug-2003 ) ******************************************************************************* [root@sse-andres init.d]# ./iscsi start Name and location of the bindings file is changed to /var/lib/iscsi/bindings Starting iSCSI: iscsi iscsid fsck/mount [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:37402 10.48.69.242:3260 ESTABLISHED tcp 0 0 10.48.69.154:37403 10.48.69.242:3260 ESTABLISHED tcp 0 0 10.48.69.154:37401 10.48.69.242:3260 ESTABLISHED !--- After adding the clariion-lun-3-4-5 virtual target on the MDS 9216. bindings [root@sse-andres iscsi]# cat 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 seagate 0 1 clariion-lun-3-4-5 [root@sse-andres iscsi]# !--- To see the devices currently available, issue the iscsi-ls command. [root@sse-andres sbin]# iscsi-ls ******************************************************************************* Cisco iSCSI Driver Version ... 3.4.0.4 (27-Aug-2003 ) ******************************************************************************* TARGET NAME : seagate TARGET ALIAS : HOST NO : 1 BUS NO : 0 TARGET ID : 0 DISCOVERY ADDRESS : 10.48.69.242:3260 SESSION ESTABLISHED AT : Tue Sep 16 16:41:01 2003 NO. OF PORTALS : 1 TARGET ADDRESS 1 : 10.48.69.242:3260,128 SESSION ID : ISID 00023d000001 TSID 80 ******************************************************************************* TARGET NAME : clariion-lun-3-4-5 TARGET ALIAS : HOST NO : 1 BUS NO : 0 TARGET ID : 1 DISCOVERY ADDRESS : 10.48.69.242:3260 SESSION ESTABLISHED AT : Tue Sep 16 16:41:03 2003 NO. OF PORTALS : 1 TARGET ADDRESS 1 : 10.48.69.242:3260,128 SESSION ID : ISID 00023d000001 TSID 80 ******************************************************************************* [root@sse-andres sbin]# [root@sse-andres sbin]# iscsi-ls -l ******************************************************************************* Cisco iSCSI Driver Version ... 3.4.0.4 (27-Aug-2003 ) ******************************************************************************* TARGET NAME : seagate TARGET ALIAS : HOST NO : 1 BUS NO : 0 TARGET ID : 0 DISCOVERY ADDRESS : 10.48.69.242:3260 SESSION ESTABLISHED AT : Wed Sep 17 12:28:18 2003 NO. OF PORTALS : 1 TARGET ADDRESS 1 : 10.48.69.242:3260,128 SESSION ID : ISID 00023d000001 TSID 80 DEVICE DETAILS : -------------- LUN ID : 0 Vendor: SEAGATE Model: ST318203FC Rev: 0004 Type: Direct-Access ANSI SCSI revision: 02 ******************************************************************************* TARGET NAME : clariion-lun-3-4-5 TARGET ALIAS : HOST NO : 1 BUS NO : 0 TARGET ID : 1 DISCOVERY ADDRESS : 10.48.69.242:3260 SESSION ESTABLISHED AT : Wed Sep 17 12:28:19 2003 NO. OF PORTALS : 1 TARGET ADDRESS 1 : 10.48.69.242:3260,128 SESSION ID : ISID 00023d000001 TSID 80 DEVICE DETAILS : -------------- LUN ID : 3 Vendor: DGC Model: RAID 0 Rev: 0632 Type: Direct-Access ANSI SCSI revision: 04 LUN ID : 4 Vendor: DGC Model: RAID 0 Rev: 0632 Type: Direct-Access ANSI SCSI revision: 04 LUN ID : 5 Vendor: DGC Model: RAID 0 Rev: 0632 Type: Direct-Access ANSI SCSI revision: 04 ******************************************************************************* [root@sse-andres sbin]# [root@sse-andres sbin]# iscsi-ls -t seagate ******************************************************************************* Cisco iSCSI Driver Version ... 3.4.0.4 (27-Aug-2003 ) ******************************************************************************* TARGET NAME : seagate TARGET ALIAS : HOST NO : 1 BUS NO : 0 TARGET ID : 0 DISCOVERY ADDRESS : 10.48.69.242:3260 SESSION ESTABLISHED AT : Tue Sep 16 16:41:02 2003 NO. OF PORTALS : 1 TARGET ADDRESS 1 : 10.48.69.242:3260,128 SESSION ID : ISID 00023d000001 TSID 80 ******************************************************************************* [root@sse-andres sbin]# [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: 64 heads, 32 sectors, 17366 cylinders Units = cylinders of 2048 * 512 bytes Device Boot Start End Blocks Id System Disk /dev/sdc: 64 heads, 32 sectors, 2047 cylinders Units = cylinders of 2048 * 512 bytes Device Boot Start End Blocks Id System /dev/sdc1 1 2048 2096451 42 SFS Partition 1 does not end on cylinder boundary: phys=(260, 254, 63) should be (260, 63, 32) Disk /dev/sdd: 64 heads, 32 sectors, 1023 cylinders Units = cylinders of 2048 * 512 bytes Device Boot Start End Blocks Id System Disk /dev/sde: 64 heads, 32 sectors, 1023 cylinders Units = cylinders of 2048 * 512 bytes Device Boot Start End Blocks Id System [root@sse-andres sbin]# [root@sse-andres log]# pwd /var/log/messages Sep 16 16:40:20 sse-andres kernel: iSCSI: driver shutdown killing all sessions Sep 16 16:40:21 sse-andres kernel: iSCSI: driver shutdown killing timer 19252 Sep 16 16:40:21 sse-andres kernel: iSCSI: driver shutdown waiting for timer to terminate Sep 16 16:40:21 sse-andres kernel: iSCSI: driver shutdown complete at 35634430 Sep 16 16:41:01 sse-andres iscsid[19603]: version 3.4.0.4 (27-Aug-2003) Sep 16 16:41:01 sse-andres iscsid[19603]: INBP boot check returned this_is_inbp_boot = 0 Sep 16 16:41:01 sse-andres kernel: iSCSI: bus 0 target 0 = seagate Sep 16 16:41:01 sse-andres kernel: iSCSI: bus 0 target 0 portal 0 = address 10.48.69.242 port 3260 group 128 Sep 16 16:41:01 sse-andres kernel: iSCSI: bus 0 target 0 trying to establish session c2582000 to portal 0, a ddress 10.48.69.242 port 3260 group 128 Sep 16 16:41:01 sse-andres kernel: iSCSI: bus 0 target 0 established session c2582000 #1, portal 0, address 10.48.69.242 port 3260 group 128 Sep 16 16:41:01 sse-andres kernel: scsi singledevice 1 0 0 0 Sep 16 16:41:01 sse-andres kernel: Vendor: SEAGATE Model: ST318203FC Rev: 0004 Sep 16 16:41:01 sse-andres kernel: Type: Direct-Access ANSI SCSI revision: 02 Sep 16 16:41:01 sse-andres kernel: Attached scsi disk sdb at scsi1, channel 0, id 0, lun 0 Sep 16 16:41:01 sse-andres kernel: iSCSI: bus 0 target 1 = clariion-lun-3-4-5 Sep 16 16:41:01 sse-andres kernel: iSCSI: bus 0 target 1 portal 0 = address 10.48.69.242 port 3260 group 128 Sep 16 16:41:01 sse-andres kernel: SCSI device sdb: 35566480 512-byte hdwr sectors (18210 MB) Sep 16 16:41:01 sse-andres kernel: sdb: |
来自梵蒂冈的显示器(思科MDS 9216) |
---|
vatican# show zone status VSAN: 1 default-zone: permit distribute: active only Interop: Off Full Zoning Database : Zonesets:0 Zones:0 Aliases: 0 Active Zoning Database : Database Not Available Status: VSAN: 555 default-zone: permit distribute: active only Interop: Off Full Zoning Database : Zonesets:0 Zones:0 Aliases: 0 Active Zoning Database : Database Not Available Status: Default zoning policy changed to permit at Thu Sep 11 14:26:07 2003 !--- VSAN 555 has been used for this configuration, default-zone !--- behavior has been set to permit. vatican# sh flogi database vsan 555 --------------------------------------------------------------------------- INTERFACE VSAN FCID PORT NAME NODE NAME --------------------------------------------------------------------------- fc1/3 555 0x6b00e8 21:00:00:20:37:67:f7:a2 20:00:00:20:37:67:f7:a2 fc1/7 555 0x6b0100 50:06:01:60:88:02:a8:2b 50:06:01:60:11:02:a8:2b iscsi2/1 555 0x6b0103 20:03:00:0c:30:57:5e:c2 20:02:00:0c:30:57:5e:c2 Total number of flogi = 3. vatican# sh fcns da vsan 555 VSAN 555: -------------------------------------------------------------------------- FCID TYPE PWWN (VENDOR) FC4-TYPE:FEATURE -------------------------------------------------------------------------- 0x6b00e8 NL 21:00:00:20:37:67:f7:a2 (Seagate) scsi-fcp:target 0x6b0100 N 50:06:01:60:88:02:a8:2b (Clariion) scsi-fcp:target 0x6b0103 N 20:03:00:0c:30:57:5e:c2 (Cisco) scsi-fcp:init isc..w Total number of entries = 3 !--- FCID 0x6b0103 is the virtual N port(HBA) for the iSCSI host. vatican# show fcns database detail vsan 555 ------------------------ VSAN:555 FCID:0x6b00e8 ------------------------ port-wwn (vendor) :21:00:00:20:37:67:f7:a2 (Seagate) node-wwn :20:00:00:20:37:67:f7:a2 class :3 node-ip-addr :0.0.0.0 ipa :ff ff ff ff ff ff ff ff fc4-types:fc4_features:scsi-fcp:target symbolic-port-name : symbolic-node-name : port-type :NL port-ip-addr :0.0.0.0 fabric-port-wwn :20:03:00:0c:30:57:5e:c0 hard-addr :0x000000 ------------------------ VSAN:555 FCID:0x6b0100 ------------------------ port-wwn (vendor) :50:06:01:60:88:02:a8:2b (Clariion) node-wwn :50:06:01:60:11:02:a8:2b class :3 node-ip-addr :0.0.0.0 ipa :ff ff ff ff ff ff ff ff fc4-types:fc4_features:scsi-fcp:target symbolic-port-name : symbolic-node-name : port-type :N port-ip-addr :0.0.0.0 fabric-port-wwn :20:07:00:0c:30:57:5e:c0 hard-addr :0x000000 ------------------------ VSAN:555 FCID:0x6b0103 ------------------------ port-wwn (vendor) :20:03:00:0c:30:57:5e:c2 (Cisco) node-wwn :20:02:00:0c:30:57:5e:c2 class :2,3 node-ip-addr :10.48.69.154 ipa :ff ff ff ff ff ff ff ff fc4-types:fc4_features:scsi-fcp:init iscsi-gw symbolic-port-name : symbolic-node-name :10.48.69.154 port-type :N port-ip-addr :0.0.0.0 fabric-port-wwn :20:41:00:0c:30:57:5e:c0 hard-addr :0x000000 Total number of entries = 3 vatican# show iscsi initiator detail iSCSI Node name is 10.48.69.154 iSCSI Initiator name: iqn.1987-05.com.cisco:01.2079ebcbfce iSCSI alias name: sse-andres Node WWN is 20:02:00:0c:30:57:5e:c2 (dynamic) Member of vsans: 555 Number of Virtual n_ports: 1 Virtual Port WWN is 20:03:00:0c:30:57:5e:c2 (dynamic) Interface iSCSI 2/1, Portal group tag is 0x80 VSAN ID 555, FCID 0x6b0103 2 FC sessions, 2 iSCSI sessions iSCSI session details Target: seagate Statistics: PDU: Command: 52, Response: 52 Bytes: TX: 65688, RX: 0 Number of connection: 1 TCP parameters Local 10.48.69.242:3260, Remote 10.48.69.154:37738 Path MTU: 1500 bytes Retransmission timeout: 300 ms Round trip time: Smoothed 3 ms, Variance: 5 Advertized window: Current: 142 KB, Maximum: 142 KB, Scale: 3 Peer receive window: Current: 576 KB, Maximum: 576 KB, Scale: 4 Congestion window: Current: 10 KB Target: clariion-lun-3-4-5 Statistics: PDU: Command: 79, Response: 79 Bytes: TX: 115000, RX: 0 Number of connection: 1 TCP parameters Local 10.48.69.242:3260, Remote 10.48.69.154:37739 Path MTU: 1500 bytes Retransmission timeout: 300 ms Round trip time: Smoothed 4 ms, Variance: 6 Advertized window: Current: 192 KB, Maximum: 192 KB, Scale: 3 Peer receive window: Current: 576 KB, Maximum: 576 KB, Scale: 4 Congestion window: Current: 10 KB FCP Session details Target FCID: 0x6b00e8 (S_ID of this session: 0x6b0103) pWWN: 21:00:00:20:37:67:f7:a2, nWWN: 20:00:00:20:37:67:f7:a2 Session state: LOGGED_IN 1 iSCSI sessions share this FC session Target: seagate Negotiated parameters RcvDataFieldSize 1392 our_RcvDataFieldSize 1392 MaxBurstSize 0, EMPD: FALSE Random Relative Offset: FALSE, Sequence-in-order: Yes Statistics: PDU: Command: 0, Response: 52 Target FCID: 0x6b0100 (S_ID of this session: 0x6b0103) pWWN: 50:06:01:60:88:02:a8:2b, nWWN: 50:06:01:60:11:02:a8:2b Session state: LOGGED_IN 1 iSCSI sessions share this FC session Target: clariion-lun-3-4-5 Negotiated parameters RcvDataFieldSize 1024 our_RcvDataFieldSize 1392 MaxBurstSize 0, EMPD: FALSE Random Relative Offset: FALSE, Sequence-in-order: Yes Statistics: PDU: Command: 0, Response: 79 vatican# show iscsi initiator iscsi-session detail iSCSI Node name is 10.48.69.154 iSCSI Initiator name: iqn.1987-05.com.cisco:01.2079ebcbfce iSCSI alias name: sse-andres Node WWN is 20:02:00:0c:30:57:5e:c2 (dynamic) Member of vsans: 555 Number of Virtual n_ports: 1 Virtual Port WWN is 20:03:00:0c:30:57:5e:c2 (dynamic) Interface iSCSI 2/1, Portal group tag is 0x80 VSAN ID 555, FCID 0x6b0103 2 FC sessions, 2 iSCSI sessions iSCSI session details Target: seagate Statistics: PDU: Command: 52, Response: 52 Bytes: TX: 65688, RX: 0 Number of connection: 1 TCP parameters Local 10.48.69.242:3260, Remote 10.48.69.154:37738 Path MTU: 1500 bytes Retransmission timeout: 300 ms Round trip time: Smoothed 3 ms, Variance: 4 Advertized window: Current: 142 KB, Maximum: 142 KB, Scale: 3 Peer receive window: Current: 576 KB, Maximum: 576 KB, Scale: 4 Congestion window: Current: 10 KB Target: clariion-lun-3-4-5 Statistics: PDU: Command: 79, Response: 79 Bytes: TX: 115000, RX: 0 Number of connection: 1 TCP parameters Local 10.48.69.242:3260, Remote 10.48.69.154:37739 Path MTU: 1500 bytes Retransmission timeout: 300 ms Round trip time: Smoothed 4 ms, Variance: 5 Advertized window: Current: 192 KB, Maximum: 192 KB, Scale: 3 Peer receive window: Current: 576 KB, Maximum: 576 KB, Scale: 4 Congestion window: Current: 10 KB vatican# show iscsi initiator fcp-session detail iSCSI Node name is 10.48.69.154 iSCSI Initiator name: iqn.1987-05.com.cisco:01.2079ebcbfce iSCSI alias name: sse-andres Node WWN is 20:02:00:0c:30:57:5e:c2 (dynamic) Member of vsans: 555 Number of Virtual n_ports: 1 Virtual Port WWN is 20:03:00:0c:30:57:5e:c2 (dynamic) Interface iSCSI 2/1, Portal group tag is 0x80 VSAN ID 555, FCID 0x6b0103 2 FC sessions, 2 iSCSI sessions FCP Session details Target FCID: 0x6b00e8 (S_ID of this session: 0x6b0103) pWWN: 21:00:00:20:37:67:f7:a2, nWWN: 20:00:00:20:37:67:f7:a2 Session state: LOGGED_IN 1 iSCSI sessions share this FC session Target: seagate Negotiated parameters RcvDataFieldSize 1392 our_RcvDataFieldSize 1392 MaxBurstSize 0, EMPD: FALSE Random Relative Offset: FALSE, Sequence-in-order: Yes Statistics: PDU: Command: 0, Response: 52 Target FCID: 0x6b0100 (S_ID of this session: 0x6b0103) pWWN: 50:06:01:60:88:02:a8:2b, nWWN: 50:06:01:60:11:02:a8:2b Session state: LOGGED_IN 1 iSCSI sessions share this FC session Target: clariion-lun-3-4-5 Negotiated parameters RcvDataFieldSize 1024 our_RcvDataFieldSize 1392 MaxBurstSize 0, EMPD: FALSE Random Relative Offset: FALSE, Sequence-in-order: Yes Statistics: PDU: Command: 0, Response: 79 vatican# show ips stats tcp interface gigabitethernet 2/1 detail TCP Statistics for port GigabitEthernet2/1 TCP send stats 43984 segments, 4563280 bytes 23363 data, 20571 ack only packets 29 control (SYN/FIN/RST), 0 probes, 28 window updates 3 segments retransmitted, 144 bytes 3 retransmitted while on ethernet send queue, 1 packets split 0 delayed acks sent TCP receive stats 62083 segments, 20548 data packets in sequence, 997148 bytes in sequence 1504 predicted ack, 20303 predicted data 0 bad checksum, 0 multi/broadcast, 0 bad offset 0 no memory drops, 0 short segments 0 duplicate bytes, 0 duplicate packets 0 partial duplicate bytes, 0 partial duplicate packets 0 out-of-order bytes, 1 out-of-order packets 0 packet after window, 0 bytes after window 0 packets after close 21696 acks, 4562950 ack bytes, 0 ack toomuch, 19373 duplicate acks 0 ack packets left of snd_una, 5 non-4 byte aligned packets 19282 window updates, 0 window probe 745 pcb hash miss, 478 no port, 6 bad SYN, 0 paws drops TCP Connection Stats 0 attempts, 35 accepts, 35 established 33 closed, 13 drops, 0 conn drops 3 drop in retransmit timeout, 10 drop in keepalive timeout 0 drop in persist drops, 0 connections drained TCP Miscellaneous Stats 21105 segments timed, 21685 rtt updated 15 retransmit timeout, 1 persist timeout 19448 keepalive timeout, 19437 keepalive probes TCP SACK Stats 0 recovery episodes, 0 data packets, 0 data bytes 0 data packets retransmitted, 0 data bytes retransmitted 0 connections closed, 0 retransmit timeouts TCP SYN Cache Stats 37 entries, 35 connections completed, 0 entries timed out 0 dropped due to overflow, 2 dropped due to RST 0 dropped due to ICMP unreach, 0 dropped due to bucket overflow 0 abort due to no memory, 1 duplicate SYN, 183 no-route SYN drop 0 hash collisions, 0 retransmitted TCP Active Connections Local Address Remote Address State Send-Q Recv-Q 10.48.69.242:3260 10.48.69.154:37737 ESTABLISH 0 0 10.48.69.242:3260 10.48.69.154:37738 ESTABLISH 0 0 10.48.69.242:3260 10.48.69.154:37739 ESTABLISH 0 0 0.0.0.0:3260 0.0.0.0:0 LISTEN 0 0 vatican# show iscsi virtual-target configured target: clariion-lun-3-4-5 * Port WWN 50:06:01:60:88:02:a8:2b Configured node No. of LU mapping: 3 iSCSI LUN: 0003, FC LUN: 0003 iSCSI LUN: 0004, FC LUN: 0004 iSCSI LUN: 0005, FC LUN: 0005 No. of advertised interface: 1 GigabitEthernet 2/1 No. of initiators permitted: 2 initiator 10.48.69.154/32 is permitted initiator 10.61.80.53/32 is permitted all initiator permit is disabled target: seagate * Port WWN 21:00:00:20:37:67:f7:a2 Configured node No. of LU mapping: 1 iSCSI LUN: 0000, FC LUN: 0000 No. of initiators permitted: 1 initiator 10.48.69.154/32 is permitted all initiator permit is disabled vatican# show iscsi initiator configured iSCSI Node name is 10.48.69.238 Member of vsans: 1016 iSCSI Node name is 10.48.69.239 Member of vsans: 1016 iSCSI Node name is 100.100.100.10 Member of vsans: 600 No. of PWWN: 1 Port WWN is 20:03:00:0c:30:6c:24:42 iSCSI Node name is 10.48.69.154 Member of vsans: 555 vatican# show ips arp interface gigabitethernet 2/1 Protocol Address Age (min) Hardware Addr Type Interface Internet 10.48.69.200 0 0008.e21e.c7bc ARPA GigabitEthernet2/1 Internet 10.48.69.201 5 0202.3d30.45c9 ARPA GigabitEthernet2/1 Internet 10.48.69.206 8 0202.3d30.45ce ARPA GigabitEthernet2/1 Internet 10.48.69.209 5 0009.7c60.561f ARPA GigabitEthernet2/1 Internet 10.48.69.226 6 0060.08f6.bc1a ARPA GigabitEthernet2/1 Internet 10.48.69.229 3 0800.209e.edab ARPA GigabitEthernet2/1 Internet 10.48.69.230 3 0001.0349.ff13 ARPA GigabitEthernet2/1 Internet 10.48.69.231 5 0002.b3c1.7dab ARPA GigabitEthernet2/1 Internet 10.48.69.232 8 0003.4796.34c3 ARPA GigabitEthernet2/1 Internet 10.48.69.233 0 0010.4200.7d5b ARPA GigabitEthernet2/1 Internet 10.48.69.235 11 0800.20b6.6559 ARPA GigabitEthernet2/1 Internet 10.48.69.238 10 0030.6e1b.6f51 ARPA GigabitEthernet2/1 Internet 10.48.69.239 2 0030.6e1c.a00b ARPA GigabitEthernet2/1 Internet 10.48.69.241 0 000b.cdaf.b4c3 ARPA GigabitEthernet2/1 Internet 10.48.69.248 6 0202.3d30.45f8 ARPA GigabitEthernet2/1 Internet 10.48.69.252 2 0202.3d30.45fc ARPA GigabitEthernet2/1 Internet 10.10.2.28 9 0202.3d0a.021c ARPA GigabitEthernet2/1 vatican# vatican# show scsi-targe devices vsan 555 -------------------------------------------------------------------------------- VSAN FCID PWWN VENDOR MODEL REV -------------------------------------------------------------------------------- 555 0x6b00e8 21:00:00:20:37:67:f7:a2 SEAGATE ST318203FC 0004 555 0x6b0100 50:06:01:60:88:02:a8:2b DGC RAID 0 0632 vatican# sh int iscsi 2/1 iscsi2/1 is up Hardware is GigabitEthernet Port WWN is 20:41:00:0c:30:57:5e:c0 Admin port mode is ISCSI Port mode is ISCSI Speed is 1 Gbps iSCSI initiator is identified by name Number of iSCSI session: 3, Number of TCP connection: 3 Configured TCP parameters Local Port is 3260 PMTU discover is enabled, reset timeout is 3600 sec Keepalive-timeout is 60 sec Minimum-retransmit-time is 300 ms Max-retransmissions 4 Sack is disabled Maximum allowed bandwidth is 500000 kbps Minimum available bandwidth is 500000 kbps Estimated round trip time is 10000 usec 5 minutes input rate 16 bits/sec, 2 bytes/sec, 0 frames/sec 5 minutes output rate 16 bits/sec, 2 bytes/sec, 0 frames/sec iSCSI statistics Input 17258 packets, 841000 bytes Command 717 pdus, Data-out 0 pdus, 0 bytes Output 19951 packets, 4216300 bytes Response 711 pdus (with sense 12), R2T 0 pdus Data-in 2687 pdus, 3246192 bytes vatican# sh ip route Codes: C - connected, S - static Default gateway is 10.48.69.129 S 10.48.69.154 via 10.48.69.200, gigabitethernet2-1 S 10.61.80.53 via 10.48.69.200, gigabitethernet2-1 C 10.48.69.192/26 is directly connected, gigabitethernet2-1 C 10.48.69.128/26 is directly connected, mgmt0 vatican# sh ips ip route interface gigabitethernet 2/1 Codes: C - connected, S - static No default gateway S 10.61.80.53/32 via 10.48.69.200, GigabitEthernet2/1 S 10.48.69.154/32 via 10.48.69.200, GigabitEthernet2/1 C 10.48.69.192/26 is directly connected, GigabitEthernet2/1 vatican# sh ip route ? configured Show the IP routes configured on the system <cr> Carriage Return |
交换矩阵管理器的拓扑图
选择FC-LUN以显示设备管理器中LUN的pWWN、LUN ID和容量。
选择IP-iSCSI以显示“Device Manager(设备管理器)”中的iSCSI会话。
版本 | 发布日期 | 备注 |
---|---|---|
1.0 |
10-Nov-2004 |
初始版本 |