From owner-freebsd-fs@FreeBSD.ORG Tue Apr 17 10:11:31 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 770EF1065670 for ; Tue, 17 Apr 2012 10:11:31 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id F27008FC14 for ; Tue, 17 Apr 2012 10:11:30 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so6067492bkc.13 for ; Tue, 17 Apr 2012 03:11:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=6LY/Lipz0vgAtz2tBQ4tX3EpfBTVm0/AnIuod69VHxc=; b=jF7jfgyg/7Gd0mutmvjZ7bm+Zrb/yge61uiD2X6yBxm74ZYnyL0FPUWoe7MUsWC3QD U0KMCPRUm33gU+BPj+/VTxakOwA7UzIFiIQnXa/D7rrnmwIKzQmzysnoW9nXKwPzTs6V cPRmRX87BZhqdNTlecKFswTECfkeR3Qq6RMZVr5I+d4RsefjBOn3/UivOCTpv7HlVAxQ ExWlXbrLLe7SVMr3jz08TVQUeMcVb7/IiN1oRxq1xXb3W1eZ0+RqXLzQf3tZqcC6PgBs ACioRAjT9HzKJwMICifIf6N+H9RhcMnno6RYoUt78EfmJmvbsk8IJP36hZTXdi1iG3+/ //NQ== Received: by 10.205.117.15 with SMTP id fk15mr4457979bkc.133.1334657490040; Tue, 17 Apr 2012 03:11:30 -0700 (PDT) Received: from green.tandem.local (102-204-132-95.pool.ukrtel.net. [95.132.204.102]) by mx.google.com with ESMTPS id z17sm36776929bkw.12.2012.04.17.03.11.25 (version=SSLv3 cipher=OTHER); Tue, 17 Apr 2012 03:11:28 -0700 (PDT) Message-ID: <4F8D41CA.8020506@gmail.com> Date: Tue, 17 Apr 2012 13:11:22 +0300 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:11.0) Gecko/20120315 Firefox/11.0 SeaMonkey/2.8 MIME-Version: 1.0 To: Mark Schouten References: <4F8D3DFB.4050304@gmail.com> <1334656948.4f8d3fb411797@www.hyperdesktop.nl> In-Reply-To: <1334656948.4f8d3fb411797@www.hyperdesktop.nl> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-fs@freebsd.org" Subject: Re: ZFS and disk usage 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: Tue, 17 Apr 2012 10:11:31 -0000 Mark Schouten wrote: > Hi, > > Op Dinsdag, 17-04-2012 om 11:55 schreef Volodymyr Kostyrko: >> As they are zvols they do exists at /dev/zvol/storage/ and not >> /storage/. Where did all that files came from? >> >> Can you post your iscsitgt setup? > > Ok, so now I feel like an ass. :) I followed this [1] link to setup this box. But I understand that I'm doing that all wrong? > > istgt.conf has the lun's defined like this: > LUN0 Storage /storage/default.do.not.remove 1GB > LUN1 Storage /storage/mail.https-ict.nl.OS 20GB > LUN2 Storage /storage/mail.https-ict.nl.DATA 400GB > > That should point to the /dev/zvol/storage/ devices? > > [1]: http://www.techjolts.com/2011/01/14/iscsi-target-with-zfs-freebsd/ As I never worked with istgt myself I can't really say, but yes this somehow feels wrong to me. As all your data could be potentially stored in raw files let's test it another way. Could you create another zfs volume/istgt target and point it at /dev/zvol/storage/new_volume? 1. Would access to this new device work? 2. Would some new file be created? 3. Would some data be accounted to new_volume? -- Sphinx of black quartz judge my vow.