Wrong Quota listed

17 posts / 0 new
Last post
#1 Tue, 07/07/2009 - 02:39
xoa

Wrong Quota listed

I know this topic has been posted here numerous times, but it didn't solved my problem.

I'm using the latest Virtualmin and Webmin version and there are running 28 virtual servers.

I've mounted the /home to use the quota and I've set up all the quota limits. But the Quota panel shows me for each Virtual Server a usage of 56kb, but in reality in there there are some hundred of MB. I've already run the quota check several times, but still the same.

But the strange: For 3 users the quota gets listed correctly (root, mainuser and #1000).

This is what I see when I choose a virtual Server and cklich on Edit Virtual Server > Quota...

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

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

Screenshot: http://www.abload.de/img/screenshotkm6t.png

Thanks for your help.

Tue, 07/07/2009 - 10:18
andreychek

Just to be sure -- the files you're seeing for these users where the quotas aren't registering anything -- are those files definitely owned by those users?

For example, if you have the user "ftp_example", and there's 500MB of files in that user's directory, but they're all owned by "root", I don't believe they would go against the ftp_example user's quota.

-Eric

Wed, 07/08/2009 - 04:57
xoa

Ok, the works not, the problem was the files where owned by root.

But there is now another problem:

In the User Panel (when im logged in as ftpexample user) I see the wrong quota limit and only the space used by the database. Take a look:

This is what i set up:

http://www.abload.de/img/1pehm.jpg

And this is what the User sees:

http://www.abload.de/img/22i67.jpg

Thanks

Mon, 07/13/2009 - 07:35
xoa

I need help please, just compare these two screens. The user see only the space that the Database takes, but not the /home/user space.

Mon, 07/13/2009 - 08:37 (Reply to #4)
andreychek

It's possible they can get out of sync -- try going into Limits and Validations -> Check Disk Quotas, and running a check with both "Both users and groups" enabled.

-Eric

Mon, 07/13/2009 - 09:54
xoa

I already did that. Strange thing.

Tue, 07/14/2009 - 13:37
xoa

Still no solution for this? Could it be a problem with permission of something or could it be a bug? I did aleady the chown command for each user and that solved the problem from post 1,but it didn't help here.

Tue, 07/14/2009 - 13:40 (Reply to #7)
andreychek

I kind of doubt it's a bug, but it's hard to say :-)

Are you sure the files in the home dir belong to the Virtual Server owner?

What do you see if you run an "ls -la /path/to/homedir/"?

-Eric

Wed, 07/15/2009 - 01:01
xoa

I've just run that command, here is the result:

http://www.abload.de/img/screenshot-1o5yt.png

I think its OK, or isn't it?

Wed, 07/15/2009 - 01:50
ronald
ronald's picture

you can try deleting the quota.user and quota.group files in your /home, then try to enable quotas again, then re-run the configuration check in Virtualmin. Per haps it will pick up.

what's with the root stuff in your /home ? Should that be there?

Wed, 07/15/2009 - 02:25
xoa

that are the permission of some files/folders. Should they belong to another owner or group?

EDIT:

I've just tried you "possible solution" but I'm still getting only the size of the database.

Wed, 07/15/2009 - 02:53 (Reply to #11)
ronald
ronald's picture

I was just wondering why files/folders of root are in /home, they usually are located in folder /root aren't they?

Wed, 07/15/2009 - 03:17
xoa

The root there are just the permissions. I don't know where thy go normally. But is there a file where i can see which directories he uses to calculate the quota?

Wed, 07/15/2009 - 06:03
xoa

Yeah, the quota problem I had is solved now. I've installed the 3.70 GLP update. Virtualmin is just the best software. Thank you.

EDIT:

  1. Question:

What is the difference between the soft and the hard limit in webmin and the quota limit in virtualmin?

Which one should get edited?

Wed, 07/15/2009 - 12:50
ronald
ronald's picture

the soft limit will tell the user he has reached the limit, nothing else will happen, per haps send out an email. He can exceed the limit

the hard limit will prevent the user to exceed the given quota

1 approach to use this is, you could give a soft limit of, let's say, 50 mb and then a hard limit of 75 mb, where the 50mb could be a warning to the user

Thu, 07/16/2009 - 01:30
xoa

Ok, but there is also a Quota limit in Virtualmin (without hard and Softlimit), what about that?

Thu, 07/16/2009 - 02:28
ronald
ronald's picture

in the virtualmin template you can choose whether you want to use hard limits or soft limits, so it will be whatever you have chosen