From owner-freebsd-fs@freebsd.org Mon Feb 8 21:07:02 2021 Return-Path: Delivered-To: freebsd-fs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 49BC0541F85 for ; Mon, 8 Feb 2021 21:07:02 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-qv1-xf29.google.com (mail-qv1-xf29.google.com [IPv6:2607:f8b0:4864:20::f29]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DZJVs2CNmz4rvW for ; Mon, 8 Feb 2021 21:07:01 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: by mail-qv1-xf29.google.com with SMTP id ew18so7674335qvb.4 for ; Mon, 08 Feb 2021 13:07:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1b79eeWFr0EhcSUbTPsffs+X49iVF3A1u5ziBbkQLTY=; b=SgoR/UOeJ6nqEakR7/bs1JCuaOlQOvDTnzmiLXiaN07aIUJtP0iI7M+qA80o4DZ5BQ 9UC4ESrYrfxuGI9byM7GTT8zc70NcI9RhejhZHEr+8AO4CM5mfF3qE+W9SNZbR5y6sY4 obqXZrT9oTylTYJiNxVMdMlCW7Bdoor1LjIHu0YidwIE3xAEk8H+HuL0qqSUqvjGt5eF Hfx9vVgz2VqVCa2vzkIsHgy3vk2a9rv27aPZc5ql68LwwkGLYpfeQs5y9GQ4hA7m1v0A kBuPIKbpB2BtCQoP5rWrwRk1iBo3l8YqKZwKa2R6wstTErDhf+WusVLqJ9WnN8bfEee6 opRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1b79eeWFr0EhcSUbTPsffs+X49iVF3A1u5ziBbkQLTY=; b=YHPEux8ZJ3hnd7EEs2KEEh8r6ZJSIACyCQs7KPqKYKg3oHtHCRp/cFETU68xygBCG+ fdLkfmLQNKN9w/QCpyQhspaO1+4WGnUHa6sFSUWzgS2oz343cVn8+6Kc0ab7MtBMfcC3 udvoZQDp5J+KmxcCCrjH5sX7q/YFSR4tmhCfr/OSkvX9/66B1m3ZZdwMI/m0Nke51Gst FPjvppx/nvlzdegYsZEXHp+8WtheH1jOw5LrtFMeQz0BoQ4CAEHhyPJ5ciGi1eyNbFiQ 4KOef4W4Bv6pR5Ywx2Hy6rwN/+f46+cuqd2jMJwJedlcFHSbCKcJO44NIjqaSxhHS0S4 0G+g== X-Gm-Message-State: AOAM531egWGtu61zekqqP14UpiJpP8/8/N0xt91Dg90V9WfUlahVjM2d zwMRhSRcMNxKtNoBQtMwCDv81Bt3LtEMwBcYk0s= X-Google-Smtp-Source: ABdhPJyr+K9sCRC1y1b7ljUw8dZxl45NEDNuDqAlBxma9qN3mkKyLW+zExMFZjieZ0Al7wnLjf9JbOk2xd1gQ+tZAlk= X-Received: by 2002:a0c:ee89:: with SMTP id u9mr17943342qvr.40.1612818420498; Mon, 08 Feb 2021 13:07:00 -0800 (PST) MIME-Version: 1.0 References: <8BF84A0F-E66D-423A-AB99-0D19A9BB37EE@via.net> In-Reply-To: <8BF84A0F-E66D-423A-AB99-0D19A9BB37EE@via.net> From: Freddie Cash Date: Mon, 8 Feb 2021 13:06:49 -0800 Message-ID: Subject: Re: zpool list vs df free space? To: joe mcguckin Cc: FreeBSD Filesystems X-Rspamd-Queue-Id: 4DZJVs2CNmz4rvW X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=SgoR/UOe; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of fjwcash@gmail.com designates 2607:f8b0:4864:20::f29 as permitted sender) smtp.mailfrom=fjwcash@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::f29:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::f29:from:127.0.2.255]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::f29:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-fs] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Feb 2021 21:07:02 -0000 On Mon., Feb. 8, 2021, 12:27 p.m. joe mcguckin, wrote: > df -h reports 66T available > > zpool list says 102T > > Why the discrepency? > > This is on a system with 7 16Tb drives configured as raidz2. > > Thanks, > > Joe > > > Joe McGuckin > ViaNet Communications > > joe@via.net > 650-207-0372 cell > 650-213-1302 office > 650-969-2124 fax > "zpool list" shows the raw storage available on the pool, across all the disks in the pool, minus some internal reserved storage. "zfs list" shows the usable storage space after all the parity drives are removed from the calculation. "df" output can be misleading as it doesn't take into account compression and reservations and things like that. It can give you an approximation of available space, but it won't be as accurate as "zfs list". For example, if you have 6x 2 TB drives configured as a single raidz2 vdev, then: zpool list: around 12 TB (6 drives x 2 TB) zfs list: around 8 TB (4 data drives x 2 TB) df: should be around 8 TB Cheers, Freddie Typos due to smartphone keyboard. >