System Information -> Quotas

Dear, guys, I think I have found a bug!

When I go to System Information -> Quotas.

I see very weird information, definitely broken and super long horizontal scrolling ending with nothing?

Please investigate!

P.S. LIKE I ALREADY MENTIONED - YOUR SEVER RETURNS 500 ERROR IF YOU ATTACH .JPG IMAGE. GIF SEEMS OK! PLEASE FIX!

Status: 
Closed (fixed)

Comments

That seems to indicate that Virtualmin thinks the MySQL DB size is way larger than it really is.

Is the MySQL directory /var/lib/mysq on a different filesystem from /home on your machine?

Ilia's picture
Submitted by Ilia on Fri, 03/29/2013 - 16:38

On a different system? No? It's the same machine but it's mounted later after reboot as it's part of LUKS encrypted partitions among with /home. After system reboots I have direct and remove access to mount home, /var/lib/mysql and backup partitions with small custom mount.crypt script:

#!/bin/bash

cryptsetup luksOpen /dev/sdc var
mount /dev/mapper/var /var/lib/mysql

cryptsetup luksOpen /dev/sda1 home
mount /dev/mapper/home /home

cryptsetup luksOpen /dev/sda8 Backups
mount /dev/mapper/Backups /backups


cryptsetup -v status var
cryptsetup -v status home
cryptsetup -v status Backups


df -H

service mysqld start
service httpd start

Do you think this is the cause?

That could be an issue. Does clicking the "Refresh system information" link in the top right fix the graphs?

Ilia's picture
Submitted by Ilia on Fri, 03/29/2013 - 16:58

No! Not at all!

But before I mount crypted partitions /var/lib/mysql is still exists with default database set?

Another issue here seems to be that the quota usage for some of your domains is tiny, like only 4kB.

If you go to System Settings -> Re-Check Configuration, what does it say in the line about quotas?

Ilia's picture
Submitted by Ilia on Sat, 03/30/2013 - 02:34

I have checked refreshing system info! ;)

Besides, if I restart the system and do the same before mounting.crypt then still it shows the same thing! But all databases are the same as they empty!

Plus I HAVE DISABLED QUOTAS! All my personal sites are running without quota limit! is this ok?

How can you fix this incorrect information and why is this happening?

Re-checking configuration is different from refreshing system info - you should try it, especially if you have recently disabled quotas.

Ilia's picture
Submitted by Ilia on Sat, 03/30/2013 - 12:11

Jamie, hi!

Virtuamin says that my system is ready to be used!

But quotas are still broken? Do you experience same problems? Obviously not!? ;) Why is this happening?

I disabled them right away!

Ilia

No, this doesn't happen for me.

If you have quotas completely disabled in Virtualmin (and have clicked the "Refresh system information") link, those bar graphs of quota usage shouldn't appear at all.

Ilia's picture
Submitted by Ilia on Mon, 04/01/2013 - 03:03

  1. I mean I keep it unlimited to ALL my domains? Could be this the reason?
  2. I have forgotten what to click to get to control of the very first page of Webmin so I could uncheck Quotas and they would go away from the first page as I don't need them anyway?

If you aren't using quotas at all, you can go to System Settings -> Virtualmin Configuration and change "Set quotas for domain and mail users?" to "No"

Ilia's picture
Submitted by Ilia on Wed, 04/03/2013 - 02:16

Yes now quotas are gone! I will probably add quotas for some site in the future though! Thanks!

Ilia's picture
Submitted by Ilia on Fri, 04/05/2013 - 06:27

I just went in to Disk Quotas and found that I have there some deleted user which is displayed as #504?

It's deleted user for a long time ago? How do I remove it from this list, it's annoying a bit? I know you can do it with module config and set Show deleted users to no, but it's not the case! Where is this information stored?

Thanks, Ilia

That happens if there are still files owned by that user's UID on the system.

You can find them with the command :

find / -uid 504
Ilia's picture
Submitted by Ilia on Fri, 04/05/2013 - 15:31

Oh, yes! It was some cache file under /etc/webmin/mailboxes/maildircache/home_host_Maildir.sentmail

Thanks!! ;)

Ilia's picture
Submitted by Ilia on Sun, 02/19/2017 - 03:44

Jamie, hi again. It's been a while for this thread.

Do you remember what we've been discussing on GitHub issue #493? Well, it seems to be related and affecting Quotas from showing correctly.

On System Information page at the moment I have all values set to 0%. I have set quotas for all my domains. I have 3 plans. 100GB, 10 GB and 1GB. Everything is enabled and set properly.

Quota tab is shown on SysInfo Page but judging by the numbers in charts and numbers in Edit Virtual Server->Quotas and Limits I can tell that only databases size is considered.

However, when running `quota -v username` returns correct information, example:


Disk quotas for user username (uid 2002):
Filesystem blocks quota limit grace files quota limit grace
/dev/sda2 4 0 0 1 0 0
/dev/sda1 0 0 0 0 0 0
/dev/sda3 4 0 0 1 0 0
/dev/mapper/RAID-10
80921992 0 0 99700 0 0

Is it an internal bug, that happens because of manually mounted LUKS partitions or I'm doing something wrong?