Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Apr 2016 16:12:36 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: Stupid question regarding ZFS and `df -h` output
Message-ID:  <570BBEE4.1040409@infracaninophile.co.uk>
In-Reply-To: <20160410150013.4d34a49b@portege>
References:  <20160410150013.4d34a49b@portege>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--nkXjiAxKp6DpaGIgEuKevcSW3osk2ws4L
Content-Type: multipart/mixed; boundary="oeX7Iff0q11JAmVspIWDsGdgHHTPknnMH"
From: Matthew Seaman <m.seaman@infracaninophile.co.uk>
To: freebsd-questions@freebsd.org
Message-ID: <570BBEE4.1040409@infracaninophile.co.uk>
Subject: Re: Stupid question regarding ZFS and `df -h` output
References: <20160410150013.4d34a49b@portege>
In-Reply-To: <20160410150013.4d34a49b@portege>

--oeX7Iff0q11JAmVspIWDsGdgHHTPknnMH
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

On 2016/04/10 13:00, Aleksander Alekseev wrote:
> I installed FreeBSD using steps like "Next -> Next -> ZFS -> use entire=

> disk and don't bother me with stupid questions -> Next"
>=20
> I have 128 Gb hard drive:
>=20
> 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)
>=20
> And here is `df -h` output:
>=20
> 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
>=20
> How exactly should I read this to get result "all 128 GB are used"?

I take it you mean 'what would this output look like if all 128GB were
used'?   Because at the moment, you've got quite a lot of your disk
spaces still unused.

The 'Avail' column would show zero or a very small amount of space
available when the pool was full, and the figures for the 'Size' and
'Used' columns would have pretty near equal values.

The 'Size' and 'Capacity' columns are a bit weird in ZFS -- unlike a
system with fixed size filesystems where the meaning of those columns is
clear, with ZFS  'Size' means "The sum of the already used space for
this ZFS plus all of the available space in the entire pool"[*] -- so
'Size' for one ZFS will change as data is added to another ZFS.
Capacity is just the ratio of 'Used' over 'Size', and shows similar effec=
ts.

	Cheers,

	Matthew

[*] Assuming that there haven't been any reservations or size limits
configured for that ZFS, which is generally the case for what the
installer creates.




--oeX7Iff0q11JAmVspIWDsGdgHHTPknnMH--

--nkXjiAxKp6DpaGIgEuKevcSW3osk2ws4L
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQJ8BAEBCgBmBQJXC77uXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw
MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnQQUP/0Rus37ro0egDDxQhtRknMnx
B3D1CxSErufHhG6Cim/oT8TGKFJU73iJT3y2ammNk8bu/XTVq9wl4FAKM4YiyA1Y
xWGd7iEZ/bANj/l6uHsQDB6LmP0DBzHhPIKFqk/vZvQ0/xNSqAOCKtiLQ3NIQkR0
dFsOB5VHTFwlbx7jjU3x3PiMoSmA51ZSmjAkLW9vFhykSTEATnoXY9VZVtL5CvsU
eFZdf4eBzQ0r417G8XhZ00Tcu6loSqxoLBNDC2M5y1fR3SrZ3q8KtcBNUe6gy3oM
IFY+EzuE7hhDQqOg+dPyee2415F8fTUnAc4hVG63lF6m480Koaq56Fgu6sppGsYr
OIKMWv3O+qaJWDZ63RqrLfabKAznkTGbwnZ5A/ixOO0u1GPUoNe7TYNnxAI0qEGw
wwt5QX1p9GEbJifu8D5jyZc6Bq6sMLojpfiiFMEFOMwzhqrd60cAlUa0IM21zGiz
jHnFGrBskxzo2FDWatMB/MAYTyajiZfE4SSpJMupT8sCho8d4J9KgneXdsekuSDZ
+O1gnEKvTSPsPDOWfajokcLtAzXvhZ50hPBaaab0YdHLbw/VjozB4crqrctR1+7Z
k3/Hy+A4gMVS6Kh/N+uSD8QhjDGGzHUrPhEuaQ9fuasLeAff9RK3JDakPH4YSiib
R5WUDN1ll1/cXXNbfoM7
=yVmU
-----END PGP SIGNATURE-----

--nkXjiAxKp6DpaGIgEuKevcSW3osk2ws4L--



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