SCSI target infrastructure discussions
 help / color / mirror / Atom feed
* ISER - tgtadm: Can't find the driver
@ 2013-12-05 21:42 Moussa Ba (moussaba)
  2013-12-05 22:13 ` Or Gerlitz
  0 siblings, 1 reply; 4+ messages in thread
From: Moussa Ba (moussaba) @ 2013-12-05 21:42 UTC (permalink / raw)
  To: stgt@vger.kernel.org; +Cc: Shlomi Sasson, Or Gerlitz

I have been trying to reactivate a tgt array I was using a few months ago. I am currently using 3.12 but, tgtdadm
fails with a:

tgtadm: Can't find the driver

I ran the following commands to configure it:



taskset  0x00000100 tgtd  --control-port 0 --iscsi portal=192.168.104.2:3260 --iser port=3260

echo "Creating iqn.target0"
tgtadm --lld iser --mode target --op new --tid=1 --targetname iqn.target0 -C 0
tgtadm --lld iser --mode logicalunit --op new --tid 1 --lun 1 -b /dev/rssda --bstype rdwr -C 0
tgtadm --lld iser --mode logicalunit --op update --tid 1 --lun 1 --params scsi_id="$RSSDA_ID" -C 0
tgtadm --op update --mode target --tid 1 --name=MaxQueueCmd --value=256
tgtadm --lld iser --mode target --op bind --tid 1 -I ALL



Below are the modules Loaded

mlx4_en                76854  0 
mlx4_ib               129860  16 
ib_sa                  23653  4 rdma_cm,ib_ipoib,ib_cm,mlx4_ib
ib_mad                 40129  4 ib_cm,ib_umad,mlx4_ib,ib_sa
ib_core                72427  11 ib_iser,ib_isert,rdma_cm,iw_cm,ib_ipoib,ib_cm,ib_uverbs,ib_umad,mlx4_ib,ib_sa,ib_mad
mlx4_core             202689  2 mlx4_en,mlx4_ib
rdma_cm                39115  2 ib_iser,ib_isert
iw_cm                   9936  1 rdma_cm
ib_addr                 6528  1 rdma_cm
ib_cm                  37980  2 rdma_cm,ib_ipoib
ib_uverbs              36365  48 
rdma_cm                39115  2 ib_iser,ib_isert
ib_mad                 40129  4 ib_cm,ib_umad,mlx4_ib,ib_sa

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ISER - tgtadm: Can't find the driver
  2013-12-05 21:42 ISER - tgtadm: Can't find the driver Moussa Ba (moussaba)
@ 2013-12-05 22:13 ` Or Gerlitz
  2013-12-05 22:43   ` Moussa Ba (moussaba)
  0 siblings, 1 reply; 4+ messages in thread
From: Or Gerlitz @ 2013-12-05 22:13 UTC (permalink / raw)
  To: Moussa Ba (moussaba); +Cc: stgt@vger.kernel.org, Shlomi Sasson, Or Gerlitz

On Thu, Dec 5, 2013 at 11:42 PM, Moussa Ba (moussaba)
<moussaba@micron.com> wrote:
> I have been trying to reactivate a tgt array I was using a few months ago. I am currently using 3.12 but, tgtdadm
> fails with a:
>
> tgtadm: Can't find the driver
>
> I ran the following commands to configure it:
>
>
>
> taskset  0x00000100 tgtd  --control-port 0 --iscsi portal=192.168.104.2:3260 --iser port=3260
>
> echo "Creating iqn.target0"
> tgtadm --lld iser --mode target --op new --tid=1 --targetname iqn.target0 -C 0
> tgtadm --lld iser --mode logicalunit --op new --tid 1 --lun 1 -b /dev/rssda --bstype rdwr -C 0
> tgtadm --lld iser --mode logicalunit --op update --tid 1 --lun 1 --params scsi_id="$RSSDA_ID" -C 0
> tgtadm --op update --mode target --tid 1 --name=MaxQueueCmd --value=256
> tgtadm --lld iser --mode target --op bind --tid 1 -I ALL
>
>
>
> Below are the modules Loaded
>
> mlx4_en                76854  0
> mlx4_ib               129860  16
> ib_sa                  23653  4 rdma_cm,ib_ipoib,ib_cm,mlx4_ib
> ib_mad                 40129  4 ib_cm,ib_umad,mlx4_ib,ib_sa
> ib_core                72427  11 ib_iser,ib_isert,rdma_cm,iw_cm,ib_ipoib,ib_cm,ib_uverbs,ib_umad,mlx4_ib,ib_sa,ib_mad
> mlx4_core             202689  2 mlx4_en,mlx4_ib
> rdma_cm                39115  2 ib_iser,ib_isert
> iw_cm                   9936  1 rdma_cm
> ib_addr                 6528  1 rdma_cm
> ib_cm                  37980  2 rdma_cm,ib_ipoib
> ib_uverbs              36365  48
> rdma_cm                39115  2 ib_iser,ib_isert
> ib_mad                 40129  4 ib_cm,ib_umad,mlx4_ib,ib_sa

For some reason the ib_mad and rdma_cm modules are listed twice...
anyway, you need rdma_ucm which is the ib_uverbs equivalent --
provides access to the kernel rdma_cm. I would recommend to run rping
which is provided by librdmacm-utils to very there's proper user space
access to the kernel IB stack .

Or.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: ISER - tgtadm: Can't find the driver
  2013-12-05 22:13 ` Or Gerlitz
