linux进程通信ips,Linux对MDS/IPS-8配置示例的iSCSI主机

目录

简介 Cisco的iSCSI驱动,在服务器上位于,是iSCSI解决方法的关键组件。这些iSCSI驱动拦截SCSI命令,压缩它们到IP包,并重发它们到Cisco SN 5420、Cisco SN 5428, Cisco SN5428-2或者Cisco MDS/IPS-8。本文为Linux iSCSI主机提供配置示例给MDS/IPS-8。

开始使用前

Cisco MDS 9000在的本文使用是指在MDS 9000系列(MD 9506的所有光纤信道(FC)交换产品, MDS9509, MDS9216)。IPS刀片是指IP存储设备服务模块。有关文档规则的详细信息,请参阅

Cisco 技术提示规则。

在您开始进行您的在您需要安装iSCSI驱动是兼容对您的Linux版本的MDS9000前的iSCSI配置。驱动程序的多数当前版本可以在Linux (仅限注册用户)页的Cisco iSCSI驱动找到在Cisco.com。README.txt文件包括在驱动程序zip(tar)文件中。README包含关于许可证协议的信息、驱动程续安装和配置说明以及驱动体系结构的技术概要。

操作系统的需求和补丁程序需求在Cisco iSCSI驱动的System Requirements部分描述Linux版本注释的。

使用的组件 本文档中的信息基于以下软件和硬件版本。

Linux服务器[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 )

*******************************************************************************

有软件版本的1.1(1a) Cisco MDS 9216

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模块提供IP主机存取对于FC存储设备。IPS模块是DS-X9308-SMIP。它提供透明SCSI路由。使用iSCSI协议的IP主机能透明访问在IP主机在iSCSI协议数据单元的FC网络的iSCSI目标(PDU)发送SCSI命令集封装到在TCP/IP连接的一个MDS9000 IPS端口。在IPS模块上,连接提供以适当地配置的千兆以太网接口的形式。IPS模块使您创建虚拟iSCSI目标并且映射他们到在FC SAN上可用的物理FC目标。它提交FC目标到IP主机,好象物理目标附加对IP网络。

通过IPS模块要求对存储设备的访问的每台iSCSI主机需要有安装的一兼容的iSCSI驱动。使用iSCSI协议, iSCSI驱动允许iSCSI主机传输SCSI请求和答复在IP网络。从主机操作系统的角度, iSCSI驱动看来是SCSI运输驱动程序,与主机中一条外围通道的FC驱动程序相似。从存储设备的角度,每台IP主机出现为一台FC主机。

路由SCSI从IP主机到FC存储设备包括以下主要操作:

传输iSCSI请求和答复在IP网络在主机和IPS模块之间。

路由SCSI请求和答复在主机在IP网络和FC存储设备之间(转换iSCSI对FCP反之亦然)。此运输路线由IPS模块执行。

传输FCP请求或答复在IPS模块和FC存储设备之间。

默认情况下IPS模块不导入FC目标对iSCSI。在IPS模块安排FC目标可用iSCSI创始者前,动态或静态映射必须配置。当两个都被配置后,静态被映射的FC目标有一个配置的名称。在此配置中您将参见静态映射示例。使用动态映射,每次iSCSI主机连接对IPS模块一个新的FC N端口创建,并且为此N端口和pWWNs分配的nWWNs可能不同的。请使用静态映射方法,如果您需要iSCSI主机每次获得同样nWWN和pWWN,它接到IPS模块。静态映射在IPS模块可以用于访问有映射的访问控制和的LUN/根据创始者的pWWNs和nWWNs的屏蔽的配置的智能FC存储阵列。

您能通过指定的IPS端口列表将是通告和指定iSCSI允许的发起者节点名列表控制对每个静态映射的iSCSI目标的访问访问它。FC基于分区的访问控制和基于ISCSI的访问控制是访问控制可以为iSCSI提供的二个机制。可以同时使用两个方法。在此配置默认区域为特定VSAN允许。IPS模块使用基于域名的iSCSI的节点和FC基于分区的访问控制列表在iSCSI发现和iSCSI会话创建时强制执行访问控制。

