Date: Tue, 7 Oct 2008 12:25:16 +0200 From: Holger Kipp <hk@alogis.com> To: Jeremy Chadwick <koitsu@FreeBSD.org> Cc: Holger Kipp <hk@alogis.com>, pjd@FreeBSD.org, lhmwzy <lhmwzy@gmail.com>, freebsd-stable@FreeBSD.org Subject: Re: zfs quota question Message-ID: <20081007102516.GA20597@intserv.int1.b.intern> In-Reply-To: <20081007101259.GA45900@icarus.home.lan> References: <78fb9d960810070232u3f35010dv510dfa0fb2285568@mail.gmail.com> <20081007095437.GA44716@icarus.home.lan> <20081007100726.GB19896@intserv.int1.b.intern> <20081007101259.GA45900@icarus.home.lan>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Oct 07, 2008 at 03:12:59AM -0700, Jeremy Chadwick wrote: > On Tue, Oct 07, 2008 at 12:07:26PM +0200, Holger Kipp 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" > > > > > I can confirm and reproduce what you're seeing. > > > > > > Based on all of the ZFS documentation and examples I've read, it appears > > > to be a bug in FreeBSD ZFS. > > > > > > CC'ing pjd@, who maintains ZFS on FreeBSD. > > > > I can't confirm this on a recent 7-STABLE (yesterday): > > > > intserv2# zfs set quota=1m tank/test > > intserv2# cp /usr/ports/distfiles/samba-3.0.32.tar.gz /tank/test/ > > cp: /tank/test/samba-3.0.32.tar.gz: Disc quota exceeded > > Interesting. The system I'm testing on: > > FreeBSD icarus.home.lan 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Thu Oct 2 03:04:20 PDT 2008 root@icarus.home.lan:/usr/obj/usr/src/sys/PDSMI_PLUS_RELENG_7_amd64 amd64 > > Can you provide the output from "zfs get all tank tank/test"? > Below are mine. > > Note that for the testing, I set the quota on storage/home to 4G, and > did "dd if=/dev/zero of=/home/filler bs=1g count=8". I've since > set the quota back to 16G. > > NAME PROPERTY VALUE SOURCE > storage compressratio 1.02x - > > storage/home type filesystem - > storage/home compressratio 1.25x - I am not sure if you get correct results with /dev/zero and enabled compression. A file that only contains null bytes won't grow very fast in compressed form. You might want to create storage/test and disable compression for this, then set a limit of 1M or larger (if you like) and try once again. I currently have a pool defined without general compression and just used # zfs create tank/test # zfs set quota=1m tank/test # cp /usr/ports/distfiles/samba-3.0.32.tar.gz /tank/test/ cp: /tank/test/samba-3.0.32.tar.gz: Disc quota exceeded # zfs destroy tank/test and compressration is a very steady 1.00x ;-) Best regards, Holger Kipp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081007102516.GA20597>