zfs quota question

Jeremy Chadwick koitsu at FreeBSD.org
Tue Oct 7 10:13:01 UTC 2008


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 at 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       type           filesystem             -
storage       creation       Wed Sep 24 17:47 2008  -
storage       used           181G                   -
storage       available      1.16T                  -
storage       referenced     180G                   -
storage       compressratio  1.02x                  -
storage       mounted        yes                    -
storage       quota          none                   default
storage       reservation    none                   default
storage       recordsize     128K                   default
storage       mountpoint     /storage               default
storage       sharenfs       off                    default
storage       checksum       on                     default
storage       compression    on                     local
storage       atime          on                     local
storage       devices        on                     default
storage       exec           on                     default
storage       setuid         on                     default
storage       readonly       off                    default
storage       jailed         off                    default
storage       snapdir        hidden                 default
storage       aclmode        groupmask              default
storage       aclinherit     secure                 default
storage       canmount       on                     default
storage       shareiscsi     off                    default
storage       xattr          off                    temporary
storage       copies         1                      default

storage/home  type           filesystem             -
storage/home  creation       Wed Sep 24 20:26 2008  -
storage/home  used           944M                   -
storage/home  available      14.1G                  -
storage/home  referenced     944M                   -
storage/home  compressratio  1.25x                  -
storage/home  mounted        yes                    -
storage/home  quota          15G                    local
storage/home  reservation    none                   default
storage/home  recordsize     128K                   default
storage/home  mountpoint     /home                  local
storage/home  sharenfs       off                    default
storage/home  checksum       on                     default
storage/home  compression    on                     inherited from storage
storage/home  atime          on                     inherited from storage
storage/home  devices        on                     default
storage/home  exec           on                     default
storage/home  setuid         on                     default
storage/home  readonly       off                    default
storage/home  jailed         off                    default
storage/home  snapdir        hidden                 default
storage/home  aclmode        groupmask              default
storage/home  aclinherit     secure                 default
storage/home  canmount       on                     default
storage/home  shareiscsi     off                    default
storage/home  xattr          off                    temporary
storage/home  copies         1                      default

Filesystem      Size    Used   Avail Capacity  Mounted on
storage         1.3T    180G    1.2T    13%    /storage
storage/home     15G    944M     14G     6%    /home

-- 
| 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 |



More information about the freebsd-stable mailing list