iSCSI发现:当iSCSI主机创建一个iSCSI发现会话并询问所有iSCSI目标时, IPS模块返回iSCSI目标列表此iSCSI主机允许基于接入控制策略的接入。

iSCSI会话创建:当IP主机启动iSCSI会话时, IPS模块验证指定的iSCSI目标(在会议登录请求)是否静态映射到目标,如果是,验证IP主机的iSCSI节点名是否允许访问目标。如果IP主机没有权限,其登录被拒绝。

IPS模块,然后创建一个FC虚拟N端口(N端口可能已经存在)此IP主机的并且执行由IP主机访问FC目标pwwn FCID的一FC名称服务器查询。它使用IP主机虚拟N端口的pwwn作为名称服务器查询的请求方。因此,名称服务器执行的一次强制的pwwn区域查询并且回应查询。如果FCID由名称服务器返回,则iSCSI会话接受。否则,登录请求被拒绝。

配置

在此部分,您提交以信息配置MDS9216和Cisco iSCSI驱动Linux的。

网络图

本文档使用下图所示的网络设置。

format,png

配置

本文档使用如下所示的配置。

sse-andres (Linux版本2.4.18-3)

梵蒂冈(MDS9216)

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=

# LUNs=

# LUNs=

#

# 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 seagate 0 1 clariion-lun-3-4-5 [root@sse-andres iscsi]# !--- 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

梵蒂冈(Cisco 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

本部分所提供的信息可用于确认您的配置是否正常工作。

netstat-n -验证在Linux主机的TCP连接。

iscsi-ls -显示现在可以得到的设备;请使用在Linux主机的iscsi-ls工具。

show zone status -显示区域信息。

show fcns database vsan 555 -显示一特定VSAN的名称服务器信息。

show flogi database vsan 555 -显示一特定VSAN的FLOGI服务器信息。

show vsan membership -请显示不同的VSAN的接口信息。

show iscsi initiator detail -显示iSCSI发起者信息。

show iscsi initiator iscsi-session detail -显示iSCSI发起者会话的详细信息。

show iscsi initiator fcp-session detail -显示iSCSI发起者FCP会话的详细信息。

show ips stats tcp interface gigabitethernet 2/1 detail -显示特定GE接口的TCP统计信息。

show iscsi virtual-target configured -显示在MDS9000配置的iSCSI虚拟目标。

show iscsi initiator configured -显示在MDS9000配置的iSCSI initators。

show ips arp interface gigabitethernet 2/1 -显示IPS特定GE接口的arp信息。

show scsi-target devices vsan 555 -显示特定VSAN的SCSI设备(映射对iSCSI-LUN的FC-LUNs)。

show int iscsi 2/1 -显示iSCSI接口。

show iscsi stats iscsi 2/1 -显示iSCSI统计信息。

show int gigabitethernet 2/1 -显示GE接口。

show ip route -显示Ip route信息。

本部分提供的信息可用于对配置进行故障排除。

故障排除步骤 下面提供与本配置有关的故障排除信息。

从sse-andres显示

从梵蒂冈(Cisco MDS 9216)显示

从sse-andres显示

[root@sse-andres init.d]# ./iscsi stopStopping 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 startName and location of the bindings file is changed to /var/lib/iscsi/bindings

Starting iSCSI: iscsi iscsid fsck/mount [root@sse-andres sbin]# netstat -nActive 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 -lDisk /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:

从梵蒂冈(Cisco MDS 9216)显示

vatican# show zone statusVSAN: 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 555VSAN 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 detailiSCSI 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 detailiSCSI 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 detailiSCSI 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 detailTCP 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 configuredtarget: 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 configurediSCSI 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/1Protocol 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/1iscsi2/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 routeCodes: 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/1Codes: 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

Carriage Return

组织管理器和设备管理器显示 此部分提供从MDS组织管理器1.1(2)和设备管理器的屏幕截图1.1.(2)。

从组织管理器的拓扑图

format,png

format,png

选择FC-LUNs显示pWWNs、LUN您的从设备管理器的LUN ID和产能。

format,png

选择ip-iscsi显示从设备管理器的iSCSI会话。

format,png

相关信息

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值