From owner-freebsd-fs@FreeBSD.ORG Sat Nov 26 12:56:55 2011 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 CE0721065672; Sat, 26 Nov 2011 12:56:55 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 360148FC18; Sat, 26 Nov 2011 12:56:54 +0000 (UTC) Received: by wwe5 with SMTP id 5so3681109wwe.31 for ; Sat, 26 Nov 2011 04:56:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=CxeOAQC0UrI/vOTSisNWOz644yMYc9XhZolDONmpFH0=; b=fHRop2/I2eVOAFwdF1Xz8rnijBrtk7JNZ1z1F1Kg5fhwlGf+TseldvuaTFF6VCdiVL +Pr0BfL5Ck2P/PK5LvmwITBCiWEwZj4vLzwGq+zZydXMUVB5VW3cHe8r2sylBlfUejy8 1tIcX/S9dagU+CUgos9niAu04OIG46l3CWYJw= Received: by 10.180.108.114 with SMTP id hj18mr39201943wib.2.1322312214062; Sat, 26 Nov 2011 04:56:54 -0800 (PST) Received: from [192.168.1.11] (5ED0E470.cm-7-1d.dynamic.ziggo.nl. [94.208.228.112]) by mx.google.com with ESMTPS id fg15sm7797685wbb.7.2011.11.26.04.56.53 (version=SSLv3 cipher=OTHER); Sat, 26 Nov 2011 04:56:53 -0800 (PST) Message-ID: <4ED0E214.3090506@gmail.com> Date: Sat, 26 Nov 2011 13:56:52 +0100 From: Johan Hendriks User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: freebsd-fs@freebsd.org References: <4ED0949A.8080602@gmail.com> <20111126120727.GB8794@garage.freebsd.pl> In-Reply-To: <20111126120727.GB8794@garage.freebsd.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Pawel Jakub Dawidek Subject: Re: zvol and zfs send no file on the receiving side. 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: Sat, 26 Nov 2011 12:56:55 -0000 Pawel Jakub Dawidek schreef: > On Sat, Nov 26, 2011 at 08:26:18AM +0100, Johan Hendriks wrote: >> Hello all! >> >> After some reluctance using zfs i decided it was time to just use it, >> and it make my life a lot easier. >> Thank you all ! >> >> One thing i can not get to work however is sending and receiving a zfs >> volume. >> >> I have a master so to say, and a bacup server. >> On the master the pool is named storage, on the backup machine the pool >> is called tank. >> >> on the master i did the following. >> >> # zfs create -V10G storage/iscsitest >> >> if i do a zfs list -t volume, i see that the volume is there. >> >> # zfs list -t volume >> NAME USED AVAIL REFER MOUNTPOINT >> storage/iscsitest 10.3G 65.9G 16K - >> >> If i go to the directory /storage and do a ls -al >> i see my zvol file. >> >> # ls -al >> total 1901416 >> drwxr-xr-x 4 root wheel 5 Nov 25 17:44 . >> drwxr-xr-x 19 root wheel 1024 Nov 25 11:33 .. >> -rw-r--r-- 1 root wheel 10737418240 Nov 25 20:46 iscsitest > Very interesting that you have this file here. It surely wasn't created > by ZFS. ZVOL is not regular file, it is a GEOM provider (disk-like device) > and can be found in /dev/zvol/storage/iscsitest. > I think that the file gets created by the istgt software itself. i set that path in /usr/local/etc/istgt/istgt.conf #LUN0 Storage /storage/iscsitest 10GB That make me think that it was my zvol. Well i am glad this is solved it caused me lot of headache, but i have learned a lot :D Tonight i will try it all! regards and thank you both for your time. Johan Hendriks