From owner-freebsd-fs@freebsd.org Sun Jul 30 10:54:14 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 F3E82DB4567 for ; Sun, 30 Jul 2017 10:54:13 +0000 (UTC) (envelope-from zhao6014@gmail.com) Received: from mail-oi0-x230.google.com (mail-oi0-x230.google.com [IPv6:2607:f8b0:4003:c06::230]) (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 BFFDF6CEEC for ; Sun, 30 Jul 2017 10:54:13 +0000 (UTC) (envelope-from zhao6014@gmail.com) Received: by mail-oi0-x230.google.com with SMTP id a9so163614303oih.0 for ; Sun, 30 Jul 2017 03:54:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=oPPKphoANpv5YE98v3+8GJuC0TyKB8zJ2wsDVudf7pk=; b=jUcmoZqpGdcxJDki3O1qT/8BoU8B0FsgENIT7swdLysT5Q/CdYby9tAMvHHmGPMQig r59VqW3LkGtgj9/SJV5E+NGhhC+fKg6GQlW08qTHegWUC0iZ9KCUOpaiefcDtdrjmeMf uKzxSdrsMHcY2jrwrmKUXn6YpzF/gIkPheJQD/gZnN0YDhOM4BVxbgv13iajqj63+vlZ k2YPy5adfVfynMVxwYkcXGQ3UPOETMN/WhpiZK33qkd9/QtgJPtP+ve/931CuzQ5jLIY La+/En9Q6au3Lr20IPRevyKAV2fw1BQ5ZU4IQr+dn5bU9oYULl6EebMwL4I/i3FBmFnh vhzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=oPPKphoANpv5YE98v3+8GJuC0TyKB8zJ2wsDVudf7pk=; b=syL/+1MJnXJSpKPDn9alvQua20ZjyeimtW+3HkxiqnjADMjEB61pnNKS9XEx69fx/k WjvODr96Dkyk//dpS6MuPrjA7420y/3BDcL4RA3GaxkbdfW8fXBHMEQMnZVvmw4RCJ8w VO2KWClh1ltZ0PgAVEx/e+spErKo9U6R3u8QbqXK9AudAfBxtdWVlmZKj7flehXQurV8 KB7KiwiVKUOo6sArnaIwfyJcRdqy+9RZth0yTmcXVXYbTR6WCTcRgWxW10ENiF8Vya2X dfaQXYF0a0uIxamY1qStZ6jvVCEVtT54ziUiKC2TBvipuvMYQepP5gQLybqQ3hSc4jtF 8qOg== X-Gm-Message-State: AIVw113eRDuMM+upTcVVQIBOpyV1w/Sphxsn6C46+6J/ImTErIPLmjPo 3vt7ufrJGb79sdMDCP8xYBph2/iXxg== X-Received: by 10.202.71.205 with SMTP id u196mr11212905oia.49.1501412053095; Sun, 30 Jul 2017 03:54:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.128.197 with HTTP; Sun, 30 Jul 2017 03:54:12 -0700 (PDT) Received: by 10.74.128.197 with HTTP; Sun, 30 Jul 2017 03:54:12 -0700 (PDT) In-Reply-To: References: From: Jov Date: Sun, 30 Jul 2017 18:54:12 +0800 Message-ID: Subject: Re: ZFS and ISCSI question To: Kaya Saman Cc: freebsd-fs Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 10:54:14 -0000 See the inline comment about path. Jov 2017=E5=B9=B47=E6=9C=8830=E6=97=A5 2:59 AM=EF=BC=8C"Kaya Saman" =E5=86=99=E9=81=93=EF=BC=9A 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 Does this path really exist? Mybe should be prefixed with /dev/zvol ? 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 _______________________________________________ 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"