@ 2013-12-05 22:43   ` Moussa Ba (moussaba)
  2013-12-06  8:02     ` Or Gerlitz
  0 siblings, 1 reply; 4+ messages in thread
From: Moussa Ba (moussaba) @ 2013-12-05 22:43 UTC (permalink / raw)
  To: Or Gerlitz; +Cc: stgt@vger.kernel.org, Shlomi Sasson, Or Gerlitz

Thank you. Loading rdma_ucm resolved the issue. Do you think this information should be included the README.iser?  It is already mentioned that Kernel modules should be loaded but which ones is not specified.  Thank you.

Moussa

> -----Original Message-----
> From: Or Gerlitz [mailto:or.gerlitz@gmail.com]
> Sent: Thursday, December 05, 2013 2:13 PM
> To: Moussa Ba (moussaba)
> Cc: stgt@vger.kernel.org; Shlomi Sasson; Or Gerlitz
> Subject: Re: ISER - tgtadm: Can't find the driver
> 
> On Thu, Dec 5, 2013 at 11:42 PM, Moussa Ba (moussaba)
> <moussaba@micron.com> wrote:
> > I have been trying to reactivate a tgt array I was using a few months
> ago. I am currently using 3.12 but, tgtdadm
> > fails with a:
> >
> > tgtadm: Can't find the driver
> >
> > I ran the following commands to configure it:
> >
> >
> >
> > taskset  0x00000100 tgtd  --control-port 0 --iscsi
> portal=192.168.104.2:3260 --iser port=3260
> >
> > echo "Creating iqn.target0"
> > tgtadm --lld iser --mode target --op new --tid=1 --targetname
> iqn.target0 -C 0
> > tgtadm --lld iser --mode logicalunit --op new --tid 1 --lun 1 -b
> /dev/rssda --bstype rdwr -C 0
> > tgtadm --lld iser --mode logicalunit --op update --tid 1 --lun 1 --
> params scsi_id="$RSSDA_ID" -C 0
> > tgtadm --op update --mode target --tid 1 --name=MaxQueueCmd --
> value=256
> > tgtadm --lld iser --mode target --op bind --tid 1 -I ALL
> >
> >
> >
> > Below are the modules Loaded
> >
> > mlx4_en                76854  0
> > mlx4_ib               129860  16
> > ib_sa                  23653  4 rdma_cm,ib_ipoib,ib_cm,mlx4_ib
> > ib_mad                 40129  4 ib_cm,ib_umad,mlx4_ib,ib_sa
> > ib_core                72427  11
> ib_iser,ib_isert,rdma_cm,iw_cm,ib_ipoib,ib_cm,ib_uverbs,ib_umad,mlx4_ib
> ,ib_sa,ib_mad
> > mlx4_core             202689  2 mlx4_en,mlx4_ib
> > rdma_cm                39115  2 ib_iser,ib_isert
> > iw_cm                   9936  1 rdma_cm
> > ib_addr                 6528  1 rdma_cm
> > ib_cm                  37980  2 rdma_cm,ib_ipoib
> > ib_uverbs              36365  48
> > rdma_cm                39115  2 ib_iser,ib_isert
> > ib_mad                 40129  4 ib_cm,ib_umad,mlx4_ib,ib_sa
> 
> For some reason the ib_mad and rdma_cm modules are listed twice...
> anyway, you need rdma_ucm which is the ib_uverbs equivalent --
> provides access to the kernel rdma_cm. I would recommend to run rping
> which is provided by librdmacm-utils to very there's proper user space
> access to the kernel IB stack .
> 
> Or.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ISER - tgtadm: Can't find the driver
  2013-12-05 22:43   ` Moussa Ba (moussaba)
@ 2013-12-06  8:02     ` Or Gerlitz
  0 siblings, 0 replies; 4+ messages in thread
From: Or Gerlitz @ 2013-12-06  8:02 UTC (permalink / raw)
  To: Moussa Ba (moussaba), Or Gerlitz; +Cc: stgt@vger.kernel.org, Shlomi Sasson

On 06/12/2013 00:43, Moussa Ba (moussaba) wrote:
> Thank you. Loading rdma_ucm resolved the issue. Do you think this information should be included the README.iser?  It is already mentioned that Kernel modules should be loaded but which ones is not specified.  Thank you.

the readme does say:

"When using iser, you need to make sure the kernel IB/RDMA stack
is up and running.

It's recommended to use the rping tool provided by librdmacm-utils
for quick RDMA connectivity testing between the initiator and the
target nodes."

so you want a bit more...


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-12-06  8:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-05 21:42 ISER - tgtadm: Can't find the driver Moussa Ba (moussaba)
2013-12-05 22:13 ` Or Gerlitz
2013-12-05 22:43   ` Moussa Ba (moussaba)
2013-12-06  8:02     ` Or Gerlitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox