From owner-freebsd-questions@freebsd.org Mon Apr 11 15:12:25 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 5D884B0BA2F for ; Mon, 11 Apr 2016 15:12:25 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:c4ea:bd49:619b:6cb3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F3FED1F6D for ; Mon, 11 Apr 2016 15:12:24 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from host-4-75.office.adestra.com (vpn-1.adestra.com [46.236.37.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 1A78111C5C for ; Mon, 11 Apr 2016 15:12:21 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=infracaninophile.co.uk DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201601-infracaninophile; t=1460387541; bh=ME6qDGxLfv7jya0EZGKlILktqsjzTdz6mcXIUVdWkxk=; h=Subject:To:References:From:Date:In-Reply-To; z=Subject:=20Re:=20Stupid=20question=20regarding=20ZFS=20and=20`df= 20-h`=20output|To:=20freebsd-questions@freebsd.org|References:=20< 20160410150013.4d34a49b@portege>|From:=20Matthew=20Seaman=20|Date:=20Mon,=2011=20Apr=202016=2016:12 :36=20+0100|In-Reply-To:=20<20160410150013.4d34a49b@portege>; b=jkDV274vf+5LFz2jRMJGwwm2J3DZnKySuNyenJMzFTjTExkxkzCKXkeETc+l3fGu6 /sBEMAVSo1ycHDAL2JUpmph11nbjar69iHgxeadqy9XHP3VnwlOt3Q/aCyR/dmfNAg 7JeG6DGytG1aeQVr+TJKVDrZ0R+smCgyP2wl3oOM= Subject: Re: Stupid question regarding ZFS and `df -h` output To: freebsd-questions@freebsd.org References: <20160410150013.4d34a49b@portege> From: Matthew Seaman Message-ID: <570BBEE4.1040409@infracaninophile.co.uk> Date: Mon, 11 Apr 2016 16:12:36 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <20160410150013.4d34a49b@portege> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nkXjiAxKp6DpaGIgEuKevcSW3osk2ws4L" X-Virus-Scanned: clamav-milter 0.99.1 at smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_FAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk 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 15:12:25 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --nkXjiAxKp6DpaGIgEuKevcSW3osk2ws4L Content-Type: multipart/mixed; boundary="oeX7Iff0q11JAmVspIWDsGdgHHTPknnMH" From: Matthew Seaman 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: 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--