Date: Sun, 30 Jul 2017 11:34:02 +0500 From: "Eugene M. Zheganin" <emz@norma.perm.ru> To: freebsd-fs@freebsd.org Subject: Re: ZFS and ISCSI question Message-ID: <b11db265-58ce-216e-8822-800762ee9a71@norma.perm.ru> In-Reply-To: <fd4b620a-e1dc-157e-a914-a8d0192c1199@gmail.com> References: <fd4b620a-e1dc-157e-a914-a8d0192c1199@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 29.07.2017 23:59, Kaya Saman wrote: > 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 <IP Address> -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 <IP Address> 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: <FREEBSD CTLDISK 0001> 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? > You forgot to enter the zvol size - f -V argument. I'm surprised it was even created. Eugene.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b11db265-58ce-216e-8822-800762ee9a71>