From owner-freebsd-fs@FreeBSD.ORG Fri Apr 13 15:27:36 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 058721065670 for ; Fri, 13 Apr 2012 15:27:36 +0000 (UTC) (envelope-from freebsd-fs@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by mx1.freebsd.org (Postfix) with ESMTP id B021E8FC0A for ; Fri, 13 Apr 2012 15:27:35 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SIiPF-0000Y4-06 for freebsd-fs@freebsd.org; Fri, 13 Apr 2012 17:27:25 +0200 Received: from dyn1200-198.wlan.ic.ac.uk ([129.31.200.198]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 13 Apr 2012 17:27:24 +0200 Received: from johannes by dyn1200-198.wlan.ic.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 13 Apr 2012 17:27:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-fs@freebsd.org From: Johannes Totz Date: Fri, 13 Apr 2012 16:27:10 +0100 Lines: 29 Message-ID: References: <4F8825E5.3040809@gmail.com> <1334323707.4f8829fbe801e@www.hyperdesktop.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: dyn1200-198.wlan.ic.ac.uk User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 In-Reply-To: <1334323707.4f8829fbe801e@www.hyperdesktop.nl> 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 15:27:36 -0000 On 13/04/2012 14:28, 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. > > 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. Without checking the numbers myself... Note that zpool and zfs do not agree on (free) space accounting: zpool shows "raw" space, whereas zfs includes metadata overhead for itself. Small rant: I dont understand why zpool and zfs show different things. If you have an integrated storage stack then why not show consistent numbers? Is there any use for this extra (mis-)information that zpool-vs-zfs provides?