From owner-freebsd-stable@FreeBSD.ORG Tue Jan 17 17:37:25 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 365801065675 for ; Tue, 17 Jan 2012 17:37:25 +0000 (UTC) (envelope-from se@freebsd.org) Received: from nm16.bullet.mail.sp2.yahoo.com (nm16.bullet.mail.sp2.yahoo.com [98.139.91.86]) by mx1.freebsd.org (Postfix) with SMTP id 167F58FC1E for ; Tue, 17 Jan 2012 17:37:24 +0000 (UTC) Received: from [98.139.91.62] by nm16.bullet.mail.sp2.yahoo.com with NNFMP; 17 Jan 2012 17:37:24 -0000 Received: from [208.71.42.208] by tm2.bullet.mail.sp2.yahoo.com with NNFMP; 17 Jan 2012 17:37:24 -0000 Received: from [127.0.0.1] by smtp219.mail.gq1.yahoo.com with NNFMP; 17 Jan 2012 17:37:24 -0000 X-Yahoo-Newman-Id: 725716.68092.bm@smtp219.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: jy_lEZAVM1k.uvb33MNlQhh8ntAdhA6eRbgMmmbz1OdFuQj rNvFIvN4FBV4_lxUBDmLxeLd4ahUZks4NuFNGiK.Xa7U2ZP_q0Me4PKwd2Fd vlqwdelNvmX.HWryk5uHt7V0u69b5JTYNnA1d1.iETyNCD4CxP2zJf.me2oK NEnTbvTjk2b8astENQd.d078AM2NO6.WDx5xJlU55aOyS720YfLaKZnS0ylm N2OTOMbjR.XVikJZLiosJTsngKqhELZhKmX1nHOAAgpzSOLD2swu5UjDZyaD ATjJB5yCs8J7ogCQ2EgoQIyQybTh8LNfOujs_b_hu9yZr_lnwc9vEEJjLuTA TBvw3t0txWwz7dVh_tHX8_2SCernQwyr7qtBCiMsQL85q_.yGvF.qCGEYqcP OTVVJ_xKIHKqHQCcoJBk5mbjoihZSsBbVyqCzLbSzOCLIrcoWCIz46lrY X-Yahoo-SMTP: iDf2N9.swBDAhYEh7VHfpgq0lnq. Received: from [192.168.119.20] (se@81.173.153.186 with plain) by smtp219.mail.gq1.yahoo.com with SMTP; 17 Jan 2012 09:37:24 -0800 PST Message-ID: <4F15B1D4.9080907@freebsd.org> Date: Tue, 17 Jan 2012 18:37:24 +0100 From: Stefan Esser User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: Christer Solskogen References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: FreeBSD Stable Subject: Re: ZFS / zpool size 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: Tue, 17 Jan 2012 17:37:25 -0000 Am 17.01.2012 16:47, schrieb Christer Solskogen: > Hi! > > I have a zpool called data, and I have some inconsistencies with sizes. > > $ zpool iostat > capacity operations bandwidth > pool alloc free read write read write > ---------- ----- ----- ----- ----- ----- ----- > data 3.32T 761G 516 50 56.1M 1.13M > > $ zfs list -t all > NAME USED AVAIL REFER MOUNTPOINT > data 2.21T 463G 9.06G /data > > Can anyone throw any light on this? The ZFS numbers are 2/3 of the ZPOOL numbers for alloc. This looks like a raidz1 over 3 drives. The ZPOOL command shows disk blocks available and used (disk drive view), the ZFS command operates on the file-system level and shows blocks used to hold actual data or available for actual data (does not account for RAID parity overhead). > Is not free the same as AVAIL? Avail should be 2/3 of free, but I guess there is some overhead that reduces the number of available blocks. > I do not have any zfs snapshots, but some filesystems are compressed. Compression affects the ZPOOL and ZFS numbers in the same way, but "zfs list" and "df" will differ significantly for file-systems that contain compressible data. Regards, STefan