[openib-general] srp trouble on RHEL4 U4

Mirochnick Natalia liakhovitch at mail.ru
Wed Oct 18 03:03:08 PDT 2006


I've changed the string as you've advised, but it didn't work. The only 
difference is that string "" was added in /var/log/messages.

root@[...] echo -n 
id_ext=0000000000000001,ioc_guid=00066a01380001de,dgid=fe8000000000000000066a02600001de,pkey=ffff,service_id=0000494353535250,io_class=ff00 
 > /sys/class/infiniband_srp/srp-mthca0-1/add_target

root@[...]  tail /var/log/messages
Oct 18 14:01:26 ... kernel:   REJ reason 0x0
Oct 18 14:01:26 ... kernel: ib_srp: Connection failed

By the way, in ofed srp_release_notes.txt hasn't been said that io_class is 
mandatory parameter.

Natalia
----- Original Message ----- 

>> Madhu Lakshmanan wrote:
>> Which SRP target are you using? Could you also give some more
>> details on
>> the fabric setup; i.e. what IB switch / gateway your host is
connected
>> to, and what kind of storage you wish to access? The full command
that
>> you used (echo -n .... > ..../add_target) to configure the SRP target
>> would be very useful as well.
>
> From: Mirochnick Natalia [mailto:liakhovitch at mail.ru]
> Subject: Re: [openib-general] srp trouble on RHEL4 U4
>
> 2. Here's the details:
>
> IB switch: Silverstorm 5000
> Storage: NetApp FAS 320
>
> root@[...]# /usr/ofed/sbin/ibsrpdm -c
> id_ext=0000000000000001,ioc_guid=00066a01380001de,dgid=fe80000
> 00000000000066a02600001de,pkey=ffff,service_id=000049435353525
> 0,io_class=ff00
> id_ext=0000000000000001,ioc_guid=00066a02380001de,dgid=fe80000
> 00000000000066a02600001de,pkey=ffff,service_id=000049435353525
> 0,io_class=ff00
>
> [root at ...]# echo -n
> id_ext=0000000000000001,ioc_guid=00066a01380001de,dgid=fe80000
> 00000000000066a02600001de,pkey=ffff,service_id=0000494353535250
>  > /sys/class/infiniband_srp/srp-mthca0-1/add_target
>

The problem is with the echo string you are giving. The command should
be invoked as:

echo -n id_ext=0000000000000001,ioc_guid=00066a01380001de,dgid=fe80000
00000000000066a02600001de,pkey=ffff,service_id=0000494353535250,
io_class=ff00 > /sys/class/infiniband_srp/srp-mthca0-1/add_target

You were missing the 'io_class=ff00' bit.

Let me know if it works.

Madhu







More information about the general mailing list