Koozali.org: home of the SME Server

Problem with quotas

Offline ElFroggio

  • *
  • 262
  • +0/-0
Problem with quotas
« 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

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Problem with quotas
« Reply #1 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}'
C'est la fin du monde !!! :lol:

Offline ElFroggio

  • *
  • 262
  • +0/-0
Re: Problem with quotas
« Reply #2 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

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Problem with quotas
« Reply #3 on: March 03, 2015, 05:40:23 PM »
could you have data belonging to this user elsewhere ? (/tmp, /var etc...)
C'est la fin du monde !!! :lol:

Offline ElFroggio

  • *
  • 262
  • +0/-0
Re: Problem with quotas
« Reply #4 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

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Problem with quotas
« Reply #5 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,

Offline ElFroggio

  • *
  • 262
  • +0/-0
Re: Problem with quotas
« Reply #6 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