Chinaunix首页 | 论坛 | 博客
  • 博客访问: 11591138
  • 博文数量: 8065
  • 博客积分: 10002
  • 博客等级: 中将
  • 技术积分: 96708
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-16 17:06
文章分类

全部博文(8065)

文章存档

2008年(8065)

分类: 服务器与存储

2008-07-14 17:01:26

ISCSI target:windows 2000 pro操作系统
ISCSI initiator:SUSE linux 9.0

SUSE LINUX 9.0

配置文件:iscsi.conf
# You may configure CHAP authentication settings that will apply to every
# target discovered at a particular address by adding "OutgoingUsername=u"
"iscsi.conf" 525L, 17113C 1,1
# and "OutgoingPassword=p" entries indented below the "DiscoveryAddress"
# entry they apply to.
#
# Example:
#
DiscoveryAddress=192.168.1.206
# OutgoingUsername=alice
# OutgoingPassword=nty57nbe
#
# or
#
#DiscoveryAddress=192.168.10.94
# Username=alice
# Password=nty57nbe

现在在配置完连接后出现问题,请大家帮忙解决,
我在WINDOWS下安装initiator能够正常使用,说明不是磁盘问题

启动:
NT1:/etc # /etc/init.d/iscsi start
Starting iSCSI: iscsi iscsid fsck/mount done
NT1:/etc # iscsi-ls
*******************************************************************************
Cisco iSCSI Driver Version ... 4.0.188.13 ( 21-May-2004 )
*******************************************************************************
TARGET NAME : suse
TARGET ALIAS :
HOST NO : 1
BUS NO : 0
TARGET ID : 0
TARGET ADDRESS : 192.168.1.206:3260
SESSION STATUS : ESTABLISHED AT Tue Jul 24 18:08:41 2007
NO. OF PORTALS : 1
PORTAL ADDRESS 1 : 192.168.1.206:3260,-1
SESSION ID : ISID 00023d000001 TSID 1c9
*******************************************************************************
===============================================================================

dmesg显示如下
iSCSI: 4.0.188.13 ( 21-May-2004) built for Linux 2.6.5-7.97-smp
iSCSI: will translate deferred sense to current sense on disk command responses
iSCSI: control device major number 253
scsi1 : Cisco iSCSI driver
iSCSI:detected HBA host #1
iSCSI: bus 0 target 0 = suse
iSCSI: bus 0 target 0 portal 0 = address 192.168.1.206 port 3260 group -1
iSCSI: starting timer thread at 287458
iSCSI: bus 0 target 0 trying to establish session to portal 0, address 192.168.1

.206 port 3260 group -1
iSCSI: bus 0 target 0 established session #1, portal 0, address 192.168.1.206 po

rt 3260 group 1
Vendor: ROCKET Model: IMAGEFILE Rev: 0001
Type: Direct-Access ANSI SCSI revision: 03
SCSI device sdb: 41943040 512-byte hdwr sectors (21475 MB)
iSCSI: session iscsi bus 0 target id 0 recv_cmd generating sense for itt 6, stat

us 0x2, response 0x0, senselen 0, cdb 0x1a to (1 0 0 0) at 287475
sdb: asking for cache data failed
sdb: assuming drive cache: write through
sdb: sdb1
Attached scsi disk sdb at scsi1, channel 0, id 0, lun 0
Attached scsi generic sg2 at scsi1, channel 0, id 0, lun 0, type 0

===========================================================================
===========================================================================
通过fdisk对/dev/sdb分区后;想通过mke2fs格式化报
NT1:/etc # mke2fs -t ext3 -c /dev/sdb1
mke2fs: bad blocks count - /dev/sdb1

但是通过SUSE的图形界面能看到/dev/sdb1,格式为linux native

===========================================================================
===========================================================================

通过图形界面格式化空间的时候dmesg显示如下 ,显示到99%长时间无反映
iSCSI: session iscsi bus 0 sending mgmt 1151 abort for itt 1145 cdb 0x2a to (2
0 0) at 5755304
iSCSI: session iscsi bus 0 target id 0 abort rejected (0x5) for mgmt 1151, itt
145, cmnd cdb 0x2a
iSCSI: session iscsi bus 0 sending mgmt 1152 abort task set to (2 0 0 0) at 57
304
iSCSI: session iscsi bus 0 target id 0 abort task set rejected (0x5) for mgmt
52, itt 1145, cmnd 0x2a
iSCSI: session iscsi bus 0 sending mgmt 1153 LUN reset to (2 0 0 0) at 5755305
iSCSI: session iscsi bus 0 target id 0 LUN reset rejected (0x5) for mgmt 1153,
tt 1145, cmnd 0x2a
iSCSI: session iscsi bus 0 sending mgmt 1154 warm target reset to (2 0 0 *) at
755305
iSCSI: session iscsi bus 0 target id 0 warm target reset rejected (0x5) for mg
1154, itt 1145, cmnd 0x2a
iSCSI: session iscsi bus 0 sending mgmt 1154 cold target reset to (2 0 0 *) at
755305
iSCSI: session iscsi bus 0 target id 0 cold target reset rejected (0x5) for mg
1154, itt 1145, cmnd 0x2a
iSCSI: session iscsi bus 0 target id 0 to suse dropped
iSCSI: session iscsi bus 0 target id 0 to suse waiting 2 seconds before next l
in attempt
iSCSI: bus 0 target 0 trying to establish session to portal 0, address 192.168
.206 port 3260 group -1
iSCSI: bus 0 target 0 established session #90, portal 0, address 192.168.1.206
ort 3260 group 1
iSCSI BUG!!!: iovn > ISCSI_MAX_SG
iSCSI: Scsi_Cmnd to (2 0 0 0), Cmd 0x2a
iSCSI: done f9016640, scsi_done f90326d0, host_scribble 00000000
iSCSI: reqbuf d64d1c00, req_len 262144
iSCSI: buffer d64d1c00, bufflen 262144
iSCSI: use_sg 64, old_use_sg 64, sglist_len 3
iSCSI: owner 0x102, state 0x1003, eh_state 0x0
iSCSI: cmd_len 10, old_cmd_len 10
iSCSI: cdb 2a000000 00480002 0000
iSCSI: sglist d64d1c00 index 00 = page c13b4180, offset 0, len 4096
iSCSI: sglist d64d1c10 index 01 = page c13b4160, offset 0, len 4096
iSCSI: sglist d64d1c20 index 02 = page c13b4140, offset 0, len 4096
iSCSI: sglist d64d1c30 index 03 = page c13b4120, offset 0, len 4096
iSCSI: sglist d64d1c40 index 04 = page c13b4100, offset 0, len 4096
iSCSI: sglist d64d1c50 index 05 = page c13b40e0, offset 0, len 4096
iSCSI: sglist d64d1c60 index 06 = page c13b40c0, offset 0, len 4096
iSCSI: sglist d64d1c70 index 07 = page c13b40a0, offset 0, len 4096
iSCSI: sglist d64d1c80 index 08 = page c13b4080, offset 0, len 4096
iSCSI: sglist d64d1c90 index 09 = page c13b4060, offset 0, len 4096
iSCSI: sglist d64d1ca0 index 10 = page c13b4040, offset 0, len 4096
iSCSI: sglist d64d1cb0 index 11 = page c13c6840, offset 0, len 4096
iSCSI: sglist d64d1cc0 index 12 = page c139fb20, offset 0, len 4096
iSCSI: sglist d64d1cd0 index 13 = page c13accc0, offset 0, len 4096
iSCSI: sglist d64d1ce0 index 14 = page c14067c0, offset 0, len 4096
iSCSI: sglist d64d1cf0 index 15 = page c13e73a0, offset 0, len 4096
iSCSI: sglist d64d1d00 index 16 = page c1407580, offset 0, len 4096
iSCSI: sglist d64d1d10 index 17 = page c13e7920, offset 0, len 4096
iSCSI: sglist d64d1d20 index 18 = page c13b4cc0, offset 0, len 4096
iSCSI: sglist d64d1d30 index 19 = page c13e72e0, offset 0, len 4096
iSCSI: sglist d64d1d40 index 20 = page c13e5480, offset 0, len 4096
iSCSI: sglist d64d1d50 index 21 = page c139efa0, offset 0, len 4096
iSCSI: sglist d64d1d60 index 22 = page c139ef80, offset 0, len 4096
iSCSI: sglist d64d1d70 index 23 = page c139ef60, offset 0, len 4096
iSCSI: sglist d64d1d80 index 24 = page c139ef40, offset 0, len 4096
iSCSI: sglist d64d1d90 index 25 = page c139ef20, offset 0, len 4096
iSCSI: sglist d64d1da0 index 26 = page c139ef00, offset 0, len 4096
iSCSI: sglist d64d1db0 index 27 = page c139eee0, offset 0, len 4096
iSCSI: sglist d64d1dc0 index 28 = page c139eec0, offset 0, len 4096
iSCSI: sglist d64d1dd0 index 29 = page c139eea0, offset 0, len 4096
iSCSI: sglist d64d1de0 index 30 = page c139ee80, offset 0, len 4096
iSCSI: sglist d64d1df0 index 31 = page c139ee60, offset 0, len 4096
iSCSI: sglist d64d1e00 index 32 = page c139ee40, offset 0, len 4096
iSCSI: sglist d64d1e10 index 33 = page c139ee20, offset 0, len 4096
iSCSI: sglist d64d1e20 index 34 = page c139ee00, offset 0, len 4096
iSCSI: sglist d64d1e30 index 35 = page c139ede0, offset 0, len 4096
iSCSI: sglist d64d1e40 index 36 = page c139edc0, offset 0, len 4096
iSCSI: sglist d64d1e50 index 37 = page c139eda0, offset 0, len 4096
iSCSI: sglist d64d1e60 index 38 = page c139ed80, offset 0, len 4096
iSCSI: sglist d64d1e70 index 39 = page c139ed60, offset 0, len 4096
iSCSI: sglist d64d1e80 index 40 = page c139ed40, offset 0, len 4096
iSCSI: sglist d64d1e90 index 41 = page c139ed20, offset 0, len 4096
iSCSI: sglist d64d1ea0 index 42 = page c139ed00, offset 0, len 4096
iSCSI: sglist d64d1eb0 index 43 = page c139ece0, offset 0, len 4096
iSCSI: sglist d64d1ec0 index 44 = page c139ecc0, offset 0, len 4096
iSCSI: sglist d64d1ed0 index 45 = page c139eca0, offset 0, len 4096
iSCSI: sglist d64d1ee0 index 46 = page c139ec80, offset 0, len 4096
iSCSI: sglist d64d1ef0 index 47 = page c139ec60, offset 0, len 4096
iSCSI: sglist d64d1f00 index 48 = page c139ec40, offset 0, len 4096
iSCSI: sglist d64d1f10 index 49 = page c139ec20, offset 0, len 4096
iSCSI: sglist d64d1f20 index 50 = page c139ec00, offset 0, len 4096
iSCSI: sglist d64d1f30 index 51 = page c139ebe0, offset 0, len 4096
iSCSI: sglist d64d1f40 index 52 = page c139ebc0, offset 0, len 4096
iSCSI: sglist d64d1f50 index 53 = page c139eba0, offset 0, len 4096
iSCSI: sglist d64d1f60 index 54 = page c139eb80, offset 0, len 4096
iSCSI: sglist d64d1f70 index 55 = page c139eb60, offset 0, len 4096
iSCSI: sglist d64d1f80 index 56 = page c139eb40, offset 0, len 4096
iSCSI: sglist d64d1f90 index 57 = page c139eb20, offset 0, len 4096
iSCSI: sglist d64d1fa0 index 58 = page c139eae0, offset 0, len 4096
iSCSI: sglist d64d1fb0 index 59 = page c139eac0, offset 0, len 4096
iSCSI: sglist d64d1fc0 index 60 = page c139eaa0, offset 0, len 4096
iSCSI: sglist d64d1fd0 index 61 = page c139ea80, offset 0, len 4096
iSCSI: sglist d64d1fe0 index 62 = page c139ea60, offset 0, len 4096
iSCSI: sglist d64d1ff0 index 63 = page c139ea40, offset 0, len 4096
阅读(2061) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~