From owner-freebsd-fs@FreeBSD.ORG Wed Sep 26 14:37:09 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B44C8106564A for ; Wed, 26 Sep 2012 14:37:09 +0000 (UTC) (envelope-from zeus@ibs.dn.ua) Received: from relay.ibs.dn.ua (relay.ibs.dn.ua [91.216.196.25]) by mx1.freebsd.org (Postfix) with ESMTP id 30E908FC1A for ; Wed, 26 Sep 2012 14:37:08 +0000 (UTC) Received: from ibs.dn.ua (relay.ibs.dn.ua [91.216.196.25]) by relay.ibs.dn.ua with ESMTP id q8QEb0Qg029601 for ; Wed, 26 Sep 2012 17:37:00 +0300 (EEST) Message-ID: <20120926173700.29600@relay.ibs.dn.ua> Date: Wed, 26 Sep 2012 17:37:00 +0300 From: Zeus Panchenko To: cc: Organization: I.B.S. LLC X-Mailer: MH-E 8.2; GNU Mailutils 2.99.97; GNU Emacs 23.4.1 X-Face: &sReWXo3Iwtqql1[My(t1Gkx; y?KF@KF`4X+'9Cs@PtK^y%}^.>Mtbpyz6U=,Op:KPOT.uG )Nvx`=er!l?WASh7KeaGhga"1[&yz$_7ir'cVp7o%CGbJ/V)j/=]vzvvcqcZkf; JDurQG6wTg+?/xA go`}1.Ze//K; Fk&/&OoHd'[b7iGt2UO>o(YskCT[_D)kh4!yY'<&:yt+zM=A`@`~9U+P[qS:f; #9z~ Or/Bo#N-'S'!'[3Wog'ADkyMqmGDvga?WW)qd=?)`Y&k=o}>!ST\ Subject: how to access ZFS snapshot via iSCSI X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Zeus Panchenko List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Sep 2012 14:37:09 -0000 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 and trying to restart istgt, I'm getting: LU4 HDD UNIT LU4: LUN0 file=/dev/zvol/storage/win/zvol-totest, size=536870912000 LU4: LUN0 1048576000 blocks, 512 bytes/block LU4: LUN0 500.0GB storage for iqn.2007-09.jp.ne.peach.istgt:zvol-totest LU4: LUN0 serial 10000004 LU4: LUN0 read cache enabled, write cache enabled LU4: LUN0 command queuing enabled, depth 64 LU5 HDD UNIT LU5: LUN0 file=/dev/zvol/storage/win/zvol-totest@hourly-2012-09-26-11, size=536870912000 LU5: LUN0 1048576000 blocks, 512 bytes/block istgt_lu_disk.c: 642:istgt_lu_disk_init: ***ERROR*** LU5: LUN0: open error(errno=17) istgt_lu.c:2091:istgt_lu_init_unit: ***ERROR*** LU5: lu_disk_init() failed istgt_lu.c:2166:istgt_lu_init: ***ERROR*** LU5: lu_init_unit() failed istgt.c:2799:main: ***ERROR*** istgt_lu_init() failed /usr/local/etc/rc.d/istgt: WARNING: failed to start istgt where am I wrong? -- Zeus V. Panchenko jid:zeus@im.ibs.dn.ua IT Dpt., I.B.S. LLC GMT+2 (EET)