From owner-freebsd-stable@FreeBSD.ORG Tue Oct 7 10:30:12 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 10241106569C for ; Tue, 7 Oct 2008 10:30:12 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA03.westchester.pa.mail.comcast.net (qmta03.westchester.pa.mail.comcast.net [76.96.62.32]) by mx1.freebsd.org (Postfix) with ESMTP id AE4F58FC42 for ; Tue, 7 Oct 2008 10:30:11 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA13.westchester.pa.mail.comcast.net ([76.96.62.52]) by QMTA03.westchester.pa.mail.comcast.net with comcast id PmLQ1a00E17dt5G53mWAcm; Tue, 07 Oct 2008 10:30:10 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA13.westchester.pa.mail.comcast.net with comcast id PmW91a00F2P6wsM3ZmWAKb; Tue, 07 Oct 2008 10:30:10 +0000 X-Authority-Analysis: v=1.0 c=1 a=QycZ5dHgAAAA:8 a=C3FznbR_FaosVy87ffsA:9 a=Zq8rew7r522VoOuYaMEA:7 a=VeO8LRt3u4f0FSnC1nHp227mdK0A:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 70320C9419; Tue, 7 Oct 2008 03:30:09 -0700 (PDT) Date: Tue, 7 Oct 2008 03:30:09 -0700 From: Jeremy Chadwick To: Pawel Jakub Dawidek Message-ID: <20081007102959.GA46215@icarus.home.lan> References: <78fb9d960810070232u3f35010dv510dfa0fb2285568@mail.gmail.com> <20081007095437.GA44716@icarus.home.lan> <20081007101755.GB3464@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081007101755.GB3464@garage.freebsd.pl> User-Agent: Mutt/1.5.18 (2008-05-17) 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:30:12 -0000 On Tue, Oct 07, 2008 at 12:17:55PM +0200, Pawel Jakub Dawidek wrote: > On Tue, Oct 07, 2008 at 02:54:37AM -0700, Jeremy Chadwick wrote: > > On Tue, Oct 07, 2008 at 05:32:43PM +0800, lhmwzy wrote: > > > I create a zfs volume pool/lhm and give it quota 1M use "zfs set > > > quota=1m pool/lhm" > > > > > > #zfs get all pool/lhm > > > zfs get all pool/lhm > > > [ttyp0][5:22:12pm] > > > NAME PROPERTY VALUE SOURCE > > > pool/lhm type filesystem - > > > pool/lhm creation Tue Oct 7 17:14 2008 - > > > pool/lhm used 1.00M - > > > pool/lhm available 0 - > > > pool/lhm referenced 1.00M - > > > pool/lhm compressratio 7.25x - > > Turn compression off and retry. Yep, that's the key! # zfs set quota=4g storage/home # zfs set compression=off 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 # dd if=/dev/zero of=/home/filler bs=1g count=8 dd: /home/filler: Disc quota exceeded 4+0 records in 3+1 records out 3306553344 bytes transferred in 62.566567 secs (52848566 bytes/sec) # df -h /home Filesystem Size Used Avail Capacity Mounted on storage/home 4.0G 4.0G 0B 100% /home I had no idea compression could cause this. A useful feature, but obviously can result in misleading results... :-) Thanks as usual, Pawel! -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |