From owner-freebsd-fs@freebsd.org Mon Jul 31 10:05:18 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 F1795DCF23D for ; Mon, 31 Jul 2017 10:05:18 +0000 (UTC) (envelope-from emz@norma.perm.ru) Received: from elf.hq.norma.perm.ru (mail.norma.perm.ru [IPv6:2a00:7540:1::5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.norma.perm.ru", Issuer "Vivat-Trade UNIX Root CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6185570D3B for ; Mon, 31 Jul 2017 10:05:17 +0000 (UTC) (envelope-from emz@norma.perm.ru) Received: from bsdrookie.norma.com. (net206-94.perm.ertelecom.ru [46.146.206.94] (may be forged)) by elf.hq.norma.perm.ru (8.15.2/8.15.2) with ESMTPS id v6VA5Bkc018370 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Mon, 31 Jul 2017 15:05:12 +0500 (YEKT) (envelope-from emz@norma.perm.ru) Subject: Re: ZFS and ISCSI question To: freebsd-fs@freebsd.org References: <0f4905d2-6567-a83c-45f8-435c7c987d5b@gmail.com> From: "Eugene M. Zheganin" Message-ID: <27221f18-07d7-64c6-289a-81e839b10d67@norma.perm.ru> Date: Mon, 31 Jul 2017 15:05:11 +0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <0f4905d2-6567-a83c-45f8-435c7c987d5b@gmail.com> Content-Type: text/plain; charset=koi8-r; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spamd-Result: default: False [1.50 / 25.00] RBL_SPAMHAUS_PBL(2.00)[94.206.146.46.zen.spamhaus.org : 127.0.0.10] HFILTER_HOSTNAME_UNKNOWN(2.50)[] BAYES_HAM(-3.00)[99.99%] DMARC_NA(0.00)[norma.perm.ru] MIME_GOOD(-0.10)[text/plain] R_DKIM_NA(0.00)[] R_SPF_SOFTFAIL(0.00)[~all] RCPT_COUNT_1(0.00)[] MID_RHS_MATCH_FROM(0.00)[] RECEIVED_SPAMHAUS(0.00)[94.206.146.46.zen.spamhaus.org] TO_MATCH_ENVRCPT_ALL(0.00)[] FROM_HAS_DN(0.00)[] TO_DN_NONE(0.00)[] FROM_EQ_ENVFROM(0.00)[] RCVD_COUNT_1(0.00)[] ONCE_RECEIVED(0.10)[] X-Rspamd-Server: localhost X-Rspamd-Scan-Time: 0.62 X-Rspamd-Queue-ID: v6VA5Bkc018370 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: Mon, 31 Jul 2017 10:05:19 -0000 Hi. On 30.07.2017 17:19, Kaya Saman wrote: > > > I understand that iscsi works at the "block device" level but how > would one go about using ZFS on the initiator? > > The standard ZFS commands can be run: > > zpool followed by zfs FS-set on the Initiator machine > > however, it doesn't seem right to first create a ZFS pool on the > Target system then create another one on the same pool on the Initiator. > > > > Would zpool import/export work or does something else need to be done > to get the Initiator to create a ZFS data set? Zvol is a block device indeed, but, even it is an entity from a parent zfs pool, it doesn't contain any filesystem, including zfs. Thus the kernel won't see anything. So you have to create a zpool first with 'zpool create'. Eugene.