Quota information diplayed incorrectly

13 posts / 0 new
Last post
#1 Tue, 06/21/2011 - 22:40
cerebrum

Quota information diplayed incorrectly

On one of our Virtualmin servers, the quotas of all but one virtual server get displayed as 0% even though there is data for all of them. I cannot figure out any differences between the one virtual server that displays a correct percentage and all the other ones.

Even weirder is what is displayed when checking the quota via "Edit Virtual Server". There it will display 2 lines like

Home disk space used (including sub-servers) -43.12 MB (197.36 MB by server administrator, 0 bytes by mail / FTP users)

Space used by databases 43.12 MB (43.12 MB in this server, 0 bytes in sub-servers)

thus acknowledging the data owned by the server admin.

On the OS level all the quotas are fine and the output of "quota -v -u" is correct.

What am I doing wrong?

Wed, 06/22/2011 - 22:15
andreychek

Howdy,

Are you using a dedicated server or a VPS? If it's a VPS, do you know which kind of VPS it is?

However, one thing you might try is to go into Limits and Validation -> Check Disk Quotas, and have it run a check on Users and Groups... which should resync all the quota data.

Once that finishes -- does the quota information display correctly?

-Eric

Tue, 07/12/2011 - 21:49
cerebrum

Hi Eric, I believe the server is XEN and pretty much identical with another one which does not have this problem. I have tried resyncing the quotas as you suggested and it didn't help.

I also tried quotacheck on the command line discarding the old quota files and then reset the quotas on all virtual servers. Still I see information like

Home disk space used (including sub-servers) -22.13 MB (85.55 MB by server administrator, 0 bytes by mail / FTP users) Space used by databases 22.13 MB (22.13 MB in this server, 0 bytes in sub-servers) Total disk space used 0 bytes

I also noticed that the one virtual server which I believed to be ok also counts just the database but not the server admin's files.

Home disk space used (including sub-servers) 0 bytes (472.82 MB by server administrator, 0 bytes by mail / FTP users) Space used by databases 138.57 MB (138.57 MB in this server, 0 bytes in sub-servers) Total disk space used 138.57 MB

What is messed up there?

Thu, 10/13/2011 - 01:26
cerebrum

I believe I have found the cause for this problem (after a few hours of poring over Virtualmin scripts). For some reason both virtual servers (the one that works and the one that doesn't) use /dev/root as the device for the quotas while really the file system is mounted as /dev/sda1.

Now the reason why this works on one of the two servers is that on the working server, the device /dev/root is just a symlink to /dev/sda1. On the server which does not display the quotas correctly, on the other hand, both a real devices which are only referring to the same kernel node.

I have had other minor issues with the server which uses two devices for the same kernel node. So, I presume this virtual server was just not set up in too clean a manner.

Mon, 10/24/2011 - 03:07 (Reply to #4)
ming1340

I also have the same problem .... Can fix it ?

Wed, 10/26/2011 - 18:37
cerebrum

Just delete /dev/root and replace it with a symlink to the root device. The safest way of doing that is probably to just see what device has the same major and minor device number and point the symlink to that. That way you don't risk picking the wrong device.

Mon, 03/19/2012 - 18:03
virtualwesley

I'm having the same problem, but this didn't fix the problem for me. Group quotas are correct in Webmin, but the domain states

Home disk space used (including sub-servers) -1.62 MB (30.21 MB by server administrator, 0 bytes by mail / FTP users) Space used by databases 1.62 MB (1.62 MB in this server, 0 bytes in sub-servers)

Any idea?

Mon, 03/19/2012 - 18:35
andreychek

Howdy,

What output do you get if you run these commands:

mount
quota -v USERNAME
quota -v USERNAME

Where USERNAME is the username of the Virtual Server owner where you're seeing these problems.

-Eric

Fri, 02/01/2013 - 06:34
opaque

Hi all

I have the same problem that virtualmin donĀ“t show the limits correct:

[root@server1 /]# mount
/dev/VolGroup00/LogVol00 on / type ext3 (grpquota,usrquota)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
[root@server1 /]# quota -v myUser
Disk quotas for user myUser (uid 645):
Filesystem blocks quota limit grace files quota limit grace
/dev/root 158916 1048576 1048576 10936 0 0
[root@server1 /]#

Recheck configuration says: Quotas for home and email directories are ON.

lg opaque

Fri, 02/01/2013 - 09:05 (Reply to #9)
andreychek

Which distro are you using?

And did that problem only recently begin occurring?

-Eric

Fri, 02/01/2013 - 09:15 (Reply to #10)
opaque

CentOs 5.9, did not know exactly. I have a 2nd CentOs running where the problem not occurs.

Fri, 02/01/2013 - 13:38 (Reply to #11)
andreychek

Howdy,

In CentOS 5.9, in some circumstances, there's changes to the quota output that can cause problems. That's caused issues for a few folks... yourself included it looks like.

A new Webmin version is going to be pushed out to the Virtualmin repository soon to resolve that.

In the meantime, you can manually install the Webmin 1.620 development version directly from the Webmin site here:

http://www.webmin.com/devel.html

That development version contains a fix that should resolve the problem you're seeing.

-Eric

Fri, 02/01/2013 - 13:50 (Reply to #12)
opaque

The new version solved the problem.

THX opaque

Topic locked