Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Apr 2016 00:24:38 -0453.75
From:      "William A. Mahaffey III" <wam@hiwaay.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: Stupid question regarding ZFS and `df -h` output
Message-ID:  <570B33CC.4040609@hiwaay.net>
In-Reply-To: <20160410210221.42a97cc8@misery.dabus.com>
References:  <20160410150013.4d34a49b@portege> <20160410210221.42a97cc8@misery.dabus.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 04/10/16 22:08, Eric S Pulley wrote:
> On Sun, 10 Apr 2016 15:00:13 +0300
> Aleksander Alekseev <afiskon@devzen.ru> 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: <TOSHIBA THNSNS128GMCP TA4ABBF0> 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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?570B33CC.4040609>