Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Oct 2008 11:59:25 +0200
From:      Holger Kipp <hk@alogis.com>
To:        lhmwzy <lhmwzy@gmail.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: zfs quota question
Message-ID:  <20081007095925.GA19896@intserv.int1.b.intern>
In-Reply-To: <78fb9d960810070232u3f35010dv510dfa0fb2285568@mail.gmail.com>
References:  <78fb9d960810070232u3f35010dv510dfa0fb2285568@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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"

according to zfs manpage:

           Quotas cannot be set on volumes, as the "volsize" property acts  as
           an implicit quota.

Aditionally, I see you're using compression, so a 2.4M file might
not use up that much space. Compressration 7.25x

> #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                  -
> pool/lhm  mounted        yes                    -
> pool/lhm  quota          1M                     local
> pool/lhm  reservation    none                   default
> pool/lhm  recordsize     128K                   default

If you find this answer helpful, donate money to some children help fund :-)

Regards,
Holger Kipp



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