From owner-freebsd-current@FreeBSD.ORG Fri Sep 27 09:41:52 2013 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E11E49B3 for ; Fri, 27 Sep 2013 09:41:52 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com [IPv6:2a00:1450:400c:c05::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7B7BD2F1B for ; Fri, 27 Sep 2013 09:41:52 +0000 (UTC) Received: by mail-wi0-f181.google.com with SMTP id ex4so535210wid.14 for ; Fri, 27 Sep 2013 02:41:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:references:mime-version:in-reply-to:content-type :content-transfer-encoding:message-id:cc:from:subject:date:to; bh=KzKVU5CEIJvCmIx9+VLNm2y0JgkNtaJF2duJOevuFEg=; b=F2aghjGPksli/VQ+rm/+ydUdw/cxIbSifrIgDG0wkmi4ZFfx6XQwm+ahsm+AmHqB6l ZCAnVMXorf9g3zHnNzv/lpavTHx7nVnHLXxLLtl/uPJ92H6GWFQp53sZsK8VgIr0fXtr aHSbyaR1HJz1bRhMa43+WY+5PzL1U/C7N/khVyfit7yAcYVdfHkN4onwSUmZOhAFdIMP 6hlZYl/dedgkao4S0cQWVKLrf6RU4KRG1fZRgmSGx7D5CuNbFkAjNa9mCXk26nhxdCbi tOM4TfkcUOzjRKR3gKuXwQyzDAaRtRGEZrLSwRY1PSZUaJNG9tPyaVhJuIOxuuOwQ9cp JniQ== X-Received: by 10.180.10.33 with SMTP id f1mr1864010wib.44.1380274910740; Fri, 27 Sep 2013 02:41:50 -0700 (PDT) Received: from [10.37.27.42] (ip-109-43-3-42.web.vodafone.de. [109.43.3.42]) by mx.google.com with ESMTPSA id mb7sm12156482wic.10.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 27 Sep 2013 02:41:50 -0700 (PDT) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= References: <20130927103629.6c04dc02@laptop.minsk.domain> <20130927105011.7323322f@laptop.minsk.domain> Mime-Version: 1.0 (1.0) In-Reply-To: <20130927105011.7323322f@laptop.minsk.domain> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-Id: <49AD0635-88FB-46F4-A5B0-CC8180501BBA@FreeBSD.org> X-Mailer: iPhone Mail (11A465) From: =?utf-8?Q?Edward_Tomasz_Napiera=C5=82a?= Subject: Re: iscsictl, Waiting for iscsid(8) Date: Fri, 27 Sep 2013 11:41:24 +0200 To: "Sergey V. Dyatko" Cc: "" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Sep 2013 09:41:52 -0000 Dnia 27 wrz 2013 o godz. 09:50 "Sergey V. Dyatko" n= apisa=C5=82(a): > On Fri, 27 Sep 2013 10:36:29 +0300 > "Sergey V. Dyatko" wrote:=20 >=20 >> 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 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 >> } >> } >>=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: 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) ? >> 2) what I missed, why laptop(iscsictl)->desktop(iscsid) do not work in >> my case ? >=20 > 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=20 >=20 > 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 *:* >=20 > --=20 > wbr, tiger