Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Oct 2008 12:33:19 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Jeremy Chadwick <koitsu@FreeBSD.org>
Cc:        lhmwzy <lhmwzy@gmail.com>, freebsd-stable@freebsd.org
Subject:   Re: zfs quota question
Message-ID:  <20081007103319.GC3464@garage.freebsd.pl>
In-Reply-To: <20081007102959.GA46215@icarus.home.lan>
References:  <78fb9d960810070232u3f35010dv510dfa0fb2285568@mail.gmail.com> <20081007095437.GA44716@icarus.home.lan> <20081007101755.GB3464@garage.freebsd.pl> <20081007102959.GA46215@icarus.home.lan>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
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.
> 
> 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...  :-)

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.

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd@FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFI6zruForvXbEpPzQRAtsqAJ92UKil9GkuXAi6FNxg0nek0Dhv+wCeMI+M
e8ZDh2MtKXIpRJGwOt/pycU=
=cuEq
-----END PGP SIGNATURE-----
help

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