Disk Quota Exceeded - Don't know why

11 posts / 0 new
Last post
#1 Sun, 08/02/2015 - 13:01
AndrewGB

Disk Quota Exceeded - Don't know why

Today I noticed phpMyAdmin stopped working, which was due to Virtualmin thinking the Disk Quote for that domain had been exceeded. My quota is 1024 MB, the user directory in /home is only 76 MB, and the SQL database is only 28MB.

I don't know why Virtualmin is reporting the quota is exceeded. Any ideas?

Sun, 08/02/2015 - 13:09
andreychek

Howdy,

Virtualmin is just reporting what the Linux disk quota tools are telling it... it's possible that you may have some other files owned by that user elsewhere (perhaps in /tmp or /var/log, for example). Or the quotas may potentially have become out of sync.

But the first thing I'd try doing is to run these two commands:

quota -v USERNAME
quota -g GROUPNAME

What is the output of the above, using the username and group name for the Virtual Server owner in question?

-Eric

Sun, 08/02/2015 - 13:20 (Reply to #2)
AndrewGB

I have now changed the quota to unlimited, but it is still shows I have over 1GB usage and is increasing :/

Disk quotas for user andy (uid 500): Filesystem blocks quota limit grace files quota limit grace /dev/vda1 1049160 0 0 196125 0 0

Disk quotas for group andy (gid 500): none

I've also cleared /tmp and /var/tmp, no different.

Sun, 08/02/2015 - 15:00
andreychek

Does that user perhaps have a large log file in /var/log/virtualmin?

-Eric

Mon, 08/03/2015 - 13:55
AndrewGB

Nothing in there

Mon, 08/03/2015 - 13:58
tpnsolutions
tpnsolutions's picture

Hi,

Could be a mailbox account that's growing...

Best Regards,
Peter Knowles
TPN Solutions

Email: pknowles@tpnsolutions.com
Phone: 604-782-9342
Skype: tpnsupport
Website: http://www.tpnsolutions.com

Ask me about my new support plans which include a FREE copy of Virtualmin Pro!!!

Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Mon, 08/03/2015 - 14:09
AndrewGB

I need to find this quickly because it's up another 50MB today and eventually I'll run out of physical disk space :/

  • The /home user folder is 76 MB
  • The MySQL database is 28 MB
  • There is no e-mail server, but even so this would have reflected in the /home/user folder
  • /tmp has been cleared
  • /var/tmp has been cleared
  • Largest file in /var/log was 22 MB
  • I have searched for files over 50 MB in size, only a few system files were found.
  • There are no PHP sessions active

I can only think there are lots and lots of little files rather than 1 large one.

Mon, 08/03/2015 - 14:15
tpnsolutions
tpnsolutions's picture

Hi,

For a small fee, I can diagnose and help you get this resolved over a screen sharing session (so you can learn how the issue was resolved).

Best Regards,
Peter Knowles
TPN Solutions

Email: pknowles@tpnsolutions.com
Phone: 604-782-9342
Skype: tpnsupport
Website: http://www.tpnsolutions.com

Ask me about my new support plans which include a FREE copy of Virtualmin Pro!!!

Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Mon, 08/03/2015 - 14:22
AndrewGB

Thanks but I'll find it myself :P

I suspect it has something to do with cron

Mon, 08/03/2015 - 14:36
AndrewGB

Solved

I went through every single file belonging to the user and found a considerable number of 4K files in /var/spool/postfix/maildrop

They appear to have come from cron.

Mon, 08/03/2015 - 14:49
tpnsolutions
tpnsolutions's picture

Hi,

Glad you solved things.

Best Regards,
Peter Knowles
TPN Solutions

Email: pknowles@tpnsolutions.com
Phone: 604-782-9342
Skype: tpnsupport
Website: http://www.tpnsolutions.com

Ask me about my new support plans which include a FREE copy of Virtualmin Pro!!!

Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Topic locked