From owner-freebsd-stable@FreeBSD.ORG Wed May 5 16:29:04 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DE091106566C for ; Wed, 5 May 2010 16:29:04 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-yw0-f181.google.com (mail-yw0-f181.google.com [209.85.211.181]) by mx1.freebsd.org (Postfix) with ESMTP id 974298FC0A for ; Wed, 5 May 2010 16:29:04 +0000 (UTC) Received: by ywh11 with SMTP id 11so2360705ywh.7 for ; Wed, 05 May 2010 09:29:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=0R2nQoo+z4NenRSCp8xobOwEw6fvQU9WqaSm6dicLos=; b=KgSUG9+taS3AMjNUf6w3KOnzNZ4UTYgX005iV41jpzAAaSylcKXCYVoA5Mx1i3ERkN kR/O3I3sSnusgEFtXFmCVmUy7esOddXhMVQPRITEAcuA5aUZcjlJtl9Lbqqqlo+icmp7 aaK4uUezJ/nQNvrKlwzwJsX7jXHob3Gm+8sUA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=uiCQXe9AZP9JWj9tIPFkd0IEAI4kZz/Dqu8viIT5RjWgj+IBYM1AAI9tMu8+KnZQd+ +Kcr6QZ1wggmcCg1vTIQZTfyjoIhQFFr9Ie5G8I5EpkSTM3novSqN+OUIuJee1WMXvwQ wm/WKno4F7ibAyDqtD/tZZSSo6IxRBotmBRMo= MIME-Version: 1.0 Received: by 10.231.168.1 with SMTP id s1mr945210iby.84.1273076934488; Wed, 05 May 2010 09:28:54 -0700 (PDT) Received: by 10.231.16.69 with HTTP; Wed, 5 May 2010 09:28:54 -0700 (PDT) In-Reply-To: References: Date: Wed, 5 May 2010 09:28:54 -0700 Message-ID: From: Freddie Cash To: FreeBSD Stable Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Different sizes between zfs list and zpool list X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 May 2010 16:29:04 -0000 On Wed, May 5, 2010 at 9:20 AM, Tom Evans wrote: > On Wed, May 5, 2010 at 4:56 PM, Freddie Cash wrote: > > On Wed, May 5, 2010 at 8:44 AM, Tom Evans > wrote: > > > >> When looking at the size of a pool, this information can be got from > >> both zpool list and zfs list: > >> > >> > $ zfs list > >> NAME USED AVAIL REFER MOUNTPOINT > >> tank 5.69T 982G 36.5K /tank > >> > >> > $ zpool list > >> NAME SIZE USED AVAIL CAP HEALTH ALTROOT > >> tank 8.14T 6.86T 1.28T 84% ONLINE - > >> > >> Why the different sizes? > >> The pool is a raidz of 6 x 1.5 TB drives. > >> > > > > zpool lists the raw storage available to the pool. Every single bit of > > every single drive is listed here. This will be 6 x 1 TB. > > > > zfs lists only the amount of storage available to be used, after all > > redundancy is taken into account. This will be 5 x 1 TB. > > Ah, that makes sense - also explains why the df output matches up > precisely with the zfs list output. > Things get really interesting once you enable compression on a filesystem, as then du, df, and zfs list will all be different. :) There's a great post on the zfs-discuss mailing list that covers this. I'll see if I can dig it up. -- Freddie Cash fjwcash@gmail.com