quota command and rsync snapshots...
Brooks Davis
brooks at one-eyed-alien.net
Wed Nov 15 21:33:53 UTC 2006
On Wed, Nov 15, 2006 at 04:23:42PM -0500, Ensel Sharon wrote:
>
> >> 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.
quota only counts inodes so the hard links are only counted once.
> 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 ...
It means that files totaling 57GB are modified over three days.
Depending on your work load that may or not be reasonable. Remember
that a 1 byte will cause the whole file to count toward the total.
-- Brooks
-------------- 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-fs/attachments/20061115/30bac2d5/attachment.pgp
More information about the freebsd-fs
mailing list