Date: Sat, 29 Jul 2017 19:59:47 +0100 From: Kaya Saman <kayasaman@gmail.com> To: freebsd-fs@FreeBSD.org Subject: ZFS and ISCSI question Message-ID: <fd4b620a-e1dc-157e-a914-a8d0192c1199@gmail.com>
next in thread | raw e-mail | index | archive | help
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? Thanks. Kaya
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fd4b620a-e1dc-157e-a914-a8d0192c1199>