From owner-freebsd-stable@FreeBSD.ORG Tue Oct 7 10:33:10 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B2C5106568F; Tue, 7 Oct 2008 10:33:10 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello087206045082.chello.pl [87.206.45.82]) by mx1.freebsd.org (Postfix) with ESMTP id ADF3E8FC25; Tue, 7 Oct 2008 10:33:09 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id B8E6045CAC; Tue, 7 Oct 2008 12:33:07 +0200 (CEST) Received: from localhost (pjdwl.wheel.pl [10.0.1.9]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 3AC20456B1; Tue, 7 Oct 2008 12:33:02 +0200 (CEST) Date: Tue, 7 Oct 2008 12:33:19 +0200 From: Pawel Jakub Dawidek To: Jeremy Chadwick Message-ID: <20081007103319.GC3464@garage.freebsd.pl> References: <78fb9d960810070232u3f35010dv510dfa0fb2285568@mail.gmail.com> <20081007095437.GA44716@icarus.home.lan> <20081007101755.GB3464@garage.freebsd.pl> <20081007102959.GA46215@icarus.home.lan> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="E13BgyNx05feLLmH" Content-Disposition: inline In-Reply-To: <20081007102959.GA46215@icarus.home.lan> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 8.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: lhmwzy , freebsd-stable@freebsd.org Subject: Re: zfs quota question X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Oct 2008 10:33:10 -0000 --E13BgyNx05feLLmH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 07, 2008 at 03:30:09AM -0700, Jeremy Chadwick wrote: > On Tue, Oct 07, 2008 at 12:17:55PM +0200, Pawel Jakub Dawidek wrote: > > Turn compression off and retry. >=20 > Yep, that's the key! >=20 > # zfs set quota=3D4g storage/home > # zfs set compression=3Doff storage > # zfs get compression,quota,mountpoint > NAME PROPERTY VALUE SOURCE > storage compression off local > storage quota none default > storage mountpoint /storage default > storage/home compression off inherited from storage > storage/home quota 4G local > storage/home mountpoint /home local >=20 > # dd if=3D/dev/zero of=3D/home/filler bs=3D1g count=3D8 > dd: /home/filler: Disc quota exceeded > 4+0 records in > 3+1 records out > 3306553344 bytes transferred in 62.566567 secs (52848566 bytes/sec) >=20 > # df -h /home > Filesystem Size Used Avail Capacity Mounted on > storage/home 4.0G 4.0G 0B 100% /home >=20 > I had no idea compression could cause this. A useful feature, but > obviously can result in misleading results... :-) Yeah, ZFS offers a lot, which can create confusion, unfortunately. Do we limit physical space with quota or only logical (before compression)? Should we take space consumed by snapshots into account or not? etc. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --E13BgyNx05feLLmH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFI6zruForvXbEpPzQRAtsqAJ92UKil9GkuXAi6FNxg0nek0Dhv+wCeMI+M e8ZDh2MtKXIpRJGwOt/pycU= =cuEq -----END PGP SIGNATURE----- --E13BgyNx05feLLmH--