Re: iscsictl, Waiting for iscsid(8)

From: Edward Tomasz Napierała <trasz_at_FreeBSD.org>
Date: Fri, 27 Sep 2013 11:41:24 +0200
Dnia 27 wrz 2013 o godz. 09:50 "Sergey V. Dyatko" <sergey.dyatko_at_gmail.com> napisał(a):

> On Fri, 27 Sep 2013 10:36:29 +0300
> "Sergey V. Dyatko" <sergey.dyatko_at_gmail.com> wrote: 
> 
>> Hi,
>> 
>> I have a time to play with native iSCSI stack on HEAD. 
>> I have desktop (Alpha2, r255812) and laptop (alpha3, r255873M with
>> reverted r255870 and r255871)
>> On desktop I create following /etc/ctl.conf:
>> pidfile /var/run/ctld.pid
>> portal-group example2 {
>>        discovery-auth-group no-authentication
>>        listen 127.0.0.1
>>        listen 0.0.0.0:3261

Here you are listening on port 3261.

>> }
>> target iqn.desktop:target0 {
>>        alias "Testing target"
>>        auth-group no-authentication
>>        portal-group    example2
>>        lun 0 {
>>                path /dev/md0
>>                blocksize 4096
>>        }
>>     }
>> 
>> tiger# mdconfig -lv
>> md0     vnode     200M  /storage/iscsi_test
>> tiger# iscsictl -A -h localhost -t iqn.desktop:target0
>> 
>> dmesg: 
>> cfiscsi_ioctl_handoff: new connection from
>> iqn.1994-09.org.freebsd:tiger.minsk.domain (127.0.0.1) to
>> iqn.desktop:target0
>> da0 at iscsi1 bus 0 scbus6 target 0 lun 0 
>> da0: <FREEBSD CTLDISK 0001> Fixed Direct Access SCSI-5 device 
>> da0: 200MB (51200 4096 byte sectors: 64H 32S/T 25C)
>> 
>> tiger# ctladm islist -v
>> Session ID:      3
>> Initiator name:  iqn.1994-09.org.freebsd:tiger.minsk.domain
>> Initiator addr:  127.0.0.1
>> Initiator alias: 
>> Target name:     iqn.desktop:target0
>> Target alias:    Testing target
>> Header digest:   None
>> Data digest:     None
>> DataSegmentLen:  131072
>> ImmediateData:   Yes
>> iSER (RDMA):     No
>> 
>> tiger# ctladm devlist -v
>> LUN Backend       Size (Blocks)   BS Serial Number    Device ID       
>>  0 block                 51200 4096 MYSERIAL   0     MYDEVID   0     
>>      lun_type=0
>>      num_threads=14
>>      file=/dev/md0
>>      cfiscsi_target=iqn.desktop:target0
>>      cfiscsi_target_alias=Testing target
>>      cfiscsi_lun=0
>> 
>> Ok, seems it work
>> 
>> now laptop:
>> laptop# iscsictl -A -h 192.168.9.98 -t iqn.desktop:target0
>> nothing new on dmesg..
>> 
>> laptop# iscsictl -L
>> Target name                          Target addr      State
>> iqn.desktop:target0                  192.168.9.98     Waiting for
>> iscsid(8)
>> 
>> I have a questions:
>> 1) is 'old' iscontrol work with native target (i tried it before, w/o
>> success too) ?
>> 2) what I missed, why laptop(iscsictl)->desktop(iscsid) do not work in
>> my case ?
> 
> by the way.. on desktop (target):
> tiger# iscsictl -A -h localhost -t iqn.desktop:target0
> tiger# iscsictl -L
> Target name                          Target addr      State
> iqn.desktop:target0                  localhost Connected: da0 
> 
> tiger# iscsictl -Ra
> tiger# iscsictl -A -h 192.168.9.98 -t iqn.desktop:target0

And here you're trying to connect to the default, 3260.  Thus...

> tiger# iscsictl -L
> Target name                          Target addr      State
> iqn.desktop:target0                  192.168.9.98     Connection refused

... the Connection Refused.

> tiger# sockstat -l4
> USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN
> ADDRESS root     ctld       10232 6  tcp4   127.0.0.1:3260        *:*
> root     ctld       10232 7  tcp4   *:3261                *:*
> 
> -- 
> wbr, tiger
Received on Fri Sep 27 2013 - 07:41:52 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:42 UTC