On 20 October, 2009 - Matthew Ahrens sent me these 2,2K bytes:

> The user/group used can be out of date by a few seconds, same as the 
> "used" and "referenced" properties.  You can run sync(1M) to wait for 
> these values to be updated.  However, that doesn't seem to be the problem 
> you are encountering here.
>
> Can you send me the output of:
>
> zfs list zpool1/sd01_mail
> zfs get all zpool1/sd01_mail
> zfs userspace -t all zpool1/sd01_mail
> ls -ls /export/sd01/mail
> zdb -vvv zpool1/sd01_mail

On a related note, there is a way to still have quota used even after
all files are removed, S10u8/SPARC:

# zfs create rpool/quotatest
# zfs set userqu...@stric=5m rpool/quotatest
# zfs userspace -t all rpool/quotatest
TYPE         NAME   USED  QUOTA
POSIX Group  root     3K   none
POSIX User   root     3K   none
POSIX User   stric     0     5M
# chmod a+rwt /rpool/quotatest

stric% cd /rpool/quotatest;tar jxvf /somewhere/gimp-2.2.10.tar.bz2
... wait and it will start getting Disc quota exceeded, might have to
help it by running 'sync' in another terminal
stric% sync
stric% rm -rf gimp-2.2.10
stric% sync
... now it's all empty.. but...

# zfs userspace -t all rpool/quotatest
TYPE         NAME   USED  QUOTA
POSIX Group  root     3K   none
POSIX Group  tdb      3K   none
POSIX User   root     3K   none
POSIX User   stric    3K     5M

Can be repeated for even more "lost blocks", I seem to get between 3 and
5 kB each time. I tried this last night, and when I got back in the
morning, it had gone down to zero again. Haven't done any more verifying
than that.

It doesn't seem to trigger if I just write a big file with dd which gets
me into DQE, but unpacking a tarball seems to trigger it. My tests has
been as above.

Output from all of the above + zfs list, zfs get all, zfs userspace, ls
-l and zdb -vvv is at:
http://www.acc.umu.se/~stric/tmp/zfs-userquota.txt

/Tomas
-- 
Tomas Ögren, st...@acc.umu.se, http://www.acc.umu.se/~stric/
|- Student at Computing Science, University of Umeå
`- Sysadmin at {cs,acc}.umu.se
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to