From owner-freebsd-fs@FreeBSD.ORG Thu Sep 27 13:57:24 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E1F54106564A for ; Thu, 27 Sep 2012 13:57:24 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6AF8E8FC0A for ; Thu, 27 Sep 2012 13:57:24 +0000 (UTC) Received: by bkcjf20 with SMTP id jf20so805471bkc.13 for ; Thu, 27 Sep 2012 06:57:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=PsDukY8U2B0UAXl7Peq+FHVfY7vVjJGBT2RVKDgqmas=; b=gUmQjQQtBUkYJgUBMD747Z9lTU4bqdS+YOu7Tj0hmOlvWYIU2wuRlxhujQlPtXiWT0 PI1/UdCMjgT4hE0SE3qq/CpFsqkbnQi5nX+/Ifj3SLtJwP2tTYgkyQbE5J3Cg2AA2oEY l5ntCkiZVeyNccOnSvnPnEo3H/dIVLYuzT4dGJZqZQvcu4oz1Ee1Nvse5AODvJE++LKz VoCoQGUjBo0TziQi+QcWIJLlW8ra1+FTYe9LUr2QJQcFrfJ8D6/B0pCCNrcfe+rdN+Xi XIRva9eHp5Xyb8QrInmpvNVRCo97yt+fJbUYv09tPHs1wtdtlPTGX0JOSd7KQA7++a7O Zy+g== MIME-Version: 1.0 Received: by 10.152.110.74 with SMTP id hy10mr3362792lab.54.1348754243050; Thu, 27 Sep 2012 06:57:23 -0700 (PDT) Received: by 10.112.2.36 with HTTP; Thu, 27 Sep 2012 06:57:22 -0700 (PDT) In-Reply-To: <20120926173700.29600@relay.ibs.dn.ua> References: <20120926173700.29600@relay.ibs.dn.ua> Date: Thu, 27 Sep 2012 15:57:22 +0200 Message-ID: From: Olivier Smedts To: Zeus Panchenko Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQnM8GwJrM0I9Z50NesgzNVwjSflSaW9m9WoTPMwiKcmQ9neICFDMQAeb+cQCqHrrr7F4IuW Cc: freebsd-fs@freebsd.org Subject: Re: how to access ZFS snapshot via iSCSI X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Sep 2012 13:57:25 -0000 2012/9/26 Zeus Panchenko : > hi all, > > please, may somebody advice, can I access ZFS snapshot via iSCSI? > > I do can get access to ZFS filesystem and zvol, but how to access ZFS snapshot? > > I am trying that via istgt, in istgt.conf I put: > > [LogicalUnit4] > Comment "ZVOL 500Gb to test" > TargetName zvol-totest > Mapping PortalGroup1 InitiatorGroup1 > AuthMethod Auto > AuthGroup AuthGroup1 > UseDigest Auto > UnitType Disk > QueueDepth 64 > LUN0 Storage /dev/zvol/storage/win/zvol-totest Auto > > and I can mount it and use > > when I put > > [LogicalUnit5] > Comment "snapshot of ZVOL 500Gb totest" > TargetName zvol-totest-snapshot > Mapping PortalGroup1 InitiatorGroup1 > AuthMethod Auto > AuthGroup AuthGroup1 > UseDigest Auto > UnitType Disk > QueueDepth 64 > LUN0 Storage /dev/zvol/storage/win/zvol-totest@hourly-2012-09-26-11 Auto Can you set a read-only access in this config file ? Maybe istgt tries to open the volume read-write but it can't because it's a snapshot. -- Olivier Smedts _ ASCII ribbon campaign ( ) e-mail: olivier@gid0.org - against HTML email & vCards X www: http://www.gid0.org - against proprietary attachments / \ "Il y a seulement 10 sortes de gens dans le monde : ceux qui comprennent le binaire, et ceux qui ne le comprennent pas."