From owner-freebsd-fs@freebsd.org Sun Jul 30 12:19:32 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 094BFDB653D for ; Sun, 30 Jul 2017 12:19:32 +0000 (UTC) (envelope-from kayasaman@gmail.com) Received: from mail-wm0-x235.google.com (mail-wm0-x235.google.com [IPv6:2a00:1450:400c:c09::235]) (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 8ECA16F55E for ; Sun, 30 Jul 2017 12:19:31 +0000 (UTC) (envelope-from kayasaman@gmail.com) Received: by mail-wm0-x235.google.com with SMTP id m85so54527010wma.0 for ; Sun, 30 Jul 2017 05:19:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=MDV+PatwAs575hv5sIPm8EI5ZLyDgWLZBOEL3fpjbgo=; b=ufELKjWXzY5pZ6PZqlGQRf3XYoIX+DbS1p0Ta3dC68CM1wxZ2JLdJ7sV202rvpHTDS HhBj/5LZB5eQdgIw/Hbf+Q/HN2NQVrbpxJMW6GxgkVRDOJ98tH3P0bmsPmuvDGk7qAhb 1gu3UaB4c/wYcpnuuSAmk5XDQtCqp96j6rANyRKJ9doy4k9a7VokULwjErkZsWBdSVKq 0WzymjMnfZG7VAw7nhYPMhDo2SGAkKIyTLq7ZgERdMUvvFF6UOb48t2FcKThuRmXiWB3 P1fasJ9y2qeEi2KLbMJrj+s4HqZwkeoT/GBDBoelnR1+sLaDNy8qfJcsdYEiDiE58II0 hL3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=MDV+PatwAs575hv5sIPm8EI5ZLyDgWLZBOEL3fpjbgo=; b=UvEruQu8FVe/Jq3U5ta0I+msoDr+jZkTUecnPKpdM+SCBgyLTPGsl3I7walz33au4s zk3OLLQebLmkI/H9K/4VGqfmfGjbNQTHRSO+UmsaD3tnXFfDwAUW8NTCmwF8m95Za2us o9Lx7jQPXCKOrdF3XsN2p5G0tYAdbLtV4WUIV/3Y6IsHXpSFpsUgCidnyMEhvxwa6BJ+ VU1SBpzeEQnboZdoDMXLYitRuaDJ1f9W5183LgGC6HIax92YO6IBpQXJctVcI43uo4MS xpZnvMkq7QLUEvsrYn8Ymfp8dlRsj7AFa5ErxoxveRb7dDK3HzOFbKDx2apn7GEORa9t EuFg== X-Gm-Message-State: AIVw110f5gY8jIr/QoL3wgnmQ3ZmBUN70M2DBTFi42Eh1lQnMd86HAWZ gz4pQrOmwcY/lU6fs5o= X-Received: by 10.28.189.133 with SMTP id n127mr9097668wmf.23.1501417169358; Sun, 30 Jul 2017 05:19:29 -0700 (PDT) Received: from x220.optiplex-networks.com (optiplexnetworks.plus.com. [212.159.80.17]) by smtp.gmail.com with ESMTPSA id i185sm8767230wmf.34.2017.07.30.05.19.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Jul 2017 05:19:28 -0700 (PDT) Subject: Re: ZFS and ISCSI question To: Jov Cc: freebsd-fs References: From: Kaya Saman Message-ID: <0f4905d2-6567-a83c-45f8-435c7c987d5b@gmail.com> Date: Sun, 30 Jul 2017 13:19:27 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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: Sun, 30 Jul 2017 12:19:32 -0000 You forgot to enter the zvol size - f -V argument. I'm surprised it was even created. Eugene. _______________________________________________ freebsd-fs@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-fs To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" Correct! :-) # zfs create -V iscsi-tst/tank bad volume size 'iscsi-tst/tank': bad numeric value 'iscsi-tst/tank So that makes it: zfs create -V 900M iscsi-tst/tank ------- target iqn.2012-06.com.example:target 0 { auth-group no-authentication portal-group pg0 lun 0 { path iscsi-tst/tank Does this path really exist? Mybe should be prefixed with /dev/zvol ? I was thinking ZFS terms but the path has got to be /dev/zvol: # ls /dev/zvol iscsi-tst so the /etc/ctl.conf file reads: target iqn.2012-06.com.example:target0 { auth-group no-authentication portal-group pg0 lun 0 { path /dev/zvol/iscsi-tst/tank size 900M } } Many Thanks for the responses! 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?