From owner-freebsd-fs@freebsd.org Sat Jul 29 18:59:50 2017 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F3369DC8E0E for ; Sat, 29 Jul 2017 18:59:50 +0000 (UTC) (envelope-from kayasaman@gmail.com) Received: from mail-wm0-x232.google.com (mail-wm0-x232.google.com [IPv6:2a00:1450:400c:c09::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8AAED741F5 for ; Sat, 29 Jul 2017 18:59:50 +0000 (UTC) (envelope-from kayasaman@gmail.com) Received: by mail-wm0-x232.google.com with SMTP id t201so19371128wmt.0 for ; Sat, 29 Jul 2017 11:59:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=ERxXHxxX8PJZwLt1VA1McU9Kj0qJ8AN1QuTVh8WsXfw=; b=VGcXj14Tfz008PdFSKnTBU+n09+aRtDH80yl39cOhjJcY/HTzcFJvQM3xBUKerZrgW P3l3V+chhKrymI8EW4aaJcNbQhyuPO5eJIF3LuCaO5LyKUPWe3wyqHmCfsfh+5NmEM3v S2TT6GPqJi30dgSKD/ufaABB+JYmriTEGIpdGdDxvTdMVffWl4MlrsfeqvNwurguv5U8 gK55gxrGOpN1R+tL5R06omTQ5JlOFwBlydDKQ/viJ0AB/iB6wBbEsfr3sKK93huSUSFE SFLrKMQR6NZAubugVyeYW2gzNtbPKOhDLCtHumRB2HyfvJqyA5FBs8d14kHBAh0kh/bH Z8iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=ERxXHxxX8PJZwLt1VA1McU9Kj0qJ8AN1QuTVh8WsXfw=; b=XEFFbN9R4d9onFc1LX8NBcLR975ahWhIZvFyJlUMb19Bd4SmX+I+m8gixCB1rPwHox FHU4iXqeUh1xr6J8mYGGyZEA3yShNWhzTgyt5Agi1et56VtRzuOqNu+4HEUGw+7z7hGb cbrJHgyz3oEReGj8jjhyHvVgEvWYnnni0nFTsLEF4+4AxIWsxEmz+7JZKNujXitV9lSZ W0Y/ONjAJUdZ7z9j8dUmTPog54JmfSYzazDIgznq4XfUWFWYbiYhLS6l7fmDBAKB72bL Wqba/XAzyxXpc7CSXzBcxTf4uIsZI8DYBfbhs8aHf6PkhqutB37+bFRLCNTretQEHDde +zOA== X-Gm-Message-State: AIVw113rI8LkFIUIgAVu76w2VSI3XerJQBiZeaOsaNs5iu2iMC6BGemR cyDNXqCgNKcLYNp1H1U= X-Received: by 10.28.73.193 with SMTP id w184mr7495870wma.178.1501354788558; Sat, 29 Jul 2017 11:59:48 -0700 (PDT) Received: from x220.optiplex-networks.com (optiplexnetworks.plus.com. [212.159.80.17]) by smtp.gmail.com with ESMTPSA id c13sm11843028wrc.7.2017.07.29.11.59.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Jul 2017 11:59:47 -0700 (PDT) To: freebsd-fs@FreeBSD.org From: Kaya Saman Subject: ZFS and ISCSI question Message-ID: Date: Sat, 29 Jul 2017 19:59:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Jul 2017 18:59:51 -0000 Hi, I'm trying to find out how ZFS and ISCSI work together. So far I have followed the guide in the handbook: https://www.freebsd.org/doc/handbook/network-iscsi.html Based on the guide what I have done is created 3 demo files using dd: disk1, disk2, disk3 then created a zpool around them: zpool create iscsi-tst /data/disk1 /data/disk2 /data/disk3 and finally a ZVOL: zfs create -V iscsi-tst/tank From the guide a basic (for testing only) ctl.conf: portal-group pg0 { discovery-auth-group no-authentication listen 0.0.0.0 listen [::] } target iqn.2012-06.com.example:target0 { auth-group no-authentication portal-group pg0 lun 0 { path iscsi-tst/tank size 500M } } and then on the Initiator machine: iscsictl -A -p -t iqn.2012-06.com.example:target0 I can confirm a connection: # iscsictl -L Target name Target portal State iqn.2012-06.com.example:target0 Connected: da24 But if we look at dmesg output it is saying the size cannot be queried? da24 at iscsi4 bus 0 scbus9 target 0 lun 0 da24: Fixed Direct Access SPC-4 SCSI device da24: Serial Number MYSERIAL 0 da24: 150.000MB/s transfers da24: Command Queueing enabled da24: Attempt to query device size failed: NOT READY, Logical unit not ready, manual I am wondering what I have done wrong and additionally is it possible to get the Initiator to see the zpool/ZVOL so that I can create a zfs dataset on it? Thanks. Kaya