Koozali.org: home of the SME Server

Obsolete Releases => SME Server 9.x => Topic started by: ElFroggio on March 03, 2015, 04:12:47 PM

Title: Problem with quotas
Post by: ElFroggio on March 03, 2015, 04:12:47 PM
Hi,

I have set the quotas Limit with grace period: 125M     Absolute limit 200M. and this morning I received the following email:

Quote
The following users have exceeded their disk quota on the server called "ethelbert" All values are in megabytes.
Account                Usage     Limit with grace period     Absolute limit
---------------------------------------------------------------------------
kathy                 128.55                      125.00             200.00

I checked :

Code: [Select]
[root@ethelbert ~]# cd /home/e-smith/files/users/kathy/
[root@ethelbert kathy]# pwd
/home/e-smith/files/users/kathy
[root@ethelbert kathy]# du -chs *
4.0K home
32M Maildir
32M total
[root@ethelbert kathy]#

I verified the files and they only take 31.7 megabytes. Obviously something is wrong.

Any idea on what to look for? or is this a bug?

Thanks

/Syv
Title: Re: Problem with quotas
Post by: Daniel B. on March 03, 2015, 04:36:25 PM
Quota is also accounting files in ibays. You can find them with something like:

Code: [Select]
find /home/e-smith/files/ibays -user kathy


You can then estimate the real size used:

Code: [Select]
find /home/e-smith/files/ibays -user kathy -type f -exec du -s "{}" \; | awk '{SUM += $1} END {print SUM}'
Title: Re: Problem with quotas
Post by: ElFroggio on March 03, 2015, 05:35:24 PM
Quota is also accounting files in ibays. You can find them with something like:

Code: [Select]
find /home/e-smith/files/ibays -user kathy

You can then estimate the real size used:

Code: [Select]
find /home/e-smith/files/ibays -user kathy -type f -exec du -s "{}" \; | awk '{SUM += $1} END {print SUM}'

There is nothing with the ibays, so I changed it to: find /home/ -user kathy

and here's the sum:

Code: [Select]
[root@ethelbert ibays]#find /home/ -user kathy -type f -exec du -s "{}" \; | awk '{SUM += $1} END {print SUM}'
32424

I did the same with just '/' just in case, and I still get: 32424

Thanks

/Syv
Title: Re: Problem with quotas
Post by: Daniel B. on March 03, 2015, 05:40:23 PM
could you have data belonging to this user elsewhere ? (/tmp, /var etc...)
Title: Re: Problem with quotas
Post by: ElFroggio on March 03, 2015, 06:06:55 PM
could you have data belonging to this user elsewhere ? (/tmp, /var etc...)

No, just checked again with:

Code: [Select]
find / -user kathy

Thanks

/Syv
Title: Re: Problem with quotas
Post by: Stefano on March 04, 2015, 10:52:49 AM
ElFroggio

if something isn't working out-of-the-box as expected, please raise a bug and report here the reference, thank you,
Title: Re: Problem with quotas
Post by: ElFroggio on March 04, 2015, 03:42:08 PM
if something isn't working out-of-the-box as expected, please raise a bug and report here the reference, thank you,

Before raising a 'useless' bug, aka operator error, I wanted to find out if the problem is me or the configuration or an actual bug.

Raised with bugzilla: 8866

Thanks

/Syv