From owner-freebsd-questions@freebsd.org Mon Apr 11 03:11:09 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 2DC36B0B68E for ; Mon, 11 Apr 2016 03:11:09 +0000 (UTC) (envelope-from pulley@dabus.com) Received: from aegir.dabus.com (aegir.dabus.com [173.14.229.218]) by mx1.freebsd.org (Postfix) with ESMTP id 13D34199E for ; Mon, 11 Apr 2016 03:11:08 +0000 (UTC) (envelope-from pulley@dabus.com) Received: from aegir.dabus.com (aegir [173.14.229.218]) by aegir.dabus.com (Processor) with ESMTP id 9BE431009A3 for ; Sun, 10 Apr 2016 21:02:21 -0600 (MDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=aegir1; d=dabus.com; h=Received:Date:From:To:Subject:Message-ID:In-Reply-To:References:Organization:X-Mailer:MIME-Version:Content-Type:Content-Transfer-Encoding; b=WpPK2ZFdciOmmdmtYoFXsjkS5vZGdtTm2qjD9lYygwJY8H1G9ADAT/J32Cw28VXfTlQeqINEbxFIz/Zu3s5pFj6k7KtFIBaCtGpYQGonwBRVuZEuJa0pRfK5v/3DCZ+Fjo6HAOKb/xXc6Juhy8wKIZK2sVN9OmrDRPG8LyABZJM=; Received: from misery.dabus.com (unknown [192.168.10.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by aegir.dabus.com (Dabus) with ESMTPSA id 842A510099A for ; Sun, 10 Apr 2016 21:02:21 -0600 (MDT) Date: Sun, 10 Apr 2016 21:02:21 -0600 From: Eric S Pulley To: freebsd-questions@freebsd.org Subject: Re: Stupid question regarding ZFS and `df -h` output Message-ID: <20160410210221.42a97cc8@misery.dabus.com> In-Reply-To: <20160410150013.4d34a49b@portege> References: <20160410150013.4d34a49b@portege> Organization: Dabus X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; amd64-portbld-freebsd10.1) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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 03:11:09 -0000 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.