zfs quota question
Pawel Jakub Dawidek
pjd at FreeBSD.org
Tue Oct 7 10:33:10 UTC 2008
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 at FreeBSD.org http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20081007/9bba7a22/attachment-0001.pgp
More information about the freebsd-stable
mailing list