quota command and rsync snapshots...

Ensel Sharon user at dhp.com
Wed Nov 15 21:23:51 UTC 2006


>> Second, is there any way to get quota to show an accurate
representation
>> of the users usage ?

> It should be accurate - can you send some sample output?


Ok, here is what I see (6.1-RELEASE) :

First, the output of the quota command for that user:

# quota sammy
Disk quotas for user sammy (uid 1002):
     Filesystem   usage   quota   limit   grace   files   quota   limit
     /mnt/big1 197067392 500000000 600000000   1554116 50000000 60000000

So, quota is saying 197 GB used, ~1.5 mil. files.

Now looking at the users home directory itself, I see:

du -ak /home/sammy | tail -1
197067392

(ok, agrees with quota)

find /home/sammy | wc -l
5007486

(5 million ... ?)

Now inside of the home directory:

day.0 day.1 day.2 day.3

All four of these dirs are size 130 GB (give or take - small differences
based on deletions day to day)

All four of these dirs have ~1.25 (?) million files in them.

Remember, only day.0 is "real" - the others are `cp -al` copies,
consisting almost totally of hard links back to day.0.


So I really don't know what is going on.  quota says 1.5 mil. files, I
have 5 million total "files", each dir does not exceed 140 GB.


Does this mean that there is (197 minus 140) GB of churn per day, and that
there must be (1.5 mil. minus 1.25 mil.) churn of file turnover per day
? Or something like that ?  That is the only thing i can think of ...



More information about the freebsd-fs mailing list