From owner-freebsd-fs@FreeBSD.ORG Fri Apr 13 16:33:07 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 BC5AA10657E0 for ; Fri, 13 Apr 2012 16:33:07 +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 3B11D8FC16 for ; Fri, 13 Apr 2012 16:33:07 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so3318508bkc.13 for ; Fri, 13 Apr 2012 09:33:06 -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=J2fwRC65NXKgXBV6QDoybrP0uwANnIf95Xj4qsa4fmY=; b=ba+rtGHka3dyj0J9tFt5MDX3dDb2AOcA1AE3ayL49NRjXflgeuzmD+FwE5Z8p/bpdE /jyf3XUJn4xiQ+NZdKqYj5LIJv+9p1XUgzWIEILn1N1d5/OBx7gdZ5nYIyZeMZTEZryZ 9zCP+Cu8PrvWINHDHwhH6Cg4TEth6rQDrAgIKGtE9PPHn27CacAuQKInMzRuhINmxRQM iMZpV1lYpp6sf1MV6msxjqQ18GKrzqtIRL0SzbecpIovmLHDAJUJg1ZduUYDYc8CGlaL ihhTcsGlzj33NGAgJlZEIV9jUuqOCmYdNDsJnkhUdm1Wf2mdZOIuIuXzhONSZLDEIbPX LZ3g== Received: by 10.204.133.216 with SMTP id g24mr656144bkt.104.1334334786216; Fri, 13 Apr 2012 09:33:06 -0700 (PDT) Received: from green.tandem.local (223-39-132-95.pool.ukrtel.net. [95.132.39.223]) by mx.google.com with ESMTPS id jr13sm17319734bkb.14.2012.04.13.09.33.02 (version=SSLv3 cipher=OTHER); Fri, 13 Apr 2012 09:33:05 -0700 (PDT) Message-ID: <4F88553B.5030005@gmail.com> Date: Fri, 13 Apr 2012 19:32:59 +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: <4F8825E5.3040809@gmail.com> <1334323707.4f8829fbe801e@www.hyperdesktop.nl> In-Reply-To: <1334323707.4f8829fbe801e@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: Fri, 13 Apr 2012 16:33:07 -0000 Mark Schouten wrote: > Hi, > > Op Vrijdag, 13-04-2012 om 15:11 schreef Volodymyr Kostyrko: >>> These are fiesystems that are created with the following command. >>> zfs create -V ${size}GB ${ZFS_ROOT}/${diskname} >> >> `zfs create -V` withous `-s` creates reserved volume that eats all >> needed space immediately. Technically zfs pool is filled only for 23%, >> but logically you have only 138G left unassigned. > > I understand. However, the created volumes should use a total of 1211GB. That's not 1.6TB like zfs list says. But 1211 + 431 (referred) does come close to 1.6TB.n And 1.6 TB still isn't the 1.77TB that's in the zpool. After reinventing calculator I'm just puzzled and shamed. This looks strange. Indeed not just a single byte from this files should count directly for the main filesystem. Just curious, what `ls -la /storage/' and `ls -la /storage/.zfs/s*` show? > > I have this feeling that zfs has reserved the space for each volume, but counts data written to the volumes in usage of the main filesystem. Mainly because zfs list shows me that the volumes have only 16KB referenced, where /storage has 431GB referenced. > -- Sphinx of black quartz judge my vow.