From owner-freebsd-current@FreeBSD.ORG Thu Apr 26 15:01:38 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B3DAE16A401 for ; Thu, 26 Apr 2007 15:01:38 +0000 (UTC) (envelope-from bp@barryp.org) Received: from eden.barryp.org (host-42-60-230-24.midco.net [24.230.60.42]) by mx1.freebsd.org (Postfix) with ESMTP id 8CAA113C45A for ; Thu, 26 Apr 2007 15:01:38 +0000 (UTC) (envelope-from bp@barryp.org) Received: from geo.med.und.nodak.edu ([134.129.166.11]) by eden.barryp.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1Hh59F-0006GY-T0; Thu, 26 Apr 2007 09:40:42 -0500 Message-ID: <4630B9E5.9000606@barryp.org> Date: Thu, 26 Apr 2007 09:40:37 -0500 From: Barry Pederson User-Agent: Thunderbird 1.5.0.10 (X11/20070221) MIME-Version: 1.0 To: Alexandre Biancalana References: <8e10486b0704260701w3a6ca86hb833de23849514df@mail.gmail.com> In-Reply-To: <8e10486b0704260701w3a6ca86hb833de23849514df@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: zfs: df and zpool list report different size X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2007 15:01:38 -0000 Alexandre Biancalana wrote: > Hi list, > > I update one machine to -CURRENT (yesterday), and now I'm creating zfs > filesystem using the following devices: > > ad9: 305245MB at ata4-slave SATA150 > ad11: 305245MB at ata5-slave SATA150 > > Next I created the pool: > > # zpool create backup raidz ad9 ad11 > # mount > /dev/ad8s1a on / (ufs, local) > devfs on /dev (devfs, local) > backup on /backup (zfs, local) > > # df -h > Filesystem Size Used Avail Capacity Mounted on > /dev/ad8s1a 72G 2.2G 64G 3% / > devfs 1.0K 1.0K 0B 100% /dev > backup 293G 0B 293G 0% /backup > > # zpool list > NAME SIZE USED AVAIL CAP HEALTH ALTROOT > backup 596G 222K 596G 0% ONLINE - > > > > My doubt is why zpool list and df -h report different size ? Which of then > is correct and should I trust ? The zpool size is correct in totalling up the usable size on the pool's drives, but it's not telling you how much is taken up by redundancy, so it's probably not a useful number to you. The "df -h" is also correct and probably more useful. "zfs list" should show a similar useful number. Barry