From: torn5 <to...@sh...> - 2010-12-07 05:03:16
|
Hi all, I am trying to use scst on 2.6.37-rc It's also one of the first times I use scst it so please forgive if I do trivial mistakes. I am trying to use it with srp - infiniband I hope I set up server side configuration correctly. When I boot the initiator machine this dmesg comes out: [ 145.690456] scsi host2: ib_srp: new target: id_ext 003048c6a6560000 ioc_guid 003048c6a6560000 pkey ffff service_id 003048c6a6560000 dgid fe80:0000:0000:0000:0030:48c6:a656:0001 [ 145.692710] scsi2 : SRP.T10:003048C6A6560000 [ 145.692997] scsi scan: INQUIRY result too short (5), using 36 [ 145.693121] scsi scan: INQUIRY result too short (5), using 36 If I try to do echo "- - -" > scan on the scsi_host for srp (or is that "iscsi"? I have some confusion) this comes out: [ 193.710200] scsi scan: INQUIRY result too short (5), using 36 [ 193.710299] scsi scan: INQUIRY result too short (5), using 36 [ 193.710384] scsi scan: INQUIRY result too short (5), using 36 [ 193.710462] scsi scan: INQUIRY result too short (5), using 36 [ 193.710542] scsi scan: INQUIRY result too short (5), using 36 [ 193.710613] scsi scan: INQUIRY result too short (5), using 36 [ 193.710688] scsi scan: INQUIRY result too short (5), using 36 [ 193.710760] scsi scan: INQUIRY result too short (5), using 36 [ 193.710834] scsi scan: INQUIRY result too short (5), using 36 [ 193.710903] scsi scan: INQUIRY result too short (5), using 36 [ 193.710976] scsi scan: INQUIRY result too short (5), using 36 [ 193.711045] scsi scan: INQUIRY result too short (5), using 36 [ 193.711117] scsi scan: INQUIRY result too short (5), using 36 [ 193.711192] scsi scan: INQUIRY result too short (5), using 36 [ 193.711265] scsi scan: INQUIRY result too short (5), using 36 [ 193.711334] scsi scan: INQUIRY result too short (5), using 36 Sometimes I have seen this: [19318.339403] user_mad: process ibsrpdm did not enable P_Key index support. [19318.339406] user_mad: Documentation/infiniband/user_mad.txt has info on the new ABI. At server side this is the dmesg upon attempting a scan or srptools reload: [ 177.072187] ib_srpt: Received SRP_LOGIN_REQ with i_port_id 0x10056a6c6483000:0x3048c6a6540001, t_port_id 0x3048c6a6560000:0x3048c6a6560000 and it_iu_len 260 on port 1 (guid=0xfe80000000000000:0x3048c6a6560001) [ 177.073302] ib_srpt: Session : kernel thread ib_srpt_compl (PID 1831) started [ 177.073395] scst: Using security group "ib_srpt_target_0" for initiator "0x010056a6c6483000003048c6a6540001" [ 545.346591] ib_srpt: Received SRP_LOGIN_REQ with i_port_id 0x10056a6c6483000:0x3048c6a6540001, t_port_id 0x3048c6a6560000:0x3048c6a6560000 and it_iu_len 260 on port 1 (guid=0xfe80000000000000:0x3048c6a6560001) [ 545.346601] ib_srpt: disconnected session 0x010056a6c6483000003048c6a6540001 because a new SRP_LOGIN_REQ has been received. [ 545.346663] ib_srpt: Received InfiniBand DREP message for cm_id ffff8803fe1d6400. [ 545.346918] ib_srpt: Session 0x010056a6c6483000003048c6a6540001: kernel thread ib_srpt_compl (PID 1831) stopped [ 545.347703] ib_srpt: Session : kernel thread ib_srpt_compl (PID 1867) started [ 545.347798] scst: Using security group "ib_srpt_target_0" for initiator "0x010056a6c6483000003048c6a6540001" previous messages at server side: [ 19.756640] scst: Target iqn.2005-03.org.open-iscsi:e9ab3ed5f326:storage for template iscsi registered successfully [ 24.110204] scst: Device handler "dev_disk" for type 0 registered successfully [ 24.110209] scst: Device handler "dev_disk_perf" for type 0 registered successfully [ 24.339840] scst: Virtual device handler vdisk_fileio for type 0 registered successfully [ 24.339848] scst: Virtual device handler vdisk_blockio for type 0 registered successfully [ 24.339852] scst: Virtual device handler vdisk_nullio for type 0 registered successfully [ 24.339856] scst: Virtual device handler vcdrom for type 5 registered successfully [ 24.422358] dev_vdisk: Registering virtual vdisk_blockio device mydisk01 (NV_CACHE, BLOCKIO) [ 24.540969] dev_vdisk: Attached SCSI target virtual disk mydisk01 (file="/dev/ram0", fs=14336MB, bs=512, nblocks=29360128, cyln=14336) [ 24.541005] scst: Attached to virtual device mydisk01 (id 1) [ 24.544239] scst: Added device mydisk01 to group Default (LUN 1, rd_only 0) [ 24.553126] scst: Added device mydisk01 to group Default (LUN 1, rd_only 0) [ 26.986164] scsi host2: ib_srp: new target: id_ext 003048c6a85c0000 ioc_guid 003048c6a85c0000 pkey ffff service_id 003048c6a85c0000 dgid fe80:0000:0000:0000:0030:48c6:a85c:0001 [ 26.986984] scsi host2: ib_srp: REJ received [ 26.986987] scsi host2: REJ reason: stale connection [ 26.986999] scsi host2: ib_srp: retrying stale connection [ 26.987066] scsi host2: ib_srp: REJ received [ 26.987068] scsi host2: REJ reason: stale connection [ 26.987078] scsi host2: ib_srp: retrying stale connection [ 26.987141] scsi host2: ib_srp: REJ received [ 26.987143] scsi host2: REJ reason: stale connection [ 26.987149] scsi host2: ib_srp: retrying stale connection [ 26.987203] scsi host2: ib_srp: REJ received [ 26.987205] scsi host2: REJ reason: stale connection [ 26.987210] scsi host2: ib_srp: giving up on stale connection [ 26.987211] scsi host2: ib_srp: Connection failed [ 26.989385] scsi host3: ib_srp: new target: id_ext 003048c6a8560000 ioc_guid 003048c6a8560000 pkey ffff service_id 003048c6a8560000 dgid fe80:0000:0000:0000:0030:48c6:a856:0001 [ 27.020034] [drm:radeon_i2c_put_byte] *ERROR* i2c 0x08 0x30 write failed [ 27.050538] scsi3 : SRP.T10:003048C6A8560000 [ 27.051021] scsi scan: INQUIRY result too short (5), using 36 [ 27.051228] scsi 3:0:0:1: Direct-Access SCST_BIO ramdisk01 200 PQ: 0 ANSI: 5 [ 27.051535] sd 3:0:0:1: Attached scsi generic sg2 type 0 [ 27.051547] scst: Attached to scsi3, channel 0, id 0, lun 1, type 0 [ 27.051632] sd 3:0:0:1: [sdc] 29360128 512-byte logical blocks: (15.0 GB/14.0 GiB) [ 27.051635] sd 3:0:0:1: [sdc] 4096-byte physical blocks [ 27.051670] scsi scan: INQUIRY result too short (5), using 36 [ 27.051876] sd 3:0:0:1: [sdc] Write Protect is off [ 27.051879] sd 3:0:0:1: [sdc] Mode Sense: 83 00 00 08 [ 27.051997] sd 3:0:0:1: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [ 27.053335] sdc: unknown partition table [ 27.053834] sd 3:0:0:1: [sdc] Attached SCSI disk [ 27.060055] scsi host4: ib_srp: new target: id_ext 003048c6a6560000 ioc_guid 003048c6a6560000 pkey ffff service_id 003048c6a6560000 dgid fe80:0000:0000:0000:0030:48c6:a656:0001 [ 27.060804] ib_srpt: Received SRP_LOGIN_REQ with i_port_id 0x10056a6c6483000:0x3048c6a6560001, t_port_id 0x3048c6a6560000:0x3048c6a6560000 and it_iu_len 260 on port 1 (guid=0xfe80000000000000:0x3048c6a6560001) [ 27.061883] ib_srpt: Session : kernel thread ib_srpt_compl (PID 1127) started [ 27.061978] scst: Using security group "ib_srpt_target_0" for initiator "0x010056a6c6483000003048c6a6560001" [ 27.062248] scsi4 : SRP.T10:003048C6A6560000 [ 27.062667] scsi scan: INQUIRY result too short (5), using 36 [ 27.062755] scsi scan: INQUIRY result too short (5), using 36 [ 29.020191] scsi host5: ib_srp: new target: id_ext 003048c6a85c0000 ioc_guid 003048c6a85c0000 pkey ffff service_id 003048c6a85c0000 dgid fe80:0000:0000:0000:0030:48c6:a85c:0001 [ 29.022411] scsi5 : SRP.T10:003048C6A85C0000 [ 29.022712] scsi scan: INQUIRY result too short (5), using 36 [ 29.022843] scsi scan: INQUIRY result too short (5), using 36 This is my target side configuration: # Automatically generated by SCST Configurator v2.0.0. HANDLER vdisk_blockio { DEVICE mydisk01 { filename /dev/ram0 nv_cache 1 } } TARGET_DRIVER ib_srpt { TARGET ib_srpt_target_0 { rel_tgt_id 2 enabled 1 GROUP Default { LUN 1 mydisk01 } } } TARGET_DRIVER iscsi { enabled 1 TARGET iqn.2005-03.org.open-iscsi:e9ab3ed5f326:storage { rel_tgt_id 1 enabled 1 GROUP Default { LUN 1 mydisk01 } } } Any ideas? Thanks for your help |