Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Sep 2013 11:32:43 +0200
From:      =?utf-8?Q?Edward_Tomasz_Napiera=C5=82a?= <trasz@FreeBSD.org>
To:        "Sergey V. Dyatko" <sergey.dyatko@gmail.com>
Cc:        "<current@freebsd.org>" <current@freebsd.org>
Subject:   Re: iscsictl,  Waiting for iscsid(8)
Message-ID:  <2E0D59DC-1366-4888-AA00-BDA62EFB6B4E@FreeBSD.org>
In-Reply-To: <20130927103629.6c04dc02@laptop.minsk.domain>
References:  <20130927103629.6c04dc02@laptop.minsk.domain>

next in thread | previous in thread | raw e-mail | index | archive | help
Dnia 27 wrz 2013 o godz. 09:36 "Sergey V. Dyatko" <sergey.dyatko@gmail.com> n=
apisa=C5=82(a):

> Hi,
>=20
> I have a time to play with native iSCSI stack on HEAD.=20
> 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
> }
> target iqn.desktop:target0 {
>        alias "Testing target"
>        auth-group no-authentication
>        portal-group    example2
>        lun 0 {
>                path /dev/md0
>                blocksize 4096
>        }
>     }
>=20
> tiger# mdconfig -lv
> md0     vnode     200M  /storage/iscsi_test
> tiger# iscsictl -A -h localhost -t iqn.desktop:target0
>=20
> dmesg:=20
> 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=20
> da0: <FREEBSD CTLDISK 0001> Fixed Direct Access SCSI-5 device=20
> da0: 200MB (51200 4096 byte sectors: 64H 32S/T 25C)
>=20
> 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:=20
> Target name:     iqn.desktop:target0
> Target alias:    Testing target
> Header digest:   None
> Data digest:     None
> DataSegmentLen:  131072
> ImmediateData:   Yes
> iSER (RDMA):     No
>=20
> tiger# ctladm devlist -v
> LUN Backend       Size (Blocks)   BS Serial Number    Device ID      =20
>  0 block                 51200 4096 MYSERIAL   0     MYDEVID   0    =20
>      lun_type=3D0
>      num_threads=3D14
>      file=3D/dev/md0
>      cfiscsi_target=3Diqn.desktop:target0
>      cfiscsi_target_alias=3DTesting target
>      cfiscsi_lun=3D0
>=20
> Ok, seems it work
>=20
> now laptop:
> laptop# iscsictl -A -h 192.168.9.98 -t iqn.desktop:target0
> nothing new on dmesg..
>=20
> laptop# iscsictl -L
> Target name                          Target addr      State
> iqn.desktop:target0                  192.168.9.98     Waiting for
> iscsid(8)
>=20
> I have a questions:
> 1) is 'old' iscontrol work with native target (i tried it before, w/o
> success too) ?

You mean, does the old initiator work with the new target?  Sure it does.

> 2) what I missed, why laptop(iscsictl)->desktop(iscsid) do not work in
> my case ?

It says it's waiting for iscsid.  Do you have iscsid running, on the initiat=
or side, i.e. laptop?




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2E0D59DC-1366-4888-AA00-BDA62EFB6B4E>