From owner-freebsd-questions@freebsd.org Mon Apr 11 05:19:12 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9F55FAEC6E3 for ; Mon, 11 Apr 2016 05:19:12 +0000 (UTC) (envelope-from wam@hiwaay.net) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 464F21992 for ; Mon, 11 Apr 2016 05:19:11 +0000 (UTC) (envelope-from wam@hiwaay.net) Received: from kabini1.local (user-24-214-48-39.knology.net [24.214.48.39]) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id u3B5J83L024651 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Mon, 11 Apr 2016 00:19:09 -0500 Subject: Re: Stupid question regarding ZFS and `df -h` output To: freebsd-questions@freebsd.org References: <20160410150013.4d34a49b@portege> <20160410210221.42a97cc8@misery.dabus.com> From: "William A. Mahaffey III" Message-ID: <570B33CC.4040609@hiwaay.net> Date: Mon, 11 Apr 2016 00:24:38 -0453.75 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <20160410210221.42a97cc8@misery.dabus.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Apr 2016 05:19:12 -0000 On 04/10/16 22:08, Eric S Pulley wrote: > On Sun, 10 Apr 2016 15:00:13 +0300 > Aleksander Alekseev wrote: > >> Hello >> >> I installed FreeBSD using steps like "Next -> Next -> ZFS -> use >> entire disk and don't bother me with stupid questions -> Next" >> >> I have 128 Gb hard drive: >> >> ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 >> ada0: ATA8-ACS SATA 3.x device >> ada0: Serial Number 82GS10GGT2GY >> ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) >> ada0: Command Queueing enabled >> ada0: 122104MB (250069680 512 byte sectors) >> >> And here is `df -h` output: >> >> Filesystem Size Used Avail Capacity Mounted on >> zroot/ROOT/default 95G 21G 74G 22% / >> devfs 1.0K 1.0K 0B 100% /dev >> zroot/tmp 75G 153M 74G 0% /tmp >> zroot/usr/home 89G 15G 74G 17% /usr/home >> zroot/usr/ports 75G 859M 74G 1% /usr/ports >> zroot/usr/src 76G 1.2G 74G 2% /usr/src >> zroot/var/audit 74G 96K 74G 0% /var/audit >> zroot/var/crash 75G 930M 74G 1% /var/crash >> zroot/var/log 74G 360K 74G 0% /var/log >> zroot/var/mail 74G 188K >> 74G 0% /var/mail zroot/var/tmp 74G 136K >> 74G 0% /var/tmp zroot 74G 96K 74G >> 0% /zroot >> >> How exactly should I read this to get result "all 128 GB are used"? >> > You have to change your way of thinking a little with ZFS. On my full > ZFS systems I usually make a shell alias for df to actually run `zfs > list -o mountpoint,quota,used,avail`. and I have quotas set on the > "traditional" mountpoints. > > Mess around with the -o options to zfs list until it tells you want you > want to see. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > .... & of course remember that HDD manufacturers report sizes in KB/MB/GB (base 10), while the booted OS uses KiB/MiB/GiB (base 2) .... -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